ZeroQI / YouTube-Agent.bundle

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

One channel, three playlists. One is fine, two ignored by agent. #93

Open stjep opened 2 years ago

stjep commented 2 years ago

I've downloaded three playlists as a whole from a single channel using the following yt-dlp settings

yt-dlp -N 10 --restrict-filenames -f 'bv*[ext=mp4]+ba*[ext=m4a]' --download-archive yt-dls-done.txt https://www.youtube.com/playlist?list=PL56E3EB1DFD4B64A2 -o '%(uploader)s [%(channel_id)s]/%(playlist_title)s [%(playlist_id)s]/%(playlist_index)s - %(title)s [%(id)s].%(ext)s'

(Note, I used the restrict-filenames flag for only one playlist in case that was the problem but it didn't work).

The files are saved on disk using this naming convention:

Screen Shot 2022-02-11 at 7 43 17 pm

Plex is perfectly happy picking up the first playlist and its content, but ignores the other two. Logs are attached below.

com.plexapp.system.log

com.plexapp.agents.youtube.log

I also checked and ASS definitely sees the files. Logs below.

RedLetterMedia [UCrTNhL_yO3tPTdQ5XgmmWjA].filelist.log RedLetterMedia [UCrTNhL_yO3tPTdQ5XgmmWjA].scanner.log

ZeroQI commented 2 years ago

*.scanner.log show MP4 files for 2 playlists nothing for the third

System log littered with errors but not from my agent... Seem like the Plex installation is dodgy...

Do all file from the 3 playlist show up in Plex? If not need the plex.scanner.log files

stjep commented 2 years ago

*.scanner.log show MP4 files for 2 playlists nothing for the third

Indeed, looks like the download actually failed and is a .part instead of a .mp4. Redownloading and scanning library files the mp4 are now picked up, but no metadata is fetched and they don't appear in Plex.

RedLetterMedia [UCrTNhL_yO3tPTdQ5XgmmWjA].filelist.log RedLetterMedia [UCrTNhL_yO3tPTdQ5XgmmWjA].scanner.log

System log littered with errors but not from my agent... Seem like the Plex installation is dodgy...

I noticed that also, but I've had zero issues with Plex. I have reinstalled it, however.

Do all file from the 3 playlist show up in Plex?

Only files from one playlist [PL5919C8DE6F720A2D] appear in Plex. The metadata for these is correct. The two other playlists ([PL56E3EB1DFD4B64A2] and [PLJ_TJFLc25JTwinvdLo4PP2rTFfTd9Uhz]) do not appear in Plex at all.

If not need the plex.scanner.log files

Sure, attached.

Plex Media Scanner.log

kodxana commented 2 years ago

Having that same issue.

Bit4BitForensics commented 1 year ago

I am having the same issue as well, except in my case it is grouping all of the playlists together that are under a single youtube channel. Did anybody figure this out? No matter what I do it groups all of the playlist folders together even though it identifies them correctly and as separate playlists in the logs.