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

Channel episodes not updating metadata #141

Open
goose-ws opened this issue Aug 9, 2023 · 24 comments
Open

Channel episodes not updating metadata #141

goose-ws opened this issue Aug 9, 2023 · 24 comments

Comments

@goose-ws
Copy link

goose-ws commented Aug 9, 2023

Paid the RTFM tax!

This appears to be similar to #124, but I wanted to create a separate issue to keep the details relevant to my findings in one place.

Library is set as series/TV show, and uses Absolute Series Scanner for the Scanner, with YouTubeSeries for the lAgent*. Both are git pull from last night, so neither should be outdated.

I have two sources being indexed via TubeSync, one is a channel (with 1 video), the other is a playlist (with 39 videos). Although I have input my own API key for YT, I also have .info.json files adjacent to the video files, channel/playlist ID in the base directory, and video ID in the filename. Trunctuating to just 1 video from the playlist for the sake of shortening output, here is the formatting used:

.
├── The Salt Mines [PLFUDU8AOevUePkIO6d3vLr0SSVKeZBdsZ]
│   ├── 2022-03-04 (The Salt Mines) This Starcraft player has lost his mind  Salt Mines #1 - SC2 [YouTube-1vjvR4nEJr8].info.json
│   ├── 2022-03-04 (The Salt Mines) This Starcraft player has lost his mind  Salt Mines #1 - SC2 [YouTube-1vjvR4nEJr8].jpg
│   ├── 2022-03-04 (The Salt Mines) This Starcraft player has lost his mind  Salt Mines #1 - SC2 [YouTube-1vjvR4nEJr8].mkv
└── VeeFX [UCaH8b42Impdi8nfCsyBhY7A]
    ├── 2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].info.json
    ├── 2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].jpg
    └── 2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv

For the Playlist, all items are detected, and metadata is applied correctly to the Series, Season, and Episodes.

For the Channel, all items are detected, and metadata is applied correctly to the Series and Season, but not the Episodes. The individual episode files appear as their literal filename, with no metadata applied at all.

Here's what I think is the relative output from com.plexapp.agents.youtube.log:

2023-08-08 22:35:03,779 (7f9ff68aab38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEyMDNzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDIKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXT9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
2023-08-08 22:35:03,781 (7f9ff68aab38) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2023-08-08 22:35:03,782 (7f9ff68aab38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEyMDNzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDIKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXT9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
2023-08-08 22:35:03,783 (7f9ff68aab38) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]?lang=xn
2023-08-08 22:35:03,784 (7f9ff68aab38) :  DEBUG (model:234) - Deserializing from /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/ee8ff4f63b8153adc22d0170ab31ace44e2db43.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-08 22:35:03,789 (7f9ff68aab38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/library/metadata/171203/tree'
2023-08-08 22:35:03,799 (7f9ff68aab38) :  INFO (__init__:230) - === update(lang=xn, force=True, movie=False) ===
2023-08-08 22:35:03,800 (7f9ff68aab38) :  INFO (__init__:77) - /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv
2023-08-08 22:35:03,800 (7f9ff68aab38) :  INFO (__init__:242) - =============================================================================================================================================================
2023-08-08 22:35:03,801 (7f9ff68aab38) :  INFO (__init__:342) - [ ] library:    "YouTube"
2023-08-08 22:35:03,801 (7f9ff68aab38) :  INFO (__init__:343) - [ ] root:       "/media/YouTube/video"
2023-08-08 22:35:03,801 (7f9ff68aab38) :  INFO (__init__:344) - [ ] path:       "VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-08 22:35:03,802 (7f9ff68aab38) :  INFO (__init__:345) - [ ] dir:        "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-08 22:35:03,802 (7f9ff68aab38) :  INFO (__init__:350) - [ ] series_root_folder: "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-08 22:35:03,803 (7f9ff68aab38) :  INFO (__init__:353) - [ ] subfolder_count:    "0"
2023-08-08 22:35:03,803 (7f9ff68aab38) :  INFO (__init__:373) - Grouping folder not found or single folder, root: /media/YouTube/video, path: VeeFX [UCaH8b42Impdi8nfCsyBhY7A], Grouping folder: VeeFX [UCaH8b42Impdi8nfCsyBhY7A], subdirs: 0, reverse_path: [u'VeeFX [UCaH8b42Impdi8nfCsyBhY7A]']
2023-08-08 22:35:03,813 (7f9ff68aab38) :  DEBUG (networking:139) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCaH8b42Impdi8nfCsyBhY7A&key=AIzaSyAdbN11U_HxVbCc6WUrmcGjHzktb0B_MwA' from the HTTP cache
2023-08-08 22:35:03,822 (7f9ff68aab38) :  INFO (__init__:489) - [ ] title:        "VeeFX ", metadata.title: "VeeFX "
2023-08-08 22:35:03,822 (7f9ff68aab38) :  INFO (__init__:482) - [ ] art:       https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-08 22:35:03,823 (7f9ff68aab38) :  INFO (__init__:484) - [ ] banners:   https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-08 22:35:03,823 (7f9ff68aab38) :  INFO (__init__:491) - [ ] posters:   https://yt3.ggpht.com/ytc/AOPolaTquJCPCbd2LmM7GRx913q6pW72-OjDrOCU2X0f=s240-c-k-c0x00ffffff-no-rj
2023-08-08 22:35:03,823 (7f9ff68aab38) :  INFO (__init__:497) - [ ] role:        VeeFX
2023-08-08 22:35:03,824 (7f9ff68aab38) :  INFO (__init__:510) - =============================================================================================================================================================
2023-08-08 22:35:03,824 (7f9ff68aab38) :  INFO (__init__:511) - Season: 2019
2023-08-08 22:35:03,824 (7f9ff68aab38) :  INFO (__init__:517) - metadata.seasons[2019].episodes[2019-07-23] "2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv"
2023-08-08 22:35:03,825 (7f9ff68aab38) :  INFO (__init__:536) - populate_episode_metadata_from_info_json() - series_root_folder: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A], filename: 2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv
2023-08-08 22:35:03,825 (7f9ff68aab38) :  INFO (__init__:537) - Searching for "2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].info.json". Searching in "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]".
2023-08-08 22:35:03,825 (7f9ff68aab38) :  INFO (__init__:539) - Directory /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A] contains 3 files
2023-08-08 22:35:03,829 (7f9ff68aab38) :  INFO (__init__:545) - Attempting to read metadata from /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].info.json
2023-08-08 22:35:03,829 (7f9ff68aab38) :  INFO (__init__:547) - # videoId [ilqAyc5feXQ] not in Playlist/channel item list so loading json_video_details
2023-08-08 22:35:03,829 (7f9ff68aab38) :  INFO (__init__:548) - [?] link:     "https://www.youtube.com/watch?v=ilqAyc5feXQ"
2023-08-08 22:35:03,829 (7f9ff68aab38) :  INFO (__init__:135) - img_load() - series_root_folder: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A], filename: 2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv
2023-08-08 22:35:03,830 (7f9ff68aab38) :  INFO (__init__:138) - local thumbnail found for file /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].jpg
2023-08-08 22:35:03,830 (7f9ff68aab38) :  INFO (__init__:558) - [ ] title:    "Meat the Soldier"
2023-08-08 22:35:03,830 (7f9ff68aab38) :  INFO (__init__:559) - [ ] summary:  "He knows a little more than you do, cow."
2023-08-08 22:35:03,831 (7f9ff68aab38) :  INFO (__init__:560) - [ ] date:     "20190723"
2023-08-08 22:35:03,831 (7f9ff68aab38) :  INFO (__init__:561) - [ ] duration: "12"
2023-08-08 22:35:03,831 (7f9ff68aab38) :  INFO (__init__:572) - [ ] genres:   "[u'meme', u'funny', u'sun tzu', u'team fortress 2', u'cow', u'vine', u'People & Blogs', u'meat the soldier', u'meat', u'whatever', u'how do these work', u'cows', u'meet the soldier', u'tf2']"
2023-08-08 22:35:03,832 (7f9ff68aab38) :  INFO (__init__:612) - === End Of Agent Call, errors after that are Plex related ===================================================================================================
2023-08-08 22:35:03,840 (7f9ff68aab38) :  DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/ee8ff4f63b8153adc22d0170ab31ace44e2db43.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-08 22:35:03,841 (7f9ff68aab38) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2023-08-08 22:35:03,842 (7f9ff68aab38) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes

It seems like the agent is matching the correct information for the video, but it's not actually being applied? Am I missing a step somewhere?

@ZeroQI
Copy link
Owner

ZeroQI commented Aug 9, 2023

Youtube prefix is supported for series/movies forced id but not at video level
Playlist is the most stable but notre always possible...

Good video ID: [1vjvR4nEJr8]
Bad video ID : [YouTube-1vjvR4nEJr8]
If the youtube prefix make the regex fail, likely the video will not have metadata and could end up in a different episode number.
You may need a folder change to rescan properly, removing or adding a file in each folder

@goose-ws
Copy link
Author

goose-ws commented Aug 9, 2023

I dropped the YouTube- prefix and downloaded to a new directory (Vee FX instead of VeeFX) to rescan properly, but the issue persists, description and title do not update based on the agent's findings.

Screenshot_20230809-162401

Logs:

