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

Multi disc naming convention and album type flag (Plex friendly) #32

Open
Robert-Janssen opened this issue Dec 4, 2024 · 1 comment

Comments

@Robert-Janssen
Copy link

Robert-Janssen commented Dec 4, 2024

I want to have my library structured according to the Plex recommendations. I currently use Lidarr to do this but it would be way easier if I can specify this in Tidalrr. So for example setting multi disc albums to use album/{Disc#}{Track##} Tracktitle.flac instead of album/Disc #/{Track##} Tracktitle.flac.

Similarly an Album Single EP and Compilation flag would be helpful too.

This feature would basically negate the need for me to use Lidarr.
(Well that and easier db management and a larger pagination size ;)

@Robert-Janssen
Copy link
Author

Robert-Janssen commented Dec 30, 2024

Something like this maybe.

def getTrackPath(track, stream, artist=None, album=None, playlist=None, filename=None):
    settings = getSettings()
    base = './'
    number = str(track.trackNumber).rjust(2, '0')
    if album.numberOfVolumes > 1:
        # Prepend the disc number to the track number
        # For disc 2 track 01, this becomes '201'
        number = str(track.volumeNumber) + str(track.trackNumber).rjust(2, '0')
    if album is not None:
        base = getAlbumPath(album)

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

No branches or pull requests

1 participant