[GH-ISSUE #27] Media directory must be mounted at a directory named "youtube" inside the Jellyfin container #20

Closed
opened 2026-03-23 20:33:02 +00:00 by mirror · 5 comments
Owner

Originally created by @rockerbacon on GitHub (Feb 2, 2024).
Original GitHub issue: https://github.com/tubearchivist/tubearchivist-jf/issues/27

Detection of the YouTube "collection" (get_yt_collection in src/series.py) is based on the name of the folder within the Jellyfin docker container. Meaning if the mount for the Jellyfin container is defined as /media/my_yt_library:/my_yt_library:ro, for example, get_yt_collection will always fail. Mounting at any directory named "youtube" (case-insensitive) seems to work, eg /library/YouTube, /my_media/internet/youtube, etc.

I'm raising the issue because the README makes no mention of this requirement.

As a side question, would the maintainers welcome a PR to allow parameterizing the directory and library names through environment variables? I'm not a fan of the strict naming restrictions.

Originally created by @rockerbacon on GitHub (Feb 2, 2024). Original GitHub issue: https://github.com/tubearchivist/tubearchivist-jf/issues/27 Detection of the YouTube "collection" (get_yt_collection in src/series.py) is based on the name of the folder within the Jellyfin docker container. Meaning if the mount for the Jellyfin container is defined as `/media/my_yt_library:/my_yt_library:ro`, for example, `get_yt_collection` will always fail. Mounting at any directory named "youtube" (case-insensitive) seems to work, eg `/library/YouTube`, `/my_media/internet/youtube`, etc. I'm raising the issue because the README makes no mention of this requirement. As a side question, would the maintainers welcome a PR to allow parameterizing the directory and library names through environment variables? I'm not a fan of the strict naming restrictions.
Author
Owner

@lamusmaser commented on GitHub (Feb 2, 2024):

This is a function of containerization. You are free to have whatever you like on the left-side, but the right-side should be easily determinable so that scripts don't have to be modified and we don't have to always reference another variable for base directory location (this also reduces potential conflicts within the container's filesystem). So, you should be able to have /media/my_yt_library:/youtube:ro and it will see it just fine because it is locally mounting that directory within the container at the expected location (/youtube).

If you are not utilizing the container, then you should be able to modify and point it to whichever directory you need to reference your media.

<!-- gh-comment-id:1924088776 --> @lamusmaser commented on GitHub (Feb 2, 2024): This is a function of containerization. You are free to have whatever you like on the left-side, but the right-side should be easily determinable so that scripts don't have to be modified and we don't have to always reference another variable for base directory location (this also reduces potential conflicts within the container's filesystem). So, you should be able to have `/media/my_yt_library:/youtube:ro` and it will see it just fine because it is locally mounting that directory within the container at the expected location (`/youtube`). If you are not utilizing the container, then you should be able to modify and point it to whichever directory you need to reference your media.
Author
Owner

@rockerbacon commented on GitHub (Feb 2, 2024):

@lamusmaser I believe you misunderstood the issue

<!-- gh-comment-id:1924164464 --> @rockerbacon commented on GitHub (Feb 2, 2024): @lamusmaser I believe you misunderstood the issue
Author
Owner

@rockerbacon commented on GitHub (Feb 2, 2024):

Just noticed the open PR, this is related to #20

<!-- gh-comment-id:1924166608 --> @rockerbacon commented on GitHub (Feb 2, 2024): Just noticed the open PR, this is related to #20
Author
Owner

@lamusmaser commented on GitHub (Feb 2, 2024):

Ah, I have. You are talking about the actual JF container, not the JF-TA container. Thank you for the clarification.

<!-- gh-comment-id:1924168775 --> @lamusmaser commented on GitHub (Feb 2, 2024): Ah, I have. You are talking about the actual JF container, not the JF-TA container. Thank you for the clarification.
Author
Owner

@bbilly1 commented on GitHub (Apr 19, 2024):

you can now configure that, see readme.

But recommend to switch to the plugin: https://github.com/tubearchivist/tubearchivist-jf-plugin

<!-- gh-comment-id:2067384243 --> @bbilly1 commented on GitHub (Apr 19, 2024): you can now configure that, see readme. But recommend to switch to the plugin: https://github.com/tubearchivist/tubearchivist-jf-plugin
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tubearchivist/tubearchivist-jf#20
No description provided.