2023-08-09 16:23:03,204 (7f8c1a2fbb38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgphZWFiMGU2Y2JmZGQzZTRlczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczUzCjIwMTktMDctMjMgKFZlZUZYKSBNZWF0IHRoZSBTb2xkaWVyIFtpbHFBeWM1ZmVYUV0ubWt2czQKbmFtZXMxCjFzOAplcGlzb2RpY3M0MQpWZWUgRlggW3lvdXR1YmUtVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXM0CnNob3dzMTAKMjAxOS0wNy0yM3MxMQpyZWxlYXNlZF9hdHM0CjIwMTlzNgpzZWFzb25zNAoyMDE5czQKeWVhcnMxNDYKJTJGbWVkaWElMkZZb3VUdWJlJTJGdmlkZW8lMkZWZWUlMjBGWCUyMCU1QlVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QSU1RCUyRjIwMTktMDctMjMlMjAlMjhWZWVGWCUyOSUyME1lYXQlMjB0aGUlMjBTb2xkaWVyJTIwJTVCaWxxQXljNWZlWFElNUQlMkVta3ZzOApmaWxlbmFtZXM0MApiNWUzNDgyZmZlYzI3ZDI4MjU1YzJiMzRiMDk2YTg2MGU4OWIzY2Y0czgKcGxleEhhc2hzMgotMXM4CmR1cmF0aW9uczYKMTcxMzE5czIKaWRyMAo_
2023-08-09 16:23:03,205 (7f8c1a2fbb38) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2023-08-09 16:23:03,206 (7f8c1a2fbb38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgphZWFiMGU2Y2JmZGQzZTRlczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczUzCjIwMTktMDctMjMgKFZlZUZYKSBNZWF0IHRoZSBTb2xkaWVyIFtpbHFBeWM1ZmVYUV0ubWt2czQKbmFtZXMxCjFzOAplcGlzb2RpY3M0MQpWZWUgRlggW3lvdXR1YmUtVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXM0CnNob3dzMTAKMjAxOS0wNy0yM3MxMQpyZWxlYXNlZF9hdHM0CjIwMTlzNgpzZWFzb25zNAoyMDE5czQKeWVhcnMxNDYKJTJGbWVkaWElMkZZb3VUdWJlJTJGdmlkZW8lMkZWZWUlMjBGWCUyMCU1QlVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QSU1RCUyRjIwMTktMDctMjMlMjAlMjhWZWVGWCUyOSUyME1lYXQlMjB0aGUlMjBTb2xkaWVyJTIwJTVCaWxxQXljNWZlWFElNUQlMkVta3ZzOApmaWxlbmFtZXM0MApiNWUzNDgyZmZlYzI3ZDI4MjU1YzJiMzRiMDk2YTg2MGU4OWIzY2Y0czgKcGxleEhhc2hzMgotMXM4CmR1cmF0aW9uczYKMTcxMzE5czIKaWRyMAo_
2023-08-09 16:23:03,206 (7f8c1a2fbb38) :  INFO (agentkit:961) - Searching for matches for {'openSubtitlesHash': 'aeab0e6cbfdd3e4e', 'name': '2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].mkv', 'episodic': '1', 'show': 'Vee FX [youtube-UCaH8b42Impdi8nfCsyBhY7A]', 'released_at': '2019-07-23', 'season': '2019', 'plexHash': 'b5e3482ffec27d28255c2b34b096a860e89b3cf4', 'filename': '%2Fmedia%2FYouTube%2Fvideo%2FVee%20FX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019-07-23%20%28VeeFX%29%20Meat%20the%20Soldier%20%5BilqAyc5feXQ%5D%2Emkv', 'year': '2019', 'duration': '-1', 'id': '171319'}
2023-08-09 16:23:03,210 (7f8c1a2fbb38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/library/metadata/171319/tree'
2023-08-09 16:23:03,219 (7f8c1a2fbb38) :  INFO (__init__:77) - /media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].mkv
2023-08-09 16:23:03,219 (7f8c1a2fbb38) :  INFO (__init__:220) - =============================================================================================================================================================
2023-08-09 16:23:03,219 (7f8c1a2fbb38) :  INFO (__init__:220) - Search() - dir: /media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A], filename: /media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].mkv, displayname: Vee FX [youtube-UCaH8b42Impdi8nfCsyBhY7A]
2023-08-09 16:23:03,220 (7f8c1a2fbb38) :  INFO (__init__:220) - search() - YouTube ID found - regex: PLAYLIST, youtube ID: "UCaH8b42Impdi8nfCsyBhY7A"
2023-08-09 16:23:03,220 (7f8c1a2fbb38) :  INFO (__init__:220) - =============================================================================================================================================================
2023-08-09 16:23:03,222 (7f8c1a2fbb38) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2023-08-09 16:23:03,222 (7f8c1a2fbb38) :  DEBUG (runtime:924) - Response: [200] str, 748 bytes
2023-08-09 16:23:03,252 (7f8c1a2fbb38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMTlzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDMKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWUgRlggW1VDYUg4YjQySW1wZGk4bmZDc3lCaFk3QV0%40bGFuZz14bnM0Cmd1aWRzNjYKeW91dHViZXxVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0F8VmVlIEZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdczIKaWRyMAo_
2023-08-09 16:23:03,253 (7f8c1a2fbb38) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2023-08-09 16:23:03,254 (7f8c1a2fbb38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMTlzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDMKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWUgRlggW1VDYUg4YjQySW1wZGk4bmZDc3lCaFk3QV0@bGFuZz14bnM0Cmd1aWRzNjYKeW91dHViZXxVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0F8VmVlIEZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdczIKaWRyMAo_
2023-08-09 16:23:03,255 (7f8c1a2fbb38) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|Vee FX [UCaH8b42Impdi8nfCsyBhY7A]?lang=xn
2023-08-09 16:23:03,256 (7f8c1a2fbb38) :  ERROR (model:205) - Cannot read model from /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/e/488308a281e1b484346a4d4fd514ab0b1f72eb4.bundle/Contents/com.plexapp.agents.youtube
2023-08-09 16:23:03,256 (7f8c1a2fbb38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/library/metadata/171319/tree'
2023-08-09 16:23:03,263 (7f8c1a2fbb38) :  INFO (__init__:230) - === update(lang=xn, force=True, movie=False) ===
2023-08-09 16:23:03,263 (7f8c1a2fbb38) :  INFO (__init__:77) - /media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].mkv
2023-08-09 16:23:03,264 (7f8c1a2fbb38) :  INFO (__init__:242) - =============================================================================================================================================================
2023-08-09 16:23:03,264 (7f8c1a2fbb38) :  INFO (__init__:489) - [ ] library:    "YouTube"
2023-08-09 16:23:03,264 (7f8c1a2fbb38) :  INFO (__init__:489) - [ ] root:       "/media/YouTube/video"
2023-08-09 16:23:03,265 (7f8c1a2fbb38) :  INFO (__init__:489) - [ ] path:       "Vee FX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-09 16:23:03,265 (7f8c1a2fbb38) :  INFO (__init__:489) - [ ] dir:        "/media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-09 16:23:03,265 (7f8c1a2fbb38) :  INFO (__init__:489) - [ ] series_root_folder: "/media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-09 16:23:03,266 (7f8c1a2fbb38) :  INFO (__init__:489) - [ ] subfolder_count:    "0"
2023-08-09 16:23:03,266 (7f8c1a2fbb38) :  INFO (__init__:489) - Grouping folder not found or single folder, root: /media/YouTube/video, path: Vee FX [UCaH8b42Impdi8nfCsyBhY7A], Grouping folder: Vee FX [UCaH8b42Impdi8nfCsyBhY7A], subdirs: 0, reverse_path: [u'Vee FX [UCaH8b42Impdi8nfCsyBhY7A]']
2023-08-09 16:23:03,276 (7f8c1a2fbb38) :  DEBUG (networking:139) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCaH8b42Impdi8nfCsyBhY7A&key=AIzaSyAdbN11U_HxVbCc6WUrmcGjHzktb0B_MwA' from the HTTP cache
2023-08-09 16:23:03,285 (7f8c1a2fbb38) :  INFO (__init__:489) - [ ] title:        "Vee FX ", metadata.title: "Vee FX "
2023-08-09 16:23:03,286 (7f8c1a2fbb38) :  INFO (__init__:481) - [X] art:       https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-09 16:23:03,292 (7f8c1a2fbb38) :  DEBUG (networking:144) - Requesting 'https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920'
2023-08-09 16:23:03,455 (7f8c1a2fbb38) :  DEBUG (networking:176) - Not caching 'https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920' (content type 'image/png' not cacheable in Agent plug-ins)
2023-08-09 16:23:03,456 (7f8c1a2fbb38) :  INFO (__init__:483) - [X] banners:   https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-09 16:23:03,466 (7f8c1a2fbb38) :  DEBUG (networking:144) - Requesting 'https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920'
2023-08-09 16:23:03,604 (7f8c1a2fbb38) :  DEBUG (networking:176) - Not caching 'https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920' (content type 'image/png' not cacheable in Agent plug-ins)
2023-08-09 16:23:03,604 (7f8c1a2fbb38) :  INFO (__init__:488) - [X] posters:   https://yt3.ggpht.com/ytc/AOPolaTquJCPCbd2LmM7GRx913q6pW72-OjDrOCU2X0f=s240-c-k-c0x00ffffff-no-rj
2023-08-09 16:23:03,616 (7f8c1a2fbb38) :  DEBUG (networking:144) - Requesting 'https://yt3.ggpht.com/ytc/AOPolaTquJCPCbd2LmM7GRx913q6pW72-OjDrOCU2X0f=s240-c-k-c0x00ffffff-no-rj'
2023-08-09 16:23:03,750 (7f8c1a2fbb38) :  DEBUG (networking:176) - Not caching 'https://yt3.ggpht.com/ytc/AOPolaTquJCPCbd2LmM7GRx913q6pW72-OjDrOCU2X0f=s240-c-k-c0x00ffffff-no-rj' (content type 'image/jpeg' not cacheable in Agent plug-ins)
2023-08-09 16:23:03,751 (7f8c1a2fbb38) :  INFO (__init__:497) - [ ] role:        VeeFX
2023-08-09 16:23:03,752 (7f8c1a2fbb38) :  INFO (__init__:510) - =============================================================================================================================================================
2023-08-09 16:23:03,752 (7f8c1a2fbb38) :  INFO (__init__:511) - Season: 2019
2023-08-09 16:23:03,753 (7f8c1a2fbb38) :  INFO (__init__:517) - metadata.seasons[2019].episodes[2019-07-23] "2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].mkv"
2023-08-09 16:23:03,753 (7f8c1a2fbb38) :  INFO (__init__:536) - populate_episode_metadata_from_info_json() - series_root_folder: /media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A], filename: 2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].mkv
2023-08-09 16:23:03,754 (7f8c1a2fbb38) :  INFO (__init__:537) - Searching for "2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].info.json". Searching in "/media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A]".
2023-08-09 16:23:03,754 (7f8c1a2fbb38) :  INFO (__init__:539) - Directory /media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A] contains 3 files
2023-08-09 16:23:03,758 (7f8c1a2fbb38) :  INFO (__init__:545) - Attempting to read metadata from /media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].info.json
2023-08-09 16:23:03,758 (7f8c1a2fbb38) :  INFO (__init__:547) - # videoId [ilqAyc5feXQ] not in Playlist/channel item list so loading json_video_details
2023-08-09 16:23:03,759 (7f8c1a2fbb38) :  INFO (__init__:548) - [?] link:     "https://www.youtube.com/watch?v=ilqAyc5feXQ"
2023-08-09 16:23:03,759 (7f8c1a2fbb38) :  INFO (__init__:135) - img_load() - series_root_folder: /media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A], filename: 2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].mkv
2023-08-09 16:23:03,759 (7f8c1a2fbb38) :  INFO (__init__:138) - local thumbnail found for file /media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].jpg
2023-08-09 16:23:03,760 (7f8c1a2fbb38) :  INFO (__init__:554) - [ ] thumbs:   "/media/YouTube/video/Vee FX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [ilqAyc5feXQ].jpg"
2023-08-09 16:23:03,761 (7f8c1a2fbb38) :  INFO (__init__:558) - [ ] title:    "Meat the Soldier"
2023-08-09 16:23:03,761 (7f8c1a2fbb38) :  INFO (__init__:559) - [ ] summary:  "He knows a little more than you do, cow."
2023-08-09 16:23:03,762 (7f8c1a2fbb38) :  INFO (__init__:560) - [ ] date:     "20190723"
2023-08-09 16:23:03,763 (7f8c1a2fbb38) :  INFO (__init__:561) - [ ] duration: "12"
2023-08-09 16:23:03,763 (7f8c1a2fbb38) :  INFO (__init__:572) - [ ] genres:   "[]"
2023-08-09 16:23:03,764 (7f8c1a2fbb38) :  INFO (__init__:612) - === End Of Agent Call, errors after that are Plex related ===================================================================================================
2023-08-09 16:23:03,777 (7f8c1a2fbb38) :  DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/e/488308a281e1b484346a4d4fd514ab0b1f72eb4.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-09 16:23:03,779 (7f8c1a2fbb38) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2023-08-09 16:23:03,780 (7f8c1a2fbb38) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes

@ZeroQI
Copy link
Owner

ZeroQI commented Aug 9, 2023

It can find the Jason file and can findbthe title and summary from it, and the line outputting the field also update the metadata field, so the agent find the right information but plex won't show it?
Seem like a Plex database corruption to me...

Date duration thumb seem ok, but tile and summary are NOT updated...

Pretty sure plex fault since agent logs show the fields correctly

@goose-ws
Copy link
Author

goose-ws commented Aug 9, 2023

Given that the plugin can properly update the metadata for playlist items, just not channel items, is there a place where the metadata change is logged? Some preliminary grep doesn't reveal anything obvious, but surely there's a place (perhaps increasing logging verbosity somewhere) that will show what's happening if/when the agent is attempting to update the metadata on the media item?

@ZeroQI
Copy link
Owner

ZeroQI commented Aug 9, 2023

https://github.com/ZeroQI/YouTube-Agent.bundle/blob/master/Contents/Code/__init__.py#L404
Summary is line 420, update summary then display it... Plex database corruption likely

@goose-ws
Copy link
Author

I verified/repaired my database via ChuckPa's tool, and the results did not change. Enabling debug logging and diving into logs, I have found something interesting when refreshing metadata:

