-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Can't use directories in media/directory paths? {playlist_title} not working #511
Comments
Looks like tubesync/tubesync/sync/models.py Line 1227 in e3b5d63
But looks like the tubesync/tubesync/sync/models.py Lines 478 to 481 in e3b5d63
|
Okay, I think I see what's going on here. The task uses Should line 1232 in |
The source |
@meeb would you accept a PR that added this support to |
Absolutely, very happy to accept any well formatted PRs. Tests where appropriate and no regressions / full compatibility with current behavior will help it get merged quickly. Edit: and thanks for the offer! |
@meeb I'll take a look. Which route would you prefer I go?
|
Almost certainly editing >>> from pathlib import Path
>>> p = Path('/some/basepath')
>>> media_format = 'some/example/file.ext'
>>> p / media_format
PosixPath('/some/basepath/some/example/file.ext') An appropriately placed |
@meeb was looking into this today over my morning ☕ and found this test, which does indeed pass: https://github.com/meeb/tubesync/blob/main/tubesync/sync/tests.py#L591-L594 Not sure why the test passes, but we're getting the error. |
Honestly it's entirely possible I added sub-directory support as a feature a year or two ago and forgot about it, sorry! I've just re-read your original message and I've just noticed the output path. Your issue might be something else. Your
Sorry I hadn't had my coffee and missed the path. This should be >>> from pathlib import Path
>>> p = Path('/download/path')
>>> p / 'valid/dir'
PosixPath('/download/path/valid/dir')
>>> p / '/invalid/path/with/root/slash'
PosixPath('/invalid/path/with/root/slash') Obviously writing to So, I think the actual issue is |
I think you're correct.
I've also tried |
|
I've started using TubeSync and am wondering the best way to map the library. I've started with marking it as a Shows library, which results in everything being grouped as a single season. Ideally, I would playlists as seasons, but I can't seem to get that working.
I've tried two things:
{playlist_title}/{yyyymmdd}_{title}_[{key}]_{format}.{ext}
as the Media Format, but this resulted in the following error:It appears to not like
/
in the media format.Next I tried adding
{playlist_title}
to the Directory - e.g.hardwarehaven/{playlist_title}
, but it appears that field doesn't get rendered through a template.Any pointers on mapping playlists to seasons?
The text was updated successfully, but these errors were encountered: