ZeroQI / YouTube-Agent.bundle

Plex Metadata Agent for Movies and TV Series libraries
452 stars 43 forks source link

Incorrect Episode Pairing #113

Open pokeponz opened 1 year ago

pokeponz commented 1 year ago

CaptureMovies CaptureTV com.plexapp.agents.youtube.log com.plexapp.system.log

I've been fighting this for weeks and can't find a solution. I can only get correct metadata pairing when using the Movies collection (ASS + YoutubeMovies). The TV Shows collection (ASS + YoutubeTV) simply will not pair correctly. I've attached logs and screenshots. I updated ASS and Youtube.bundle several times, including a fresh download this morning.

The yt-dlp command I'm using is: yt-dlp {URL} --add-metadata --write-info-json --write-thumbnail --convert-thumbnail jpg -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' -o "%(uploader)s [%(uploader_id)s]/%(title)s[%(id)s].%(ext)s"

Is it possible to just say something as simple as: "if YT video ID is "qwerty123" then download metadata and match to YT video ID "qwerty123""? I'm sure there's reasoning why this doesn't work, but figured I'd ask.

Edit - the screenshots are showing the EXACT same media in the EXACT same folder. One collection is setup for Movies, and the other is setup for TV Shows to illustrate what I can't get to work

ryang229 commented 1 year ago

I'm getting the exact same issue with my collection. Worth noting is that it appears everything is off by exactly one episode.

ZeroQI commented 1 year ago

Brian Lagerstrom [UCn5fhcGRrCvrmFibPbT6q1A]

So the title is right but lal other metadata are from another episode ? Log show correct group of screenshot and title so i am confused how this can happen, could be linked to local json... If you do a library without the json file as a test, is the issue present ?

pokeponz commented 1 year ago

The title is not always correct, either. There are no local json files present in this library.

Do you have a recommended yt-dlp command? I've tried yt-dlp {URL} -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' -o "%(uploader)s [%(uploader_id)s]/%(title)s[%(id)s].%(ext)s" with similar results. This command doesn't add any metadata or write json.