==> Plex Media Server.log <==
Aug 09, 2023 21:52:42.443 [140363466406712] DEBUG - [Req#27ea] Refreshing metadata for '2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv' (agent: com.plexapp.agents.youtube)
Aug 09, 2023 21:52:42.445 [140363466406712] DEBUG - [Req#27ea] Refreshing GUID: 'com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn'
Aug 09, 2023 21:52:42.445 [140363466406712] DEBUG - [Req#27ea/HCl#ff] HTTP requesting GET http://127.0.0.1:32400/system/agents/update?mediaType=4&force=1&respectTags=0&parentGUID=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%3Flang%3Dxn&parentID=171331&guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&id=171332
Aug 09, 2023 21:52:42.446 [140363243993912] DEBUG - Request: [127.0.0.1:59834 (Loopback)] GET /system/agents/update?mediaType=4&force=1&respectTags=0&parentGUID=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%3Flang%3Dxn&parentID=171331&guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&id=171332 (27 live) #2934 GZIP Signed-in
Aug 09, 2023 21:52:42.447 [140363243993912] DEBUG - [Req#2934] [com.plexapp.system] Sending command over HTTP (GET): /system/agents/update?mediaType=4&force=1&respectTags=0&parentGUID=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%3Flang%3Dxn&parentID=171331&guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&id=171332
Aug 09, 2023 21:52:42.447 [140363243993912] DEBUG - [Req#2934/HCl#100] HTTP requesting GET http://127.0.0.1:43477/system/agents/update?mediaType=4&force=1&respectTags=0&parentGUID=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%3Flang%3Dxn&parentID=171331&guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&id=171332
Aug 09, 2023 21:52:42.453 [140363432696632] DEBUG - Request: [127.0.0.1:59840 (Loopback)] GET /:/plugins (28 live) #2937 GZIP Signed-in Token (goose)
Aug 09, 2023 21:52:42.454 [140363557403448] DEBUG - Completed: [127.0.0.1:59840] 200 GET /:/plugins (28 live) #2937 GZIP 0ms 634 bytes
Aug 09, 2023 21:52:42.459 [140363519150904] DEBUG - [HttpClient/HCl#100] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:43477/system/agents/update?mediaType=4&force=1&respectTags=0&parentGUID=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%3Flang%3Dxn&parentID=171331&guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&id=171332
Aug 09, 2023 21:52:42.459 [140363243993912] DEBUG - [Req#2934] [com.plexapp.system] HTTP reply status 200, with 161 bytes of content.
Aug 09, 2023 21:52:42.460 [140363559512888] DEBUG - Completed: [127.0.0.1:59834] 200 GET /system/agents/update?mediaType=4&force=1&respectTags=0&parentGUID=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%3Flang%3Dxn&parentID=171331&guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&id=171332 (27 live) #2934 GZIP 14ms 467 bytes (pipelined: 1)
Aug 09, 2023 21:52:42.460 [140363519150904] DEBUG - [HttpClient/HCl#ff] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:32400/system/agents/update?mediaType=4&force=1&respectTags=0&parentGUID=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%3Flang%3Dxn&parentID=171331&guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&id=171332
Aug 09, 2023 21:52:42.461 [140363559512888] DEBUG - Completed: [192.168.2.101:55767] 200 PUT /library/metadata/171332/refresh (27 live) #27ea TLS GZIP 24ms 195 bytes (pipelined: 33)
Aug 09, 2023 21:52:42.465 [140363432696632] DEBUG - Request: [127.0.0.1:59850 (Loopback)] GET /:/metadata/processing?id=171332 (28 live) #2940 GZIP Signed-in Token (goose)
Aug 09, 2023 21:52:42.465 [140363243993912] DEBUG - Request: [127.0.0.1:59860 (Loopback)] GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMzJzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MTMzMXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK (29 live) #2944 GZIP Signed-in Token (goose)
Aug 09, 2023 21:52:42.466 [140363243993912] DEBUG - [Req#2944] [com.plexapp.agents.youtube] Sending command over HTTP (GET): /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMzJzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MTMzMXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
Aug 09, 2023 21:52:42.466 [140363243993912] DEBUG - [Req#2944/HCl#101] HTTP requesting GET http://127.0.0.1:42685/:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMzJzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MTMzMXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
Aug 09, 2023 21:52:42.466 [140363559512888] DEBUG - Completed: [127.0.0.1:59850] 200 GET /:/metadata/processing?id=171332 (29 live) #2940 GZIP 1ms 166 bytes
Aug 09, 2023 21:52:42.477 [140363466406712] DEBUG - Request: [127.0.0.1:59870 (Loopback)] GET /library/metadata/171332/tree (29 live) #2945 GZIP Signed-in Token (goose)
Aug 09, 2023 21:52:42.482 [140363557403448] DEBUG - Completed: [127.0.0.1:59870] 200 GET /library/metadata/171332/tree (29 live) #2945 GZIP 4ms 1024 bytes
Aug 09, 2023 21:52:42.530 [140363519150904] DEBUG - [HttpClient/HCl#101] HTTP/1.1 (0.1s) 200 response from GET http://127.0.0.1:42685/:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMzJzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MTMzMXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK (reused)
Aug 09, 2023 21:52:42.530 [140363243993912] DEBUG - [Req#2944] [com.plexapp.agents.youtube] HTTP reply status 200, with 16 bytes of content.
Aug 09, 2023 21:52:42.531 [140363559512888] DEBUG - Completed: [127.0.0.1:59860] 200 GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMzJzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MTMzMXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK (28 live) #2944 GZIP 65ms 430 bytes
Aug 09, 2023 21:52:42.540 [140363432696632] DEBUG - Request: [127.0.0.1:59886 (Loopback)] GET /library/metadata/171332/tree (28 live) #294f GZIP Signed-in Token (goose)
Aug 09, 2023 21:52:42.544 [140363559512888] DEBUG - Completed: [127.0.0.1:59886] 200 GET /library/metadata/171332/tree (28 live) #294f GZIP 4ms 1024 bytes
Aug 09, 2023 21:52:42.551 [140363466406712] DEBUG - Request: [127.0.0.1:59896 (Loopback)] GET /:/metadata/notify?guid=com.plexapp.agents.youtube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX+%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&path=TV+Shows%2F9%2F03fbc18de59b53d6c494f8fb1132b5e030145a4.bundle&force=1&queueSize=0&id=171332&success=1&async=1 (28 live) #2952 GZIP Signed-in Token (goose)
Aug 09, 2023 21:52:42.552 [140363466406712] DEBUG - [Req#2952] Notification of new metadata for com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn [id=171332] (success=1) for 1 items.
Aug 09, 2023 21:52:42.554 [140363466406712] WARN - [Req#2952] Unable to load episode file ["seasons/2019/episodes/2019-07-22.xml"]
Aug 09, 2023 21:52:42.556 [140363466406712] DEBUG - [Req#2952] Item 171332 (2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv) Scanning metadata graphic elements in XML file "seasons/2019/episodes"/2019-07-22.xml
Aug 09, 2023 21:52:42.556 [140363466406712] ERROR - [Req#2952] Error parsing XML: Empty or non-existant file..
Aug 09, 2023 21:52:42.558 [140363466406712] DEBUG - [Req#2952] Item 171332 (2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv) Scanning metadata graphic elements in XML file "seasons/2019/episodes"/2019-07-22.xml
Aug 09, 2023 21:52:42.558 [140363466406712] ERROR - [Req#2952] Error parsing XML: Empty or non-existant file..
Aug 09, 2023 21:52:42.558 [140363466406712] DEBUG - [Req#2952] Loading information from media bundle for part ID 355334 from "/config/Library/Application Support/Plex Media Server/Media/localhost/8/94e30c0a2aff62f3a69ce34f8e1be414823439a.bundle/Contents"
Aug 09, 2023 21:52:42.559 [140363466406712] DEBUG - [Req#2952] Loaded metadata for 2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv (ID 171332) in 6ms
Aug 09, 2023 21:52:42.559 [140363466406712] DEBUG - [Req#2952] Done with metadata update for 171332
Aug 09, 2023 21:52:42.559 [140363557403448] DEBUG - Completed: [127.0.0.1:59896] 200 GET /:/metadata/notify?guid=com.plexapp.agents.youtube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX+%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&path=TV+Shows%2F9%2F03fbc18de59b53d6c494f8fb1132b5e030145a4.bundle&force=1&queueSize=0&id=171332&success=1&async=1 (28 live) #2952 GZIP 8ms 166 bytes
==> com.plexapp.system.log <==
2023-08-09 21:52:42,449 (7fecd0e9fb38) :  DEBUG (runtime:717) - Handling request GET /system/agents/update?mediaType=4&force=1&respectTags=0&parentGUID=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%3Flang%3Dxn&parentID=171331&guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&id=171332
2023-08-09 21:52:42,451 (7fecd0e9fb38) :  DEBUG (runtime:814) - Found route matching /system/agents/update
2023-08-09 21:52:42,452 (7fecd0e9fb38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/:/plugins'
2023-08-09 21:52:42,456 (7fecd0e9fb38) :  DEBUG (agentservice:330) - Adding com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn to the update list
2023-08-09 21:52:42,458 (7fecd0e9fb38) :  DEBUG (runtime:924) - Response: [200] InitiateUpdateResponse, 161 bytes
2023-08-09 21:52:42,458 (7fecd1922b38) :  DEBUG (agentservice:497) - Acquiring GUID mutex for com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn (171332) (count is now 1)
2023-08-09 21:52:42,460 (7fecd1922b38) :  DEBUG (agentservice:497) - Acquired GUID mutex for com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn (171332)
2023-08-09 21:52:42,460 (7fecd1922b38) :  INFO (agentservice:497) - Preparing metadata for TV_Show in com.plexapp.agents.youtube (youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A])
2023-08-09 21:52:42,461 (7fecd1922b38) :  DEBUG (runtime:1117) - Created a thread named 'notify_processing'
2023-08-09 21:52:42,463 (7fecd0e9fb38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/:/metadata/processing?id=171332'
2023-08-09 21:52:42,463 (7fecd1922b38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMzJzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MTMzMXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK'
2023-08-09 21:52:42,533 (7fecd1922b38) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn
2023-08-09 21:52:42,533 (7fecd1922b38) :  DEBUG (model:234) - Deserializing from /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/9/03fbc18de59b53d6c494f8fb1132b5e030145a4.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-09 21:52:42,539 (7fecd1922b38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/library/metadata/171332/tree'
2023-08-09 21:52:42,545 (7fecd1922b38) :  DEBUG (sandbox:19) - >>> Agent order: []
2023-08-09 21:52:42,546 (7fecd1922b38) :  DEBUG (agentservice:677) - Combining subtitles for media bundle at '/config/Library/Application Support/Plex Media Server/Media/localhost/8/94e30c0a2aff62f3a69ce34f8e1be414823439a.bundle'
2023-08-09 21:52:42,546 (7fecd1922b38) :  DEBUG (sandbox:19) - >>> Creating combined XML file from {}
2023-08-09 21:52:42,547 (7fecd1922b38) :  DEBUG (sandbox:19) - Combined XML data: <?xml version='1.0' encoding='utf8'?>
<Subtitles/>

2023-08-09 21:52:42,547 (7fecd1922b38) :  INFO (agentservice:586) - Metadata preparation for com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn complete
2023-08-09 21:52:42,548 (7fecd0e9fb38) :  INFO (agentservice:767) - Bundle with guid com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn has been updated - notifying the media server
2023-08-09 21:52:42,548 (7fecd1922b38) :  DEBUG (runtime:1117) - Created a thread named 'notify_thread'
2023-08-09 21:52:42,549 (7fecd1922b38) :  DEBUG (agentservice:625) - Removing com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn from the update list
2023-08-09 21:52:42,549 (7fecd0e9fb38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/:/metadata/notify?guid=com.plexapp.agents.youtube%3A%2F%2Fyoutube%7CUCaH8b42Impdi8nfCsyBhY7A%7CVeeFX+%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F2019%2F2019-07-22%3Flang%3Dxn&path=TV+Shows%2F9%2F03fbc18de59b53d6c494f8fb1132b5e030145a4.bundle&force=1&queueSize=0&id=171332&success=1&async=1'
2023-08-09 21:52:42,550 (7fecd1922b38) :  DEBUG (agentservice:638) - Releasing GUID mutex for com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn
2023-08-09 21:52:42,550 (7fecd1922b38) :  DEBUG (agentservice:644) - We're done with the mutex for com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn
==> com.plexapp.agents.youtube.log <==
2023-08-09 21:52:42,467 (7fd15a999b38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMzJzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MTMzMXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
2023-08-09 21:52:42,468 (7fd15a999b38) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2023-08-09 21:52:42,469 (7fd15a999b38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzEzMzJzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MTMzMXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
2023-08-09 21:52:42,470 (7fd15a999b38) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn
2023-08-09 21:52:42,471 (7fd15a999b38) :  DEBUG (model:234) - Deserializing from /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/9/03fbc18de59b53d6c494f8fb1132b5e030145a4.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-09 21:52:42,476 (7fd15a999b38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/library/metadata/171332/tree'
2023-08-09 21:52:42,484 (7fd15a999b38) :  INFO (__init__:230) - === update(lang=xn, force=True, movie=False) ===
2023-08-09 21:52:42,484 (7fd15a999b38) :  INFO (__init__:77) - /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv
2023-08-09 21:52:42,484 (7fd15a999b38) :  INFO (__init__:366) - =============================================================================================================================================================
2023-08-09 21:52:42,485 (7fd15a999b38) :  INFO (__init__:342) - [ ] library:    "YouTube"
2023-08-09 21:52:42,485 (7fd15a999b38) :  INFO (__init__:343) - [ ] root:       "/media/YouTube/video"
2023-08-09 21:52:42,485 (7fd15a999b38) :  INFO (__init__:344) - [ ] path:       "VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-09 21:52:42,486 (7fd15a999b38) :  INFO (__init__:345) - [ ] dir:        "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-09 21:52:42,486 (7fd15a999b38) :  INFO (__init__:350) - [ ] series_root_folder: "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-09 21:52:42,486 (7fd15a999b38) :  INFO (__init__:353) - [ ] subfolder_count:    "0"
2023-08-09 21:52:42,487 (7fd15a999b38) :  INFO (__init__:373) - Grouping folder not found or single folder, root: /media/YouTube/video, path: VeeFX [UCaH8b42Impdi8nfCsyBhY7A], Grouping folder: VeeFX [UCaH8b42Impdi8nfCsyBhY7A], subdirs: 0, reverse_path: [u'VeeFX [UCaH8b42Impdi8nfCsyBhY7A]']
2023-08-09 21:52:42,497 (7fd15a999b38) :  DEBUG (networking:139) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCaH8b42Impdi8nfCsyBhY7A&key=AIzaSyAdbN11U_HxVbCc6WUrmcGjHzktb0B_MwA' from the HTTP cache
2023-08-09 21:52:42,506 (7fd15a999b38) :  INFO (__init__:489) - [ ] title:        "VeeFX ", metadata.title: "VeeFX "
2023-08-09 21:52:42,506 (7fd15a999b38) :  INFO (__init__:482) - [ ] art:       https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-09 21:52:42,507 (7fd15a999b38) :  INFO (__init__:484) - [ ] banners:   https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-09 21:52:42,507 (7fd15a999b38) :  INFO (__init__:491) - [ ] posters:   https://yt3.ggpht.com/ytc/AOPolaTquJCPCbd2LmM7GRx913q6pW72-OjDrOCU2X0f=s240-c-k-c0x00ffffff-no-rj
2023-08-09 21:52:42,507 (7fd15a999b38) :  INFO (__init__:497) - [ ] role:        VeeFX
2023-08-09 21:52:42,508 (7fd15a999b38) :  INFO (__init__:510) - =============================================================================================================================================================
2023-08-09 21:52:42,508 (7fd15a999b38) :  INFO (__init__:511) - Season: 2019
2023-08-09 21:52:42,508 (7fd15a999b38) :  INFO (__init__:517) - metadata.seasons[2019].episodes[2019-07-23] "2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv"
2023-08-09 21:52:42,509 (7fd15a999b38) :  INFO (__init__:536) - populate_episode_metadata_from_info_json() - series_root_folder: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A], filename: 2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv
2023-08-09 21:52:42,509 (7fd15a999b38) :  INFO (__init__:537) - Searching for "2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].info.json". Searching in "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]".
2023-08-09 21:52:42,509 (7fd15a999b38) :  INFO (__init__:539) - Directory /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A] contains 3 files
2023-08-09 21:52:42,512 (7fd15a999b38) :  INFO (__init__:545) - Attempting to read metadata from /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].info.json
2023-08-09 21:52:42,512 (7fd15a999b38) :  INFO (__init__:547) - # videoId [ilqAyc5feXQ] not in Playlist/channel item list so loading json_video_details
2023-08-09 21:52:42,513 (7fd15a999b38) :  INFO (__init__:548) - [?] link:     "https://www.youtube.com/watch?v=ilqAyc5feXQ"
2023-08-09 21:52:42,513 (7fd15a999b38) :  INFO (__init__:135) - img_load() - series_root_folder: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A], filename: 2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv
2023-08-09 21:52:42,513 (7fd15a999b38) :  INFO (__init__:138) - local thumbnail found for file /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].jpg
2023-08-09 21:52:42,514 (7fd15a999b38) :  INFO (__init__:558) - [ ] title:    "Meat the Soldier"
2023-08-09 21:52:42,514 (7fd15a999b38) :  INFO (__init__:559) - [ ] summary:  "He knows a little more than you do, cow."
2023-08-09 21:52:42,514 (7fd15a999b38) :  INFO (__init__:560) - [ ] date:     "20190723"
2023-08-09 21:52:42,515 (7fd15a999b38) :  INFO (__init__:561) - [ ] duration: "12"
2023-08-09 21:52:42,515 (7fd15a999b38) :  INFO (__init__:572) - [ ] genres:   "[u'meme', u'funny', u'sun tzu', u'team fortress 2', u'cow', u'vine', u'People & Blogs', u'meat the soldier', u'meat', u'whatever', u'how do these work', u'cows', u'meet the soldier', u'tf2']"
2023-08-09 21:52:42,515 (7fd15a999b38) :  INFO (__init__:612) - === End Of Agent Call, errors after that are Plex related ===================================================================================================
2023-08-09 21:52:42,523 (7fd15a999b38) :  DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/9/03fbc18de59b53d6c494f8fb1132b5e030145a4.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-09 21:52:42,525 (7fd15a999b38) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2023-08-09 21:52:42,525 (7fd15a999b38) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes

Notably, from the first log file, it seems Plex is looking for a non-existent 2019-07-22.xml file, when it should be instead looking for 2019-07-23.xml.

Diving in to the container confirms this:

root@plex:~/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/ee8ff4f63b8153adc22d0170ab31ace44e2db43.bundle/Contents/_combined# ls "seasons/2019/episodes/" -1
2019-07-23
2019-07-23.xml

I am not sure where the discrepancy for the XML file comes from. The correct date is listed in the file name:

[goose@Vergil: ...ideo/VeeFX [UCaH8b42Impdi8nfCsyBhY7A] ] $ ls -1
'2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].info.json'
'2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].jpg'
'2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv'

The accompanying .info.json file:

[goose@Vergil: ...ideo/VeeFX [UCaH8b42Impdi8nfCsyBhY7A] ] $ jq ".upload_date" "2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].info.json"
"20190723"

And embedded in the video file itself:

[goose@Vergil: ...ideo/VeeFX [UCaH8b42Impdi8nfCsyBhY7A] ] $ ffprobe -loglevel 0 -print_format json -show_format -show_streams "2019-07-23 (VeeFX) Meat the Soldier [YouTube-ilqAyc5feXQ].mkv" | jq ".format.tags.DATE"
"20190723"

Digging around with another channel mirror, I experience the exact same behavior, Plex is trying to open XML files that are 1 day later than the day the video was published. I've tried enabling verbose logging but still can't see where the call for the incorrect XML file originates from. Are these XML files created by the YouTube Agent, or by Plex from data passed to it by the YouTube Agent?

@goose-ws
Copy link
Author

Adding to the above, setting the library type as Movie instead of TV Show, all the metadata is correctly identified and assigned. The trade off is that items are no longer grouped into a "Show", but each item is displayed individually.

Could the agent be tweaked to use a scheme closer to that of a "Daily show" format? Where all the files could be sorted by something like:

.
└── Channel Name [UCxxxxxxxxxxxxxxxxxxxxxx]
    └── Season 2019
    |   ├── 2019-07-23 (Channel Name) Video Title [YouTube-aBcDeFgHiJk].info.json
    |   ├── 2019-07-23 (Channel Name) Video Title [YouTube-aBcDeFgHiJk].jpg
    |   ├── 2019-07-23 (Channel Name) Video Title [YouTube-aBcDeFgHiJk].mkv
    |   ├── 2019-07-24 (Channel Name) Video Title 2 [YouTube-lMnOpQrStUv].info.json
    |   ├── 2019-07-24 (Channel Name) Video Title 2 [YouTube-lMnOpQrStUv].jpg
    |   ├── 2019-07-24 (Channel Name) Video Title 2 [YouTube-lMnOpQrStUv].mkv
    |   ├── 2019-07-25 (Channel Name) Video Title 3 [YouTube-wXyZaBcDeFg].info.json
    |   ├── 2019-07-25 (Channel Name) Video Title 3 [YouTube-wXyZaBcDeFg].jpg
    |   └── 2019-07-25 (Channel Name) Video Title 3 [YouTube-wXyZaBcDeFg].mkv
    └── Season 2020
        ├── 2020-07-23 (Channel Name) Video Title 4 [YouTube-44444444444].info.json
        ├── 2020-07-23 (Channel Name) Video Title 4 [YouTube-44444444444].jpg
        ├── 2020-07-23 (Channel Name) Video Title 4 [YouTube-44444444444].mkv
        ├── 2020-07-24 (Channel Name) Video Title 5 [YouTube-55555555555].info.json
        ├── 2020-07-24 (Channel Name) Video Title 5 [YouTube-55555555555].jpg
        ├── 2020-07-24 (Channel Name) Video Title 5 [YouTube-55555555555].mkv
        ├── 2020-07-25 (Channel Name) Video Title 6 [YouTube-66666666666].info.json
        ├── 2020-07-25 (Channel Name) Video Title 6 [YouTube-66666666666].jpg
        └── 2020-07-25 (Channel Name) Video Title 6 [YouTube-66666666666].mkv

And the agent determines their ordering based on their publish date, and/or upload timestamp in the case of videos published on the same day? I tried to organize my directory as such, but when I do, it changes the series name on Plex to Season 2019, and still does not identify the video correctly.

@ZeroQI
Copy link
Owner

ZeroQI commented Aug 10, 2023

When you have a playlist, the scanner keep them in order even if the playlist is reversed, so that the numbering doesn't change as new videos are published. This is why playlists are most stable for the scanner and agent

For channel videos. A date placeholder is used and when metadata is put, the season and ep number is chosen, which doesn't like multiple videos on the same date... This is tricky, so the year was used as a season, to make it simpler...

Video id in playlist/channel: https://github.com/ZeroQI/YouTube-Agent.bundle/blob/master/Contents/Code/__init__.py#L524
Video id not in playlist/channel: https://github.com/ZeroQI/YouTube-Agent.bundle/blob/master/Contents/Code/__init__.py#L558

videoId [ilqAyc5feXQ] not in Playlist/channel item list so loading json_video_details

This line is responsible for updating from JSON file: https://github.com/ZeroQI/YouTube-Agent.bundle/blob/master/Contents/Code/__init__.py#L582
it update and display from the same variable... it update the metadata for the episode, so i do not understand...
Can you please post the scanner log ?

In regards to video id, you can use 'youtube-' according to the code

@goose-ws
Copy link
Author

Can you please post the scanner log ?

In regards to video id, you can use 'youtube-' according to the code

Certainly. To try and make things more clear, I removed all contents of the directory, and bypassed TubeSync to use yt-dlp directly, instead.

[goose@Vergil: /mnt/zpool/media/YouTube/video ] $ yt-dlp --merge-output-format mkv --write-info-json -i -o "%(uploader)s [%(channel_id)s]/%(playlist_index)s - %(title)s [youtube-%(id)s].%(ext)s" -f bestvideo+bestaudio "https://www.youtube.com/channel/UCaH8b42Impdi8nfCsyBhY7A"
[youtube:tab] Extracting URL: https://www.youtube.com/channel/UCaH8b42Impdi8nfCsyBhY7A
[youtube:tab] UCaH8b42Impdi8nfCsyBhY7A: Downloading webpage
[youtube:tab] Downloading all uploads of the channel. To download only the videos in a specific tab, pass the tab's URL
[download] Downloading playlist: VeeFX - Videos
[info] Writing playlist metadata as JSON to: VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/0 - VeeFX - Videos [youtube-UCaH8b42Impdi8nfCsyBhY7A].info.json
[youtube:tab] Playlist VeeFX - Videos: Downloading 1 items of 1
[download] Downloading item 1 of 1
[youtube] Extracting URL: https://www.youtube.com/watch?v=ilqAyc5feXQ
[youtube] ilqAyc5feXQ: Downloading webpage
[youtube] ilqAyc5feXQ: Downloading ios player API JSON
[youtube] ilqAyc5feXQ: Downloading android player API JSON
[youtube] ilqAyc5feXQ: Downloading m3u8 information
[youtube] ilqAyc5feXQ: Downloading MPD manifest
[info] ilqAyc5feXQ: Downloading 1 format(s): 248+251
[info] Writing video metadata as JSON to: VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].info.json
[dashsegments] Total fragments: 4
[download] Destination: VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].f248.webm
[download] 100% of    3.13MiB in 00:00:00 at 6.81MiB/s
[download] Destination: VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].f251.webm
[download] 100% of  203.22KiB in 00:00:00 at 2.14MiB/s
[Merger] Merging formats into "VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv"
Deleting original file VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].f251.webm (pass -k to keep)
Deleting original file VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].f248.webm (pass -k to keep)
[info] Writing updated playlist metadata as JSON to: VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/0 - VeeFX - Videos [youtube-UCaH8b42Impdi8nfCsyBhY7A].info.json
[download] Finished downloading playlist: VeeFX - Videos
[goose@Vergil: /mnt/zpool/media/YouTube/video ] $

Following downloading this file, here is what is displayed in the logs:

[goose@Vergil: ...cation Support/Plex Media Server/Logs ] $ tail -n 0 -f "Plex Media Scanner.log" "PMS Plugin Logs/com.plexapp.agents.youtube.log" "ASS Scanner Logs/_root_.scanner.log" "ASS Scanner Logs/YouTube/VeeFX"*
==> Plex Media Scanner.log <==

==> PMS Plugin Logs/com.plexapp.agents.youtube.log <==

==> ASS Scanner Logs/_root_.scanner.log <==

==> ASS Scanner Logs/YouTube/VeeFX.filelist.log <==

==> ASS Scanner Logs/YouTube/VeeFX.scanner.log <==

==> ASS Scanner Logs/YouTube/VeeFX [UCaH8b42Impdi8nfCsyBhY7A].filelist.log <==

==> ASS Scanner Logs/YouTube/VeeFX [UCaH8b42Impdi8nfCsyBhY7A].scanner.log <==

==> ASS Scanner Logs/_root_.scanner.log <==
=============================================================================================================================================================
Plex scan start: 2023-08-10 10:47:38,096517
id:  1, type: movie , agent: tv.plex.agents.movie          , scanner: Plex Movie                    , library: 4K Movies               , path: /media/4K Movies
id:  2, type: movie , agent: tv.plex.agents.movie          , scanner: Plex Movie                    , library: Children's Movies       , path: /media/Children's Movies
id:  3, type: movie , agent: tv.plex.agents.movie          , scanner: Plex Movie                    , library: Movies                  , path: /media/Movies
id: 20, type: movie , agent: com.plexapp.agents.youtube    , scanner: Plex Video Files              , library: YouTube as Movies       , path: /media/YouTube/video
id:  4, type: show  , agent: tv.plex.agents.series         , scanner: Plex TV Series                , library: 4K TV Shows             , path: /media/4K TV Shows
id:  9, type: show  , agent: tv.plex.agents.series         , scanner: Plex TV Series                , library: Anime                   , path: /media/Anime
id:  5, type: show  , agent: tv.plex.agents.series         , scanner: Plex TV Series                , library: Children's TV Shows     , path: /media/Children's TV Shows
id:  6, type: show  , agent: com.plexapp.agents.none       , scanner: Plex Series Scanner           , library: DVR                     , path: /media/DVR
id:  7, type: show  , agent: com.plexapp.agents.none       , scanner: Plex Series Scanner           , library: Fitness                 , path: /media/Fitness
id:  8, type: show  , agent: tv.plex.agents.series         , scanner: Plex TV Series                , library: TV Shows                , path: /media/TV Shows
id: 19, type: show  , agent: com.plexapp.agents.youtube    , scanner: Absolute Series Scanner       , library: YouTube                 , path: /media/YouTube/video
id: 10, type: artist, agent: tv.plex.agents.music          , scanner: Plex Music                    , library: Music                   , path: /media/Music
id: 13, type: photo , agent: com.plexapp.agents.none       , scanner: Plex Photo Scanner            , library: Photos                  , path: /Pictures
=============================================================================================================================================================
tail: 'ASS Scanner Logs/YouTube/VeeFX [UCaH8b42Impdi8nfCsyBhY7A].scanner.log': file truncated
tail: 'ASS Scanner Logs/YouTube/VeeFX [UCaH8b42Impdi8nfCsyBhY7A].filelist.log': file truncated

==> ASS Scanner Logs/YouTube/VeeFX [UCaH8b42Impdi8nfCsyBhY7A].filelist.log <==
VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv

==> ASS Scanner Logs/YouTube/VeeFX [UCaH8b42Impdi8nfCsyBhY7A].scanner.log <==
=============================================================================================================================================================
Call: "Plex", path: "VeeFX [UCaH8b42Impdi8nfCsyBhY7A]", folder_show: "VeeFX [UCaH8b42Impdi8nfCsyBhY7A]", dirs (0), files (1)
=============================================================================================================================================================
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Removed file: 'VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/0 - VeeFX - Videos [youtube-UCaH8b42Impdi8nfCsyBhY7A].info.json' has an unsupported extension
Removed file: 'VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].info.json' has an unsupported extension
=============================================================================================================================================================
Forced ID (series folder) - source: "youtube", id: "UCaH8b42Impdi8nfCsyBhY7A"
season: 2019, episode: 2019-07-23, filename: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv,
season: 2019, keys(1): ['2019-07-23']
"VeeFX [youtube-UCaH8b42Impdi8nfCsyBhY7A]" s2019e2019-07-23                         "Youtube Date" "1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv" "1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv"

==> PMS Plugin Logs/com.plexapp.agents.youtube.log <==
2023-08-10 10:47:38,151 (7fa76596cb38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgpiNTMwODJmZjAwZDYzM2ZhczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczQ2CjEgLSBNZWF0IHRoZSBTb2xkaWVyIFt5b3V0dWJlLWlscUF5YzVmZVhRXS5ta3ZzNApuYW1lczEKMXM4CmVwaXNvZGljczQwClZlZUZYIFt5b3V0dWJlLVVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QV1zNApzaG93czEwCjIwMTktMDctMjNzMTEKcmVsZWFzZWRfYXRzNAoyMDE5czYKc2Vhc29uczQKMjAxOXM0CnllYXJzMTMyCiUyRm1lZGlhJTJGWW91VHViZSUyRnZpZGVvJTJGVmVlRlglMjAlNUJVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0ElNUQlMkYxJTIwLSUyME1lYXQlMjB0aGUlMjBTb2xkaWVyJTIwJTVCeW91dHViZS1pbHFBeWM1ZmVYUSU1RCUyRW1rdnM4CmZpbGVuYW1lczQwCjQ5N2EzNTQzODAxN2JjN2Q0MTEwMjVjMDBiY2IwZjM0ZDZiNjA5M2ZzOApwbGV4SGFzaHMyCi0xczgKZHVyYXRpb25zNgoxNzIwNzRzMgppZHIwCg__
2023-08-10 10:47:38,152 (7fa76596cb38) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2023-08-10 10:47:38,153 (7fa76596cb38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTExCnMxNgpiNTMwODJmZjAwZDYzM2ZhczE3Cm9wZW5TdWJ0aXRsZXNIYXNoczQ2CjEgLSBNZWF0IHRoZSBTb2xkaWVyIFt5b3V0dWJlLWlscUF5YzVmZVhRXS5ta3ZzNApuYW1lczEKMXM4CmVwaXNvZGljczQwClZlZUZYIFt5b3V0dWJlLVVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QV1zNApzaG93czEwCjIwMTktMDctMjNzMTEKcmVsZWFzZWRfYXRzNAoyMDE5czYKc2Vhc29uczQKMjAxOXM0CnllYXJzMTMyCiUyRm1lZGlhJTJGWW91VHViZSUyRnZpZGVvJTJGVmVlRlglMjAlNUJVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0ElNUQlMkYxJTIwLSUyME1lYXQlMjB0aGUlMjBTb2xkaWVyJTIwJTVCeW91dHViZS1pbHFBeWM1ZmVYUSU1RCUyRW1rdnM4CmZpbGVuYW1lczQwCjQ5N2EzNTQzODAxN2JjN2Q0MTEwMjVjMDBiY2IwZjM0ZDZiNjA5M2ZzOApwbGV4SGFzaHMyCi0xczgKZHVyYXRpb25zNgoxNzIwNzRzMgppZHIwCg__
2023-08-10 10:47:38,153 (7fa76596cb38) :  INFO (agentkit:961) - Searching for matches for {'openSubtitlesHash': 'b53082ff00d633fa', 'name': '1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv', 'episodic': '1', 'show': 'VeeFX [youtube-UCaH8b42Impdi8nfCsyBhY7A]', 'released_at': '2019-07-23', 'season': '2019', 'plexHash': '497a35438017bc7d411025c00bcb0f34d6b6093f', 'filename': '%2Fmedia%2FYouTube%2Fvideo%2FVeeFX%20%5BUCaH8b42Impdi8nfCsyBhY7A%5D%2F1%20-%20Meat%20the%20Soldier%20%5Byoutube-ilqAyc5feXQ%5D%2Emkv', 'year': '2019', 'duration': '-1', 'id': '172074'}
2023-08-10 10:47:38,154 (7fa76596cb38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/library/metadata/172074/tree'
2023-08-10 10:47:38,162 (7fa76596cb38) :  INFO (__init__:77) - /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv
2023-08-10 10:47:38,163 (7fa76596cb38) :  INFO (__init__:220) - =============================================================================================================================================================
2023-08-10 10:47:38,163 (7fa76596cb38) :  INFO (__init__:220) - Search() - dir: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A], filename: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv, displayname: VeeFX [youtube-UCaH8b42Impdi8nfCsyBhY7A]
2023-08-10 10:47:38,163 (7fa76596cb38) :  INFO (__init__:220) - search() - YouTube ID found - regex: PLAYLIST, youtube ID: "UCaH8b42Impdi8nfCsyBhY7A"
2023-08-10 10:47:38,163 (7fa76596cb38) :  INFO (__init__:220) - =============================================================================================================================================================
2023-08-10 10:47:38,164 (7fa76596cb38) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2023-08-10 10:47:38,165 (7fa76596cb38) :  DEBUG (runtime:924) - Response: [200] str, 748 bytes
2023-08-10 10:47:38,193 (7fa76596cb38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzIwNzRzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDIKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXT9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
2023-08-10 10:47:38,194 (7fa76596cb38) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2023-08-10 10:47:38,195 (7fa76596cb38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzIwNzRzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDIKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXT9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
2023-08-10 10:47:38,196 (7fa76596cb38) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]?lang=xn
2023-08-10 10:47:38,196 (7fa76596cb38) :  DEBUG (model:234) - Deserializing from /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/ee8ff4f63b8153adc22d0170ab31ace44e2db43.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-10 10:47:38,203 (7fa76596cb38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/library/metadata/172074/tree'
2023-08-10 10:47:38,209 (7fa76596cb38) :  INFO (__init__:230) - === update(lang=xn, force=True, movie=False) ===
2023-08-10 10:47:38,209 (7fa76596cb38) :  INFO (__init__:77) - /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv
2023-08-10 10:47:38,210 (7fa76596cb38) :  INFO (__init__:352) - =============================================================================================================================================================
2023-08-10 10:47:38,210 (7fa76596cb38) :  INFO (__init__:342) - [ ] library:    "YouTube"
2023-08-10 10:47:38,210 (7fa76596cb38) :  INFO (__init__:343) - [ ] root:       "/media/YouTube/video"
2023-08-10 10:47:38,210 (7fa76596cb38) :  INFO (__init__:344) - [ ] path:       "VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-10 10:47:38,211 (7fa76596cb38) :  INFO (__init__:345) - [ ] dir:        "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-10 10:47:38,211 (7fa76596cb38) :  INFO (__init__:350) - [ ] series_root_folder: "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-10 10:47:38,211 (7fa76596cb38) :  INFO (__init__:489) - [ ] subfolder_count:    "0"
2023-08-10 10:47:38,211 (7fa76596cb38) :  INFO (__init__:489) - Grouping folder not found or single folder, root: /media/YouTube/video, path: VeeFX [UCaH8b42Impdi8nfCsyBhY7A], Grouping folder: VeeFX [UCaH8b42Impdi8nfCsyBhY7A], subdirs: 0, reverse_path: [u'VeeFX [UCaH8b42Impdi8nfCsyBhY7A]']
2023-08-10 10:47:38,220 (7fa76596cb38) :  DEBUG (networking:139) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCaH8b42Impdi8nfCsyBhY7A&key=AIzaSyAdbN11U_HxVbCc6WUrmcGjHzktb0B_MwA' from the HTTP cache
2023-08-10 10:47:38,228 (7fa76596cb38) :  INFO (__init__:489) - [ ] title:        "VeeFX ", metadata.title: "VeeFX "
2023-08-10 10:47:38,228 (7fa76596cb38) :  INFO (__init__:482) - [ ] art:       https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-10 10:47:38,228 (7fa76596cb38) :  INFO (__init__:484) - [ ] banners:   https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-10 10:47:38,229 (7fa76596cb38) :  INFO (__init__:491) - [ ] posters:   https://yt3.ggpht.com/ytc/AOPolaTquJCPCbd2LmM7GRx913q6pW72-OjDrOCU2X0f=s240-c-k-c0x00ffffff-no-rj
2023-08-10 10:47:38,229 (7fa76596cb38) :  INFO (__init__:497) - [ ] role:        VeeFX
2023-08-10 10:47:38,229 (7fa76596cb38) :  INFO (__init__:510) - =============================================================================================================================================================
2023-08-10 10:47:38,230 (7fa76596cb38) :  INFO (__init__:511) - Season: 2019
2023-08-10 10:47:38,230 (7fa76596cb38) :  INFO (__init__:517) - metadata.seasons[2019].episodes[2019-07-23] "1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv"
2023-08-10 10:47:38,230 (7fa76596cb38) :  INFO (__init__:536) - populate_episode_metadata_from_info_json() - series_root_folder: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A], filename: 1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv
2023-08-10 10:47:38,230 (7fa76596cb38) :  INFO (__init__:537) - Searching for "1 - Meat the Soldier [youtube-ilqAyc5feXQ].info.json". Searching in "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]".
2023-08-10 10:47:38,231 (7fa76596cb38) :  INFO (__init__:539) - Directory /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A] contains 3 files
2023-08-10 10:47:38,234 (7fa76596cb38) :  INFO (__init__:545) - Attempting to read metadata from /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/1 - Meat the Soldier [youtube-ilqAyc5feXQ].info.json
2023-08-10 10:47:38,234 (7fa76596cb38) :  INFO (__init__:547) - # videoId [ilqAyc5feXQ] not in Playlist/channel item list so loading json_video_details
2023-08-10 10:47:38,234 (7fa76596cb38) :  INFO (__init__:548) - [?] link:     "https://www.youtube.com/watch?v=ilqAyc5feXQ"
2023-08-10 10:47:38,235 (7fa76596cb38) :  INFO (__init__:135) - img_load() - series_root_folder: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A], filename: 1 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv
2023-08-10 10:47:38,235 (7fa76596cb38) :  INFO (__init__:558) - [ ] title:    "Meat the Soldier"
2023-08-10 10:47:38,235 (7fa76596cb38) :  INFO (__init__:559) - [ ] summary:  "He knows a little more than you do, cow."
2023-08-10 10:47:38,236 (7fa76596cb38) :  INFO (__init__:560) - [ ] date:     "20190723"
2023-08-10 10:47:38,236 (7fa76596cb38) :  INFO (__init__:561) - [ ] duration: "12"
2023-08-10 10:47:38,236 (7fa76596cb38) :  INFO (__init__:572) - [ ] genres:   "[u'meme', u'funny', u'sun tzu', u'team fortress 2', u'cow', u'vine', u'People & Blogs', u'meat the soldier', u'meat', u'whatever', u'how do these work', u'cows', u'meet the soldier', u'tf2']"
2023-08-10 10:47:38,237 (7fa76596cb38) :  INFO (__init__:612) - === End Of Agent Call, errors after that are Plex related ===================================================================================================
2023-08-10 10:47:38,244 (7fa76596cb38) :  DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/0/ee8ff4f63b8153adc22d0170ab31ace44e2db43.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-10 10:47:38,245 (7fa76596cb38) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2023-08-10 10:47:38,246 (7fa76596cb38) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes

As a result, the media is added to Plex. The channel is correctly identified, and appropriate metadata is applied. But when I navigate to the individual video, all that shows is the title of the video, none of its associated metadata. Video for clarity:

2023-08-10.10-47-38.mp4

So rather than this:

image

I am expecting this:

image

@ZeroQI
Copy link
Owner

ZeroQI commented Aug 10, 2023

Director summary title missing despite being found (it give the line number in the code after init)
2023-08-10 10:47:38,235 (7fa76596cb38) : INFO (init:558) - [ ] title: "Meat the Soldier"
2023-08-10 10:47:38,235 (7fa76596cb38) : INFO (init:559) - [ ] summary: "He knows a little more than you do, cow."
2023-08-10 10:47:38,236 (7fa76596cb38) : INFO (init:560) - [ ] date: "20190723"
2023-08-10 10:47:38,236 (7fa76596cb38) : INFO (init:561) - [ ] duration: "12"
2023-08-10 10:47:38,236 (7fa76596cb38) : INFO (init:572) - [ ] genres: "[u'meme', u'funny', u'sun tzu', u'team fortress 2', u'cow', u'vine', u'People & Blogs', u'meat the soldier', u'meat', u'whatever', u'how do these work', u'cows', u'meet the soldier', u'tf2']"

There could be a bug with the date based episodes however, but outside the agent control...
One could try s2019e001 as numbering convention, the scanner would associate the given episode number, to se if the same code works to narrow down the issue

@goose-ws
Copy link
Author

One could try s2019e001 as numbering convention, the scanner would associate the given episode number, to se if the same code works to narrow down the issue

No difference, unfortunately:

==> PMS Plugin Logs/com.plexapp.agents.youtube.log <==
2023-08-10 11:48:04,972 (7f5c0ab41b38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzIwODBzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MjA3OXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
2023-08-10 11:48:04,973 (7f5c0ab41b38) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2023-08-10 11:48:04,974 (7f5c0ab41b38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgoxNzIwODBzNApkYmlkaTAKczcKdmVyc2lvbnMxMDcKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXS8yMDE5P2xhbmc9eG5zMTAKcGFyZW50R1VJRHM2CjE3MjA3OXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczExOApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBfFZlZUZYIFtVQ2FIOGI0MkltcGRpOG5mQ3N5QmhZN0FdLzIwMTkvMjAxOS0wNy0yMj9sYW5nPXhuczQKZ3VpZHM2NQp5b3V0dWJlfFVDYUg4YjQySW1wZGk4bmZDc3lCaFk3QXxWZWVGWCBbVUNhSDhiNDJJbXBkaThuZkNzeUJoWTdBXXMyCmlkcjAK
2023-08-10 11:48:04,975 (7f5c0ab41b38) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCaH8b42Impdi8nfCsyBhY7A|VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/2019/2019-07-22?lang=xn
2023-08-10 11:48:04,975 (7f5c0ab41b38) :  DEBUG (model:234) - Deserializing from /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/9/03fbc18de59b53d6c494f8fb1132b5e030145a4.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-10 11:48:04,983 (7f5c0ab41b38) :  DEBUG (networking:144) - Requesting 'http://127.0.0.1:32400/library/metadata/172080/tree'
2023-08-10 11:48:04,989 (7f5c0ab41b38) :  INFO (__init__:230) - === update(lang=xn, force=True, movie=False) ===
2023-08-10 11:48:04,990 (7f5c0ab41b38) :  INFO (__init__:77) - /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/S2019E001 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv
2023-08-10 11:48:04,990 (7f5c0ab41b38) :  INFO (__init__:242) - =============================================================================================================================================================
2023-08-10 11:48:04,990 (7f5c0ab41b38) :  INFO (__init__:342) - [ ] library:    "YouTube"
2023-08-10 11:48:04,990 (7f5c0ab41b38) :  INFO (__init__:343) - [ ] root:       "/media/YouTube/video"
2023-08-10 11:48:04,991 (7f5c0ab41b38) :  INFO (__init__:344) - [ ] path:       "VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-10 11:48:04,991 (7f5c0ab41b38) :  INFO (__init__:345) - [ ] dir:        "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-10 11:48:04,991 (7f5c0ab41b38) :  INFO (__init__:350) - [ ] series_root_folder: "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]"
2023-08-10 11:48:04,992 (7f5c0ab41b38) :  INFO (__init__:353) - [ ] subfolder_count:    "0"
2023-08-10 11:48:04,992 (7f5c0ab41b38) :  INFO (__init__:373) - Grouping folder not found or single folder, root: /media/YouTube/video, path: VeeFX [UCaH8b42Impdi8nfCsyBhY7A], Grouping folder: VeeFX [UCaH8b42Impdi8nfCsyBhY7A], subdirs: 0, reverse_path: [u'VeeFX [UCaH8b42Impdi8nfCsyBhY7A]']
2023-08-10 11:48:05,000 (7f5c0ab41b38) :  DEBUG (networking:139) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCaH8b42Impdi8nfCsyBhY7A&key=AIzaSyAdbN11U_HxVbCc6WUrmcGjHzktb0B_MwA' from the HTTP cache
2023-08-10 11:48:05,007 (7f5c0ab41b38) :  INFO (__init__:413) - [ ] title:        "VeeFX ", metadata.title: "VeeFX "
2023-08-10 11:48:05,007 (7f5c0ab41b38) :  INFO (__init__:482) - [ ] art:       https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-10 11:48:05,008 (7f5c0ab41b38) :  INFO (__init__:484) - [ ] banners:   https://lh3.googleusercontent.com/bFLmItvtHBY9mh5awdOk14YfyVWGyv94uj_HvUaZGKNxybW6NerlEAtGrNJRFi7kWl3vtQBJiA=s1920
2023-08-10 11:48:05,008 (7f5c0ab41b38) :  INFO (__init__:491) - [ ] posters:   https://yt3.ggpht.com/ytc/AOPolaTquJCPCbd2LmM7GRx913q6pW72-OjDrOCU2X0f=s240-c-k-c0x00ffffff-no-rj
2023-08-10 11:48:05,008 (7f5c0ab41b38) :  INFO (__init__:497) - [ ] role:        VeeFX
2023-08-10 11:48:05,009 (7f5c0ab41b38) :  INFO (__init__:510) - =============================================================================================================================================================
2023-08-10 11:48:05,009 (7f5c0ab41b38) :  INFO (__init__:511) - Season: 2019
2023-08-10 11:48:05,009 (7f5c0ab41b38) :  INFO (__init__:517) - metadata.seasons[2019].episodes[2019-07-23] "S2019E001 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv"
2023-08-10 11:48:05,009 (7f5c0ab41b38) :  INFO (__init__:536) - populate_episode_metadata_from_info_json() - series_root_folder: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A], filename: S2019E001 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv
2023-08-10 11:48:05,010 (7f5c0ab41b38) :  INFO (__init__:537) - Searching for "S2019E001 - Meat the Soldier [youtube-ilqAyc5feXQ].info.json". Searching in "/media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]".
2023-08-10 11:48:05,010 (7f5c0ab41b38) :  INFO (__init__:539) - Directory /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A] contains 3 files
2023-08-10 11:48:05,013 (7f5c0ab41b38) :  INFO (__init__:545) - Attempting to read metadata from /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A]/S2019E001 - Meat the Soldier [youtube-ilqAyc5feXQ].info.json
2023-08-10 11:48:05,013 (7f5c0ab41b38) :  INFO (__init__:547) - # videoId [ilqAyc5feXQ] not in Playlist/channel item list so loading json_video_details
2023-08-10 11:48:05,013 (7f5c0ab41b38) :  INFO (__init__:548) - [?] link:     "https://www.youtube.com/watch?v=ilqAyc5feXQ"
2023-08-10 11:48:05,013 (7f5c0ab41b38) :  INFO (__init__:135) - img_load() - series_root_folder: /media/YouTube/video/VeeFX [UCaH8b42Impdi8nfCsyBhY7A], filename: S2019E001 - Meat the Soldier [youtube-ilqAyc5feXQ].mkv
2023-08-10 11:48:05,014 (7f5c0ab41b38) :  INFO (__init__:558) - [ ] title:    "Meat the Soldier"
2023-08-10 11:48:05,014 (7f5c0ab41b38) :  INFO (__init__:559) - [ ] summary:  "He knows a little more than you do, cow."
2023-08-10 11:48:05,015 (7f5c0ab41b38) :  INFO (__init__:560) - [ ] date:     "20190723"
2023-08-10 11:48:05,015 (7f5c0ab41b38) :  INFO (__init__:561) - [ ] duration: "12"
2023-08-10 11:48:05,015 (7f5c0ab41b38) :  INFO (__init__:572) - [ ] genres:   "[u'meme', u'funny', u'sun tzu', u'team fortress 2', u'cow', u'vine', u'People & Blogs', u'meat the soldier', u'meat', u'whatever', u'how do these work', u'cows', u'meet the soldier', u'tf2']"
2023-08-10 11:48:05,016 (7f5c0ab41b38) :  INFO (__init__:612) - === End Of Agent Call, errors after that are Plex related ===================================================================================================
2023-08-10 11:48:05,023 (7f5c0ab41b38) :  DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/9/03fbc18de59b53d6c494f8fb1132b5e030145a4.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2023-08-10 11:48:05,024 (7f5c0ab41b38) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2023-08-10 11:48:05,025 (7f5c0ab41b38) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes

image

@ZeroQI
Copy link
Owner

ZeroQI commented Aug 10, 2023

Episode number is still a date though...
When modifying a series folder file, if the file themselves stay the same, the scanner use a cache for the results and nothing change... Add or remove a video file in that folder and rescan

@goose-ws
Copy link
Author

So I'm skeptical of the root problem being a naming scheme issue. In the interest of testing this out more, I delisted every video on my own channel except for 6. I put those 6 videos on a playlist. Meaning that currently, my own channel and the test playlist I made are the same:

Channel: https://www.youtube.com/channel/UCw3wlMHLmsE7x1b2_9cAOBA
Playlist: https://www.youtube.com/playlist?list=PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG

I pulled all of the data into two directories via yt-dlp, and found that the only difference is their parent folder name:

[goose@Vergil: /mnt/zpool/media/YouTube/video ] $ tree "goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" "goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]"         [1][ 3:32PM]
goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]
├── 2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].info.json
├── 2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv
├── 2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].info.json
├── 2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv
├── 2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].info.json
├── 2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].jpg
├── 2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv
├── 2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].info.json
├── 2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].jpg
├── 2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv
├── 2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].info.json
├── 2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv
├── 2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].info.json
├── 2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].jpg
└── 2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv
goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]
├── 2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].info.json
├── 2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv
├── 2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].info.json
├── 2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv
├── 2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].info.json
├── 2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].jpg
├── 2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv
├── 2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].info.json
├── 2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].jpg
├── 2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv
├── 2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].info.json
├── 2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv
├── 2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].info.json
├── 2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].jpg
└── 2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv

