ZeroQI / YouTube-Agent.bundle

Plex Metadata Agent for Movies and TV Series libraries
450 stars 44 forks source link

Scanner picking up channels but plex isnt organizing them #138

Open switchmaxfx opened 11 months ago

switchmaxfx commented 11 months ago

com.plexapp.agents.youtube.log com.plexapp.system.log

I added both the youtube scanner and Absoulete series scanner to my plex server but when I add the channels with the name "Channe; [ID here]" it picks it up and I can see it in plex but it doesn't get the information from the video. I have tubesync installed currently and its working fine grabbing media but when it comes over to plex, it just doesn't properly index the videos.

ZeroQI commented 11 months ago

INFO (init:451) - metadata.seasons[2019].episodes[2018-12-10] "To Hate Another: A Red Dead Redemption 2 Analysis [M9lacLc0WTk].webm" 2023-07-14 20:22:48,001 (14c21ee28b38) : INFO (init:470) - populate_episode_metadata_from_info_json() - series_root_folder: /data/media/youtube/Jacob Geller [UCeTfBygNb1TahcNpZyELO8g]/, filename: To Hate Another: A Red Dead Redemption 2 Analysis [M9lacLc0WTk].webm 2023-07-14 20:22:48,001 (14c21ee28b38) : INFO (init:471) - Searching for "To Hate Another: A Red Dead Redemption 2 Analysis [M9lacLc0WTk].info.json". Searching in "/data/media/youtube/Jacob Geller [UCeTfBygNb1TahcNpZyELO8g]/". 2023-07-14 20:22:48,005 (14c21ee28b38) : INFO (init:473) - Directory /data/media/youtube/Jacob Geller [UCeTfBygNb1TahcNpZyELO8g]/ contains 76 files 2023-07-14 20:22:48,005 (14c21ee28b38) : INFO (init:512) - populate_episode_metadata_from_api() - filename: To Hate Another: A Red Dead Redemption 2 Analysis [M9lacLc0WTk].webm 2023-07-14 20:22:48,005 (14c21ee28b38) : INFO (init:516) - # videoId [M9lacLc0WTk] not in Playlist/channel item list so loading json_video_details

Too many videos in channel? It cannot find the video ID in channel video list so json file recommended alongside the video

Playlist is the recommended way but channel is meant to work. Dunno how to fix if the YouTube xml does not include all channel's videos...

switchmaxfx commented 11 months ago

Too many videos in channel? It cannot find the video ID in channel video list so json file recommended alongside the video

Playlist is the recommended way but channel is meant to work. Dunno how to fix if the YouTube xml does not include all channel's videos...

Is 76 videos too many? I have a playlist from pewdiepie downloaded but not his entire channel because that's thousands of videos. Here is an example of one video with path and file name.

/data/media/youtube/PewDiePie [UC-lHJZR3Gqxm24_Vd_AJ5Yw]/how-to-find-netherite-easy-minecraft-hardcore-10_WNUtEAFiDE8_1080p-vp09-opus-60fps.mkv Is this correct? I also have the .json file. do I also need to write a .nfo file within tubesycn?

ZeroQI commented 11 months ago

Definitely not correct. The video ID is not in square brackets. It wouldn't get metadata that way.

switchmaxfx commented 11 months ago

Definitely not correct. The video ID is not in square brackets. It wouldn't get metadata that way.

Ok I went back and fixed the file names with brackets and redownloaded the files again. here are the logs from that. having same issue in plex. also for the plex library settings, I have both set to series scanner and youtube series and for the settings, I checked "Set YouTube usernames as director in metadata" API key is own, default episode sorting and hidden seasons if that matters.

com.plexapp.agents.youtube.log com.plexapp.system.log

switchmaxfx commented 11 months ago

So i have an update to my issue. I was going through some of the posts #124 that said putting them in folders worked. That worked for me, I'm able to see the thumbnails and they have the right information, but still some episodes arent being shown in plex. For example I have 45 episodes in total but only 43 of them are showing.

ZeroQI commented 11 months ago

Eps missing is a scanner issue, would need scanner logs for impacted foldet/channel

switchmaxfx commented 11 months ago

com.plexapp.system.log com.plexapp.agents.youtube.log Plex Media Scanner.log

Here are the logs.

ZeroQI commented 11 months ago

These are NOT the ASS custom scanner log, located in a library names folder inside log folder If not using ASS as a plex scanner, i will deny support as it is clearly indicated in the documentation as a requirement

switchmaxfx commented 11 months ago

These are NOT the ASS custom scanner log, located in a library names folder inside log folder If not using ASS as a plex scanner, i will deny support as it is clearly indicated in the documentation as a requirement

sorry didn't know about these. I have the logs here. these are just 3 channels right now.

HorsesOnYT [UCrx2zrPjhGRi9TwszZiLwEg].scanner.log welyn [UCg4XK-l40KZD7fLi12pJ1YA].filelist.log welyn [UCg4XK-l40KZD7fLi12pJ1YA].scanner.log root.scanner.log

Great Art Explained [UCePDFpCr78_qmVtpoB1Axaw].filelist.log Great Art Explained [UCePDFpCr78_qmVtpoB1Axaw].scanner.log HorsesOnYT [UCrx2zrPjhGRi9TwszZiLwEg].filelist.log

ZeroQI commented 11 months ago

Thèse are the right logs, excellent Could you give me the filenames not showing ascot may be tricky to guess?

switchmaxfx commented 11 months ago

so one from horsesYT i dont see. "the acaii raft experiment might restore your faith in humanity" from great art explained "the scream great art explained" and from welyn, "conquering the most anticipated new streets of tarkov map"

ZeroQI commented 10 months ago

season: 2023, episode: 2023-06-26, filename: /data/media/youtube/video/HorsesOnYT [UCrx2zrPjhGRi9TwszZiLwEg]/the-acali-raft-experiment-might-restore-your-faith-in-humanity1080p-vp09-opus[_M89HC9er74].mkv, "HorsesOnYT [youtube-UCrx2zrPjhGRi9TwszZiLwEg]" s2023e2023-06-26 "Youtube Date" "why-rich-people-love-pretending-to-be-poor1080p-vp09-opus[VIR46oH-ufk].mkv" "why-rich-people-love-pretending-to-be-poor1080p-vp09-opus[VIR46oH-ufk].mkv"

season: 2023, episode: 2023-06-26

Two episodes came out the same day, while it use to work i had to hack it to make it work and doesn't see to work anymore... we use the year as season and date as episode number. If multiple then we need to add '1', '2' to the date etc... but currently code for channel do not support multiple videos that came out the same day

ZeroQI commented 1 month ago

Youtube2 mode might fix