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

/sonarr_root hardcoded and Season directory format hardcoded to "Season x" along with files using SxEx instead of what SONARR has configured #58

Open
n4zmz opened this issue Jul 2, 2023 · 0 comments

Comments

@n4zmz
Copy link

n4zmz commented Jul 2, 2023

I'm running sonarr_youtubedl on a VM which has the PLEX library mounted differently than the SONARR app on TrueNAS Scale.
Sonarr: "rootFolderPath": "/data/TV Shows/"
VM: "/PLEX/VIDEO/media/TV Shows/"

So I added 2 variables to the config.yml (path and localpath under the sonarr config) along with some code to get them into the class. A minor edit to the download function to remove sonarr_root and update to replace path with localpath.

In api/v3/config/naming:
"numberStyle": "S{season:00}E{episode:00}"
"seasonFolderFormat": "Season {season:00}"
"standardEpisodeFormat": "{Series TitleYear} - S{season:00}E{episode:00} - {Episode CleanTitle} [{Preferred Words }{Quality Full}]{[MediaInfo VideoDynamicRangeType]}{[Mediainfo AudioCodec}{ Mediainfo AudioChannels]}{[MediaInfo VideoCodec]}{-Release Group}"

I had to read the config/naming and format the strings to use python formatting. This allowed for simple changes to download function to use the new class variables. I did not write the code to fully read the standardEpisodeFormat as it was close enough to what was already there..

Attached diff.txt of my changes...
diff.txt

Now off to figure out why it can't find a couple of episodes from the list and how to add support for downloading in HD-720p, et. al.

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