0 directories, 30 files
[goose@Vergil: /mnt/zpool/media/YouTube/video ] $ find "goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" "goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]" -type f | while read i; do md5sum "${i}"; done | sort
32ead5a734b657534a940cf3e2327d3b  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].jpg
32ead5a734b657534a940cf3e2327d3b  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].jpg
453faf4c9901cd725cf9c77ff2761924  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].jpg
453faf4c9901cd725cf9c77ff2761924  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].jpg
7b0082ef5ce679d51b1d73ef4d9ebe58  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].info.json
7b0082ef5ce679d51b1d73ef4d9ebe58  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].info.json
7be4cf93c8c4f9070340c537d1410ff7  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv
7be4cf93c8c4f9070340c537d1410ff7  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv
8076acfda9a7241659b1cb00db7502b5  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].info.json
8076acfda9a7241659b1cb00db7502b5  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].info.json
a4b64dec92088f0b5d3c0aae387549f6  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv
a4b64dec92088f0b5d3c0aae387549f6  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv
d158aefdc79de16aa412568c41cfa7fc  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].info.json
d158aefdc79de16aa412568c41cfa7fc  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].info.json
d6d158afd93191ba3e84c81c27ac6a01  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv
d6d158afd93191ba3e84c81c27ac6a01  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv
dba17191f62d13a3d6ef03e1f34dfce4  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].info.json
dba17191f62d13a3d6ef03e1f34dfce4  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].info.json
e7ff179ee964c53505162ea8b93853bc  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv
e7ff179ee964c53505162ea8b93853bc  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv
ead4d7994b45a730ab881b903d59409a  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].info.json
ead4d7994b45a730ab881b903d59409a  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].info.json
f8970d229a45c2a2cd436ce35a01423c  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].jpg
f8970d229a45c2a2cd436ce35a01423c  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].jpg
fab6a6a1a543fee6fac49091fd787b7f  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].info.json
fab6a6a1a543fee6fac49091fd787b7f  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].info.json
fc941dccb83c7c320d5a6bc0ecae5229  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv
fc941dccb83c7c320d5a6bc0ecae5229  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv
fdc1ad776e2de7251e75d525ebccd8d5  goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv
fdc1ad776e2de7251e75d525ebccd8d5  goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv
[goose@Vergil: /mnt/zpool/media/YouTube/video ] $

