Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

enncoded
Copy link

@enncoded enncoded commented Dec 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant