JordyAlkema / Youtube-DL-Agent.bundle

A plex metadata agent for Youtube-DL downloads
123 stars 14 forks source link

Possible naming convention issues #24

Closed rowdya22 closed 1 year ago

rowdya22 commented 1 year ago

I was directed to this agent as I was worried about missing videos having no metadata if I have to change servers. I've been trying to get it up and running but it seems to not like how my files are named. yt-dlp is naming them as below: %(uploader)s [%(channel_id)s]/Season %(upload_date>%Y)s/S%(upload_date>%Y)s E%(upload_date>%m%d)s%(playlist_autonumber)s ([%(height)sp][%(acodec)s][%(vcodec)s]) - %(title)s [%(id)s].%(ext)s

In the past the original agent from ZeroQI used this to create a TV YouTube Channel library. Each channel is sorted into seasons and the episode contains the date and the playlist number to prevent duplicate videos if there are multiple uploads in the same day. Utilizing this naming convention with the Youtube-DL-Agent returns lots of strange results.

Mainly the Channel is split into seemingly random Season folders. Generally "Specials" and "Season 2023". The expected result would be a single "Season 2020". For example this video S2020 E0123001 - What is The Wheel of Time? [0gYnAdKvQ1s] - ([1080p][mp4a.40.2][vp9]) shows in the "Specials" season on Plex and is episode 501. I have no idea where the 501 came from or why the "Season 2020" folder is not being respected.

Please advise on what naming convention would best work with this agent to have the Yearly Season folders and episodes in date order.

log.txt

rowdya22 commented 1 year ago

After some trial and error I found this to be a good working naming convention:

Unraveling_the_Pattern [@UnravelingthePattern]\Season 2020\1 - 20200123 - ([1080p][mp4a.40.2][vp9]) - What_is_The_Wheel_of_Time [0gYnAdKvQ1s].mkv

%(uploader)s [%(uploader_id)s]/Season %(upload_date>%Y)s\%(playlist_autonumber)s - %(upload_date>%Y%m%d)s - %(title)s [%(id)s] - ([%(height)sp][%(acodec)s][%(vcodec)s]).%(ext)s