As you can see, the file names, md5sums, and structure are identical. The only difference is that one parent directory has [UCw3wlMHLmsE7x1b2_9cAOBA] in its name, and the other has [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG] in its name.

With this, the same issue persists. As expected, the two items present based on their source in Plex, and with proper metadata:

image

The playlist episodes all appear as one season, and the episodes all have metadata properly applied:

image

The channel episodes appear as three seasons, and metadata for the channel itself is applied to the series (Channel with 182 videos...)

image

However, metadata is not applied for each episode:

image

Furthermore, there's a matching issue. The "Season 2023" folder matched all 3 videos as one:

image
image

Given this behavior despite identical files and individual file names, I would think it has to point at something else. I'm not fluent enough in python to read through the source of init.py, but if the only difference in this example is the regex match of the parent folder, would that not point to an issue with the way the metadata is processed by the agent and then passed to Plex?

@erocm123
Copy link

I haven't paid the tax yet, but just wanted to mention that I am seeing the same behavior on my install as well. Tried on both my Synology server and my CentOS server. Wget and "git clone" to pull the latest agent and scanner. The scanner finds all of the files (don't have the youtube prefex) and the agent is able to match the id according to the logs (shows title, details, etc.), but for many files the data is not shown in Plex. I have tried using json files as well as just pulling the data with the google api (when the json is missing) and the results are the same.

