red_oxide icon indicating copy to clipboard operation
red_oxide copied to clipboard

fix(transcode): fix duplicate transcode path for extra files

Open enncoded opened this issue 1 year ago • 0 comments

Fixes duplicate destination path for extra files (cover images, txt files).

For example: If the image file in the original content directory is ./content/various artists - songs for the amazon vol. 1/cover.png (and the transcode directory is ./transcoded), transcode_folder_path becomes ./transcoded/Various Artists - songs for the amazon vol. 1 [2020] (WEB - FLAC)/./transcoded/Various Artists - songs for the amazon vol. 1 [2020] (WEB - FLAC) because output_dir and folder_path are the same.

Therefore, the destination path for the cover image ends up as ./transcoded/Various Artists - songs for the amazon vol. 1 [2020] (WEB - FLAC)/./transcoded/Various Artists - songs for the amazon vol. 1 [2020] (WEB - FLAC)/cover.png/cover.png, when it should be ./transcoded/Various Artists - songs for the amazon vol. 1 [2020] (WEB - FLAC)/cover.png

enncoded avatar Dec 27 '24 06:12 enncoded