Anyway, don't mean to pile on or anything as I think it is awesome that you are working on this project. Don't want to discourage anyone. ;) Just thought I would mention that you aren't alone.

@ZeroQI
Copy link
Owner

ZeroQI commented Aug 10, 2023

Is there an older version that doesn't have these issues? There was a code push in latest that wasn't fully tested...

@erocm123
Copy link

I'm not sure because I am a new user and just grabbed the latest.

@goose-ws
Copy link
Author

Is there an older version that doesn't have these issues? There was a code push in latest that wasn't fully tested...

I'm not sure, as I am a new user as well. I don't see releases versioned out on the Releases page, and only a Master branch. If you tell me when the code push you're referring to was made, I can try and roll back to that version and test again.

@goose-ws
Copy link
Author

To follow up on this, are you able to recommend a specific commit/version @ZeroQI?

@ZeroQI
Copy link
Owner

ZeroQI commented Aug 15, 2023

2 people impacted on the very latest that came out a week ago... Use the version just before that

@goose-ws
Copy link
Author

Unfortunately rolling back does not seem to change the behavior.

I rolled back to the commit from January 20, 2023, removed the items from the library entirely, then re-added them to the library. Results are the same:

image

Identical files, names, and structures, other than the name of the parent folder containing either the Playlist ID or the Channel ID. Channel ID still does not display metadata correctly.

Logs are similar as well:

==> ASS Scanner Logs/_root_.scanner.log <==
=============================================================================================================================================================
Plex scan start: 2023-08-16 13:02:59,441246
id:  1, type: movie , agent: tv.plex.agents.movie          , scanner: Plex Movie                    , library: 4K Movies               , path: /media/4K Movies
id:  2, type: movie , agent: tv.plex.agents.movie          , scanner: Plex Movie                    , library: Children's Movies       , path: /media/Children's Movies
id:  3, type: movie , agent: tv.plex.agents.movie          , scanner: Plex Movie                    , library: Movies                  , path: /media/Movies
id:  4, type: show  , agent: tv.plex.agents.series         , scanner: Plex TV Series                , library: 4K TV Shows             , path: /media/4K TV Shows
id:  9, type: show  , agent: tv.plex.agents.series         , scanner: Plex TV Series                , library: Anime                   , path: /media/Anime
id:  5, type: show  , agent: tv.plex.agents.series         , scanner: Plex TV Series                , library: Children's TV Shows     , path: /media/Children's TV Shows
id:  6, type: show  , agent: com.plexapp.agents.none       , scanner: Plex Series Scanner           , library: DVR                     , path: /media/DVR
id:  7, type: show  , agent: com.plexapp.agents.none       , scanner: Plex Series Scanner           , library: Fitness                 , path: /media/Fitness
id:  8, type: show  , agent: tv.plex.agents.series         , scanner: Plex TV Series                , library: TV Shows                , path: /media/TV Shows
id: 19, type: show  , agent: com.plexapp.agents.youtube    , scanner: Absolute Series Scanner       , library: YouTube                 , path: /media/YouTube/video
id: 10, type: artist, agent: tv.plex.agents.music          , scanner: Plex Music                    , library: Music                   , path: /media/Music
id: 13, type: photo , agent: com.plexapp.agents.none       , scanner: Plex Photo Scanner            , library: Photos                  , path: /Pictures
=============================================================================================================================================================

==> ASS Scanner Logs/YouTube/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA].filelist.log <==
goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv
goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv
goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv
goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv
goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv
goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv

==> ASS Scanner Logs/YouTube/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA].scanner.log <==
=============================================================================================================================================================
Call: "Plex", path: "goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]", folder_show: "goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]", dirs (0), files (6)
=============================================================================================================================================================
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Removed file: 'goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].info.json' has an unsupported extension
Removed file: 'goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].info.json' has an unsupported extension
Removed file: 'goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].info.json' has an unsupported extension
Removed file: 'goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].jpg' has an unsupported extension
Removed file: 'goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].info.json' has an unsupported extension
Removed file: 'goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].jpg' has an unsupported extension
Removed file: 'goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].info.json' has an unsupported extension
Removed file: 'goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].info.json' has an unsupported extension
Removed file: 'goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].jpg' has an unsupported extension
=============================================================================================================================================================
Forced ID (series folder) - source: "youtube", id: "UCw3wlMHLmsE7x1b2_9cAOBA"
season: 2019, episode: 2019-07-09, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv,
season: 2022, episode: 2022-08-07, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv,
season: 2022, episode: 2022-10-08, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv,
season: 2023, episode: 2023-08-10, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv,
season: 2023, episode: 2023-08-1002, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv,
season: 2023, episode: 2023-08-1003, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv,
season: 2019, keys(1): ['2019-07-09']
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2019e2019-07-09                         "Youtube Date" "2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv" "2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv"
season: 2022, keys(2): ['2022-08-07', '2022-10-08']
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2022e2022-08-07                         "Youtube Date" "2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv" "2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv"
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2022e2022-10-08                         "Youtube Date" "2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv" "2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv"
season: 2023, keys(4): ['2023-08-1002', '2023-08-1003', '2023-08-1001', '2023-08-10']
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2023e2023-08-10                         "Youtube Date" "2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv" "2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv"
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2023e2023-08-10                         "Youtube Date" "2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv" "2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv"
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2023e2023-08-10                         "Youtube Date" "2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv" "2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv"

==> ASS Scanner Logs/YouTube/goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG].filelist.log <==
goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv
goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv
goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv
goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv
goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv
goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv

==> ASS Scanner Logs/YouTube/goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG].scanner.log <==
=============================================================================================================================================================
Call: "Plex", path: "goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]", folder_show: "goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]", dirs (0), files (6)
=============================================================================================================================================================
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Removed file: 'goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].info.json' has an unsupported extension
Removed file: 'goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].info.json' has an unsupported extension
Removed file: 'goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].info.json' has an unsupported extension
Removed file: 'goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].jpg' has an unsupported extension
Removed file: 'goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].info.json' has an unsupported extension
Removed file: 'goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].jpg' has an unsupported extension
Removed file: 'goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].info.json' has an unsupported extension
Removed file: 'goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].info.json' has an unsupported extension
Removed file: 'goose_ws Playlist [PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].jpg' has an unsupported extension
=============================================================================================================================================================
Forced ID (series folder) - source: "youtube", id: "PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG"
YouTube Playlist API call
https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails&maxResults=50&playlistId=PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG&key=AIzaSyAdbN11U_HxVbCc6WUrmcGjHzktb0B_MwA
---- totalResults: 6, reverse: False, os.listdir(os.path.join(root, path): [u'2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].info.json', u'2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].jpg', u"2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].info.json", u'2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].info.json', u'2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv', u'2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].jpg', u'2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv', u'2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv', u'2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].info.json', u"2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv", u'2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv', u'2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].info.json', u'2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv', u'2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].jpg', u'2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].info.json']
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         2                         "YouTube" "When they just ignore you" "2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         6                         "YouTube" "Genji - An X Strike Story" "2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         1                         "YouTube" "Zuljin knew what was up" "2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         5                         "YouTube" "Run Kael'Thas, Ruuuuuuuun" "2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         3                         "YouTube" "Orc Car Bomb" "2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         4                         "YouTube" "Probably my diciest boss steal yet" "2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv"

I would love to offer a pull request to fix this, but sadly I have no knowledge of python to offer such a pull request. I suppose the workaround in the mean time is to back up my YT Playlists to one library set up as a series, and my YT channels to another library set up as movies, as the agent works and applies metadata correctly if the library type is set to movie instead of series. The ideal behavior (for me, anyways) would be to put them both in a series library. If I want to set up an automatically sync/download for a particular channel so I can have their latest video(s) when I'm out and about without good service, it's much easier to set Sync up to download the 5 latest unwatched videos from a series library, rather than having to add/remove individual items from a movies library.

@goose-ws
Copy link
Author

I think I may have found the problem. Despite not knowing Python, I was picking through the code of __init__.py, and believe the root of the issue may be related to line 632:

YOUTUBE_CHANNEL_ITEMS    = YOUTUBE_API_BASE_URL + 'search?order=date&part=snippet&type=video&maxResults=50&channelId={}&key={}' #NOT_USED

Items indexed in a folder that matches the regex for a channel rather than a playlist should have metadata applied to them from this line, shouldn't they? The comment indicates that this isn't used, nor do I see that variable appear anywhere else in the script. This seems to be mirrored by the logs stating that they perform an API call for the playlist. For the playlist:

Forced ID (series folder) - source: "youtube", id: "PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG"
YouTube Playlist API call
https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails&maxResults=50&playlistId=PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG&key=AIzaSyAdbN11U_HxVbCc6WUrmcGjHzktb0B_MwA
---- totalResults: 6, reverse: False, os.listdir(os.path.join(root, path): [u'2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].info.json', u'2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].jpg', u"2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].info.json", u'2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].info.json', u'2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv', u'2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].jpg', u'2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv', u'2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv', u'2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].info.json', u"2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv", u'2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv', u'2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].info.json', u'2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv', u'2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].jpg', u'2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].info.json']
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         2                         "YouTube" "When they just ignore you" "2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         6                         "YouTube" "Genji - An X Strike Story" "2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         1                         "YouTube" "Zuljin knew what was up" "2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         5                         "YouTube" "Run Kael'Thas, Ruuuuuuuun" "2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         3                         "YouTube" "Orc Car Bomb" "2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv"
"goose_ws Playlist [youtube-PLTFDEgJkeEwe0db3b4kQkMg0cHFioEdOG]" s01e         4                         "YouTube" "Probably my diciest boss steal yet" "2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv"

But for the channel:

Forced ID (series folder) - source: "youtube", id: "UCw3wlMHLmsE7x1b2_9cAOBA"
season: 2019, episode: 2019-07-09, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv,
season: 2022, episode: 2022-08-07, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv,
season: 2022, episode: 2022-10-08, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv,
season: 2023, episode: 2023-08-10, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv,
season: 2023, episode: 2023-08-1002, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv,
season: 2023, episode: 2023-08-1003, filename: /media/YouTube/video/goose_ws Channel [UCw3wlMHLmsE7x1b2_9cAOBA]/2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv,
season: 2019, keys(1): ['2019-07-09']
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2019e2019-07-09                         "Youtube Date" "2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv" "2019-07-09 (goose_ws Playlist) Genji - An X Strike Story [YouTube-jiRyq-ZRazw].mkv"
season: 2022, keys(2): ['2022-08-07', '2022-10-08']
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2022e2022-08-07                         "Youtube Date" "2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv" "2022-08-07 (goose_ws Playlist) Orc Car Bomb [YouTube-UIoCZY-8Df8].mkv"
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2022e2022-10-08                         "Youtube Date" "2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv" "2022-10-08 (goose_ws Playlist) When they just ignore you [YouTube-R0xqsiz6GpQ].mkv"
season: 2023, keys(4): ['2023-08-1002', '2023-08-1003', '2023-08-1001', '2023-08-10']
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2023e2023-08-10                         "Youtube Date" "2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv" "2023-08-10 (goose_ws Playlist) RUN KAEL'THAS, RUUUUUUUUN [YouTube-gWewZcSVhWs].mkv"
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2023e2023-08-10                         "Youtube Date" "2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv" "2023-08-10 (goose_ws Playlist) Zuljin knew what was up [YouTube-69V3eQbMph8].mkv"
"goose_ws Channel [youtube-UCw3wlMHLmsE7x1b2_9cAOBA]" s2023e2023-08-10                         "Youtube Date" "2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv" "2023-08-10 (goose_ws Playlist) Probably my diciest boss steal yet [YouTube-f7I6xN0PNnM].mkv"

I would suggest that an easy solution here could be: If the folder is a channel, all videos on the video should be indexed via the YOUTUBE_CHANNEL_ITEMS, and sorted from oldest to newest. The oldest video could have metadata applied with the season/episode tag "S01E001", and so on. If a channel has enough videos that you reach S01E999, then additional videos could be rolled into a new season starting with "S02E001", and so on.

@beren12
Copy link

beren12 commented Dec 3, 2023

I'm having issues with this as well. I'm trying to download the monologues from Late Night with Stephen Colbert, playlist PLiZxWe0ejyv8CSMylrxb6Nx4Ii2RHbu_j
There's almost 2000 clips and plex has a ton of trouble with that many items in a single 'season'
There is another issue where episodes play backwards. They push new clips to the top of the playlist, so item 1 is whatever was last released. I tried changing the sort order but that only seems to affect the display. It will still play the next older episode after the current.

I'm using:
yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' --download-archive archive.txt -i -o "%(uploader)s [%(playlist_id)s]/%(release_date>%Y-%m-%d,upload_date>%Y-%m-%d|Unknown)s - %(title)s [%(id)s].%(ext)s" -c --write-auto-sub --write-info-json --sub-langs en --restrict-filenames "https://youtu.be/-oBBeAToJK8?list=PLiZxWe0ejyv8CSMylrxb6Nx4Ii2RHbu_j" --convert-subs srt

@DeviantEng
Copy link

Just want to add that I'm experiencing this exact same issue; including the mismatch (by 1 day) on xml files in Plex Media Server.log.

I have 2 docker instances of youtube-dl; one specific to downloading various playlists from various youtube channels, and all is working fine for that content. The other docker instance is specific to downloading full channels, and that is the one that is giving me problems. Channel metadata is matching just fine, but individual video metadata matching is not working as expected, even though agent logs show the metadata is being read successfully from the .info.json file.

Running latest youtube agent and ASS, with Plex 1.32.7.7571 on qnap.

ZeroQI added a commit that referenced this issue Nov 11, 2024
#141

It used to be Jun 19, 2018 in b0333dc:
```
    # Loading Channel
    if guid.startswith('UC'):
      try:                    json_channel_items = json_load(YOUTUBE_CHANNEL_ITEMS.format(guid))  #Choosen per id hence one single result
      except Exception as e:  Log('exception: {}, url: {}'.format(e, guid))
      else:
        Log.Info('json_channel_items: {}'.format(len(Dict(json_channel_items, 'items'))))
```
commented Aug 8, 2018 to Jun 19, 2018 in https://github.com/ZeroQI/YouTube-Agent.bundle/blob/fa539c658dc1d7e77667c876b5cb4c7570f4a0f6/Contents/Code/__init__.py

Later deleted
@ZeroQI
Copy link
Owner

ZeroQI commented Nov 11, 2024

Line 404 for channels
Line 519 for channel item loop, 521 after change

json_channel_items seem used but never populated

    if channel_id.startswith('UC') or channel_id.startswith('HC'):
      try:                    json_channel_details  = json_load(YOUTUBE_CHANNEL_DETAILS, channel_id)['items'][0]
      except Exception as e:  Log('exception: {}, url: {}'.format(e, guid))
      else:

It used to be Jun 19, 2018 in b0333dc:

    # Loading Channel
    if guid.startswith('UC'):
      try:                    json_channel_items = json_load(YOUTUBE_CHANNEL_ITEMS.format(guid))  #Choosen per id hence one single result
      except Exception as e:  Log('exception: {}, url: {}'.format(e, guid))
      else:
        Log.Info('json_channel_items: {}'.format(len(Dict(json_channel_items, 'items'))))

commented Aug 8, 2018 to Jun 19, 2018 in https://github.com/ZeroQI/YouTube-Agent.bundle/blob/fa539c658dc1d7e77667c876b5cb4c7570f4a0f6/Contents/Code/__init__.py

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

5 participants