ZeroQI / YouTube-Agent.bundle

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

Channel/Series Names NOT updating with metadata #36

Closed harroguk closed 4 years ago

harroguk commented 4 years ago

Hey Man,

Not sure what is going on here but recently my plex server stopped populating channel names with metadata and is instead populating it with the path to the directory.

com.plexapp.agents.youtube.log showing a scan of a single file. Metadata for the file is picked up correctly however it is the only video I have for this channel and it populates the channel name with... I:\TV\YouTube\DEFCONConference

2020-02-13 15:29:03,653 (29ec) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo0MzE3NTdzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDMKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfHxJOlxUVlxZb3VUdWJlXERFRkNPTkNvbmZlcmVuY2UgW1VDNk9tOWtBa2wzMmRXbERTTmxEUzlJd10%40bGFuZz14bnM0Cmd1aWRzNjYKeW91dHViZXx8STpcVFZcWW91VHViZVxERUZDT05Db25mZXJlbmNlIFtVQzZPbTlrQWtsMzJkV2xEU05sRFM5SXddczIKaWRyMAo_
2020-02-13 15:29:03,653 (29ec) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2020-02-13 15:29:03,654 (29ec) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo0MzE3NTdzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDMKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfHxJOlxUVlxZb3VUdWJlXERFRkNPTkNvbmZlcmVuY2UgW1VDNk9tOWtBa2wzMmRXbERTTmxEUzlJd10@bGFuZz14bnM0Cmd1aWRzNjYKeW91dHViZXx8STpcVFZcWW91VHViZVxERUZDT05Db25mZXJlbmNlIFtVQzZPbTlrQWtsMzJkV2xEU05sRFM5SXddczIKaWRyMAo_
2020-02-13 15:29:03,654 (29ec) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn
2020-02-13 15:29:03,655 (29ec) :  DEBUG (model:234) - Deserializing from C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\a\80f23cb3575e5d28746cdcd94a9e805abd53895.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2020-02-13 15:29:03,668 (29ec) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/431757/tree'
2020-02-13 15:29:03,676 (29ec) :  INFO (logkit:16) - =============================================================================================================================================================
2020-02-13 15:29:03,676 (29ec) :  INFO (logkit:16) - update() - guid: , dir: I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw], metadata.id: youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]
2020-02-13 15:29:03,677 (29ec) :  INFO (logkit:16) - I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]\DEFCONConference - s2020e102121612 - Brad Dixon - Cheating in eSports How to Cheat at Virtual Cycling - DEF CON 27 Conference  [pq9t0VEIMio].mp4
2020-02-13 15:29:03,677 (29ec) :  INFO (logkit:16) - [!] Library access denied
2020-02-13 15:29:03,677 (29ec) :  INFO (logkit:16) - [!] ASS root scanner file missing: "C:\Users\Administrator\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\_Logs\_root_.scanner.log"
2020-02-13 15:29:03,677 (29ec) :  INFO (logkit:16) - [ ] dir:        "I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]"
2020-02-13 15:29:03,677 (29ec) :  INFO (logkit:16) - [ ] library:    ""
2020-02-13 15:29:03,677 (29ec) :  INFO (logkit:16) - [ ] root:       "I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]"
2020-02-13 15:29:03,677 (29ec) :  INFO (logkit:16) - [ ] path:       ""
2020-02-13 15:29:03,678 (29ec) :  INFO (logkit:16) - [ ] series_root_folder: "I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]\"
2020-02-13 15:29:03,678 (29ec) :  INFO (logkit:16) - [ ] subfolder_count:    "0"
2020-02-13 15:29:03,680 (29ec) :  INFO (logkit:16) - Grouping folder not found or single folder, root: I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw], path: , Grouping folder: , subdirs: 0, reverse_path: ['']
2020-02-13 15:29:03,680 (29ec) :  INFO (logkit:16) - after
2020-02-13 15:29:03,680 (29ec) :  INFO (logkit:16) - =============================================================================================================================================================
2020-02-13 15:29:03,680 (29ec) :  INFO (logkit:16) - Season: 2020
2020-02-13 15:29:03,680 (29ec) :  INFO (logkit:16) - metadata.seasons[2020].episodes[102121612] "DEFCONConference - s2020e102121612 - Brad Dixon - Cheating in eSports How to Cheat at Virtual Cycling - DEF CON 27 Conference  [pq9t0VEIMio].mp4"
2020-02-13 15:29:03,680 (29ec) :  INFO (logkit:16) - # videoId [pq9t0VEIMio] not in Playlist/channel item list so loading video_details
2020-02-13 15:29:03,711 (29ec) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=pq9t0VEIMio&key=[snip]' from the HTTP cache
2020-02-13 15:29:03,753 (29ec) :  DEBUG (networking:143) - Requesting 'https://i.ytimg.com/vi/pq9t0VEIMio/sddefault.jpg'
2020-02-13 15:29:03,980 (29ec) :  DEBUG (networking:175) - Not caching 'https://i.ytimg.com/vi/pq9t0VEIMio/sddefault.jpg' (content type 'image/jpeg' not cacheable in Agent plug-ins)
2020-02-13 15:29:03,980 (29ec) :  INFO (logkit:16) - [ ] title:    "Brad Dixon - Cheating in eSports How to Cheat at Virtual Cycling - DEF CON 27 Conference"
2020-02-13 15:29:03,980 (29ec) :  INFO (logkit:16) - [ ] summary:  "Athletes are competing in virtual cycling by riding real bikes on stationary trainers which power the in-game athletic performance. Riders train and compete online against each other. New racing teams are even competing in Union Cycliste Internationale (UCI) sanctioned events. Better at hacking than riding? Me, too. I’ll expand on the dubious achievements of prior cycling cheaters by showing how to use the open source USBQ toolkit to inspect and modify USB communications between the Zwift application and the wireless sensors that monitor and control the stationary trainer. USBQ is a Python module and application that uses standard hardware, such as the Beaglebone Black, to inspect and modify communications between USB devices and the host. You’ll ride away with a lesson on building your own customized USB man-in-the-middle hacking tool, too.. . Brad Dixon. Brad once told his parents that if they gave him a Commodore 64 it would be the last computer he’d ever want. He never got that Commodore 64. Nevertheless Brad managed to become a computer nerd at a young age. Brad studied Computer Engineering at Georgia Tech and jumped into embedded software engineering. He worked for many years helping developers to design embedded Linux into telecom, network, and mobile products. Brad also took a turn as a product manager for embedded development tools and a mobile location analytics product. At Carve he hacks IoT, embedded, and Linux systems.. . Github: https://github.com/rbdixon"
2020-02-13 15:29:03,980 (29ec) :  INFO (logkit:16) - [ ] date:     "2019-11-16T00:00:14.000Z"
2020-02-13 15:29:03,980 (29ec) :  INFO (logkit:16) - [ ] rating:   "9.0"
2020-02-13 15:29:03,982 (29ec) :  INFO (logkit:16) - [ ] thumbs:   "https://i.ytimg.com/vi/pq9t0VEIMio/sddefault.jpg"
2020-02-13 15:29:03,982 (29ec) :  INFO (logkit:16) - [ ] duration: "PT39M3S"->"None"
2020-02-13 15:29:03,982 (29ec) :  INFO (logkit:16) - [ ] director: "DEFCONConference"
2020-02-13 15:29:03,982 (29ec) :  INFO (logkit:16) - [ ] posters: https://i.ytimg.com/vi/pq9t0VEIMio/sddefault.jpg
2020-02-13 15:29:03,983 (29ec) :  INFO (logkit:16) - [ ] genres:   "[u'hacker', u'DEF CON 27', u'hackers', u'DEFCON', u'Science & Technology', u'DEF CON 2019', u'security conference 2019', u'DC27', u'hacker conference', u'conference speakers', u'hacking conference', u'hacker community', u'computer security', u'cyber security', u'CON', u'DEF', u'security conference']"
2020-02-13 15:29:03,983 (29ec) :  INFO (logkit:16) - =============================================================================================================================================================
2020-02-13 15:29:03,990 (29ec) :  DEBUG (model:229) - Serializing to C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\a\80f23cb3575e5d28746cdcd94a9e805abd53895.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2020-02-13 15:29:03,993 (29ec) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2020-02-13 15:29:03,993 (29ec) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes

com.plexapp.system.log

2020-02-13 15:29:03,641 (28c4) :  DEBUG (runtime:717) - Handling request GET /system/agents/update?mediaType=2&force=1&respectTags=0&guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7C%7CI%3A%5CTV%5CYouTube%5CDEFCONConference%20%5BUC6Om9kAkl32dWlDSNlDS9Iw%5D%3Flang%3Dxn&id=431757
2020-02-13 15:29:03,641 (28c4) :  DEBUG (runtime:814) - Found route matching /system/agents/update
2020-02-13 15:29:03,642 (28c4) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins'
2020-02-13 15:29:03,644 (28c4) :  DEBUG (logkit:13) - Adding com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn to the update list
2020-02-13 15:29:03,645 (17dc) :  DEBUG (logkit:13) - Acquiring GUID mutex for com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn (431757) (count is now 1)
2020-02-13 15:29:03,645 (17dc) :  DEBUG (logkit:13) - Acquired GUID mutex for com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn (431757)
2020-02-13 15:29:03,647 (17dc) :  INFO (logkit:16) - Preparing metadata for TV_Show in com.plexapp.agents.youtube (youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw])
2020-02-13 15:29:03,647 (28c4) :  DEBUG (runtime:924) - Response: [200] InitiateUpdateResponse, 161 bytes
2020-02-13 15:29:03,647 (17dc) :  DEBUG (runtime:1117) - Created a thread named 'notify_processing'
2020-02-13 15:29:03,648 (2e30) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/metadata/processing?id=431757'
2020-02-13 15:29:03,650 (17dc) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo0MzE3NTdzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDMKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfHxJOlxUVlxZb3VUdWJlXERFRkNPTkNvbmZlcmVuY2UgW1VDNk9tOWtBa2wzMmRXbERTTmxEUzlJd10%40bGFuZz14bnM0Cmd1aWRzNjYKeW91dHViZXx8STpcVFZcWW91VHViZVxERUZDT05Db25mZXJlbmNlIFtVQzZPbTlrQWtsMzJkV2xEU05sRFM5SXddczIKaWRyMAo_'
2020-02-13 15:29:03,994 (17dc) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn
2020-02-13 15:29:03,994 (17dc) :  DEBUG (model:234) - Deserializing from C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\a\80f23cb3575e5d28746cdcd94a9e805abd53895.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2020-02-13 15:29:03,999 (17dc) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins'
2020-02-13 15:29:04,003 (17dc) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.agents.localmedia/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTUKbnM4CnBhcmVudElEczEwMwpjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8fEk6XFRWXFlvdVR1YmVcREVGQ09OQ29uZmVyZW5jZSBbVUM2T205a0FrbDMyZFdsRFNObERTOUl3XT9sYW5nPXhuczQKZ3VpZGIxczUKZm9yY2VzMjYKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmVzMTMKcHJpbWFyeV9hZ2VudHM2CjQzMTc1N3MyCmlkcjAK'
2020-02-13 15:29:04,028 (17dc) :  INFO (logkit:16) - Found match with ID null
2020-02-13 15:29:04,029 (1f6c) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.agents.localmedia/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNgo0MzE3NTdzNApkYmlkaTAKczcKdmVyc2lvbm5zMTAKcGFyZW50R1VJRG5zOApwYXJlbnRJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXMxMDMKY29tLnBsZXhhcHAuYWdlbnRzLnlvdXR1YmU6Ly95b3V0dWJlfHxJOlxUVlxZb3VUdWJlXERFRkNPTkNvbmZlcmVuY2UgW1VDNk9tOWtBa2wzMmRXbERTTmxEUzlJd10%40bGFuZz14bnM0Cmd1aWRzNApudWxsczIKaWRyMAo_'
2020-02-13 15:29:04,138 (17dc) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/431757/tree'
2020-02-13 15:29:04,144 (17dc) :  DEBUG (logkit:13) - >>> Agent order: ['com.plexapp.agents.youtube', 'com.plexapp.agents.localmedia']
2020-02-13 15:29:04,144 (17dc) :  DEBUG (logkit:13) - Combining subtitles for media bundle at 'C:\Users\Administrator\AppData\Local\Plex Media Server\Media\localhost\2\0e5974cb31c08efe0948d107e7c5bf401f1b454.bundle'
2020-02-13 15:29:04,144 (17dc) :  DEBUG (logkit:13) - >>> No file found at path C:\Users\Administrator\AppData\Local\Plex Media Server\Media\localhost\2\0e5974cb31c08efe0948d107e7c5bf401f1b454.bundle\Contents\Subtitle Contributions\com.plexapp.agents.youtube.xml
2020-02-13 15:29:04,144 (17dc) :  DEBUG (logkit:13) - >>> No file found at path C:\Users\Administrator\AppData\Local\Plex Media Server\Media\localhost\2\0e5974cb31c08efe0948d107e7c5bf401f1b454.bundle\Contents\Subtitle Contributions\com.plexapp.agents.localmedia.xml
2020-02-13 15:29:04,144 (17dc) :  DEBUG (logkit:13) - >>> Creating combined XML file from {}
2020-02-13 15:29:04,144 (17dc) :  DEBUG (logkit:13) - Combined XML data: <?xml version='1.0' encoding='utf8'?>
<Subtitles/>

2020-02-13 15:29:04,145 (17dc) :  INFO (logkit:16) - Metadata preparation for com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn complete
2020-02-13 15:29:04,147 (17dc) :  DEBUG (runtime:1117) - Created a thread named 'notify_thread'
2020-02-13 15:29:04,147 (16c0) :  INFO (logkit:16) - Bundle with guid com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn has been updated - notifying the media server
2020-02-13 15:29:04,147 (17dc) :  DEBUG (logkit:13) - Removing com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn from the update list
2020-02-13 15:29:04,148 (17dc) :  DEBUG (logkit:13) - Releasing GUID mutex for com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn
2020-02-13 15:29:04,148 (17dc) :  DEBUG (logkit:13) - We're done with the mutex for com.plexapp.agents.youtube://youtube||I:\TV\YouTube\DEFCONConference [UC6Om9kAkl32dWlDSNlDS9Iw]?lang=xn
2020-02-13 15:29:04,148 (16c0) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/metadata/notify?guid=com.plexapp.agents.youtube%3A%2F%2Fyoutube%7C%7CI%3A%5CTV%5CYouTube%5CDEFCONConference+%5BUC6Om9kAkl32dWlDSNlDS9Iw%5D%3Flang%3Dxn&path=TV+Shows%5Ca%5C80f23cb3575e5d28746cdcd94a9e805abd53895.bundle&force=1&queueSize=0&id=431757&success=1&async=1'
2020-02-13 15:29:04,153 (303c) :  DEBUG (runtime:717) - Handling request GET /system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7C%7CI%3A%5CTV%5CYouTube%5CDEFCONConference%20%5BUC6Om9kAkl32dWlDSNlDS9Iw%5D%3Flang%3Dxn&mediaType=2&url=metadata%3A%2F%2Fposters%2Fcom%2Eplexapp%2Eagents%2Eyoutube_37d1e2b6a00b1c221fe35cd01e7016c0cbfda586
2020-02-13 15:29:04,154 (303c) :  DEBUG (runtime:814) - Found route matching /system/agents/media/get
2020-02-13 15:29:04,154 (303c) :  DEBUG (logkit:13) - Returning stored data for metadata://posters/com.plexapp.agents.youtube_37d1e2b6a00b1c221fe35cd01e7016c0cbfda586 (in com.plexapp.agents.youtube)
2020-02-13 15:29:04,157 (303c) :  DEBUG (runtime:924) - Response: [200] str, 59076 bytes
2020-02-13 15:29:04,174 (2a14) :  DEBUG (runtime:717) - Handling request GET /system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Eyoutube%3A%2F%2Fyoutube%7C%7CI%3A%5CTV%5CYouTube%5CDEFCONConference%20%5BUC6Om9kAkl32dWlDSNlDS9Iw%5D%2F2020%2F102121612%3Flang%3Dxn&mediaType=4&url=metadata%3A%2F%2Fseasons%2F2020%2Fepisodes%2F102121612%2Fthumbs%2Fcom%2Eplexapp%2Eagents%2Eyoutube_37d1e2b6a00b1c221fe35cd01e7016c0cbfda586
2020-02-13 15:29:04,176 (2a14) :  DEBUG (runtime:814) - Found route matching /system/agents/media/get
2020-02-13 15:29:04,177 (2a14) :  DEBUG (logkit:13) - Returning stored data for metadata://seasons/2020/episodes/102121612/thumbs/com.plexapp.agents.youtube_37d1e2b6a00b1c221fe35cd01e7016c0cbfda586 (in com.plexapp.agents.youtube)
2020-02-13 15:29:04,180 (2a14) :  DEBUG (runtime:924) - Response: [200] str, 59076 bytes

image

harroguk commented 4 years ago

From line 8 of com.plexapp.agents.youtube.log above,

It looks like the guid is not being picked up correctly?

ZeroQI commented 4 years ago

Guide not there. Plex database may be corrupted. Can you do a match And check logs?

harroguk commented 4 years ago

Running a match finds nothing image

image

Plex Media Server.log

Feb 14, 2020 13:59:05.494 [2976] ERROR - Error parsing content.
Feb 14, 2020 13:59:05.494 [2976] ERROR - Exception caught while attempting to match metadata on item 431757: Error parsing file
Feb 14, 2020 13:59:05.494 [2976] ERROR - XML was (0 bytes):

com.plexapp.agents.youtube.log

2020-02-14 13:59:05,483 (1354) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IxczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTMKbnM0CnllYXJzNgo0MzE3NTdzMgppZHMxNgpERUZDT05Db25mZXJlbmNlczQKc2hvd3IwCg__
2020-02-14 13:59:05,483 (1354) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2020-02-14 13:59:05,484 (1354) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IxczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTMKbnM0CnllYXJzNgo0MzE3NTdzMgppZHMxNgpERUZDT05Db25mZXJlbmNlczQKc2hvd3IwCg__
2020-02-14 13:59:05,484 (1354) :  INFO (agentkit:957) - Searching for matches for {'show': 'DEFCONConference', 'id': '431757', 'year': None}
2020-02-14 13:59:05,486 (1354) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/431757/tree'
2020-02-14 13:59:05,490 (1354) :  CRITICAL (core:574) - Exception in the search function of agent named 'YouTubeSeries', called with keyword arguments {'show': 'DEFCONConference', 'id': '431757', 'year': None} (most recent call last):
  File "C:\InstalledPrograms\PlexMediaServer\Resources\Plug-ins-9930aef45\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1007, in _search
    agent.search(*f_args, **f_kwargs)
  File "C:\Users\Administrator\AppData\Local\Plex Media Server\Plug-ins\YouTube-Agent.bundle\Contents\Code\__init__.py", line 478, in search
    def search (self, results,  media, lang, manual):  Search (results,  media, lang, manual, False)
  File "C:\Users\Administrator\AppData\Local\Plex Media Server\Plug-ins\YouTube-Agent.bundle\Contents\Code\__init__.py", line 112, in Search
    filename = os.path.basename(media.items[0].parts[0].file) if movie else os.path.splitext(os.path.basename(media.filename))[0]
  File "C:\InstalledPrograms\PlexMediaServer\Resources\Plug-ins-9930aef45\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 250, in os_path_basename
    return os.path._basename(uni(path))
  File "C:\InstalledPrograms\PlexMediaServer\Resources\Plug-ins-9930aef45\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 51, in uni
    return unicode(s.decode('utf-8'))
AttributeError: 'NoneType' object has no attribute 'decode'

2020-02-14 13:59:05,490 (1354) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2020-02-14 13:59:05,490 (1354) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
harroguk commented 4 years ago

As a test I took a backup of my db com.plexapp.plugins.library.db

Then deleted it and started plex, created a new youtube-agent fed library and the same problem occurred for every video.

AtomicClown commented 4 years ago

I've been having the exact same issue with my library, I believe it started just after the latest public PMS update. Unsure if that has any correlation, but it came to mind.

harroguk commented 4 years ago

I guess the next thing to try is rolling back Plex to an earlier version then. I can't do it over the weekend as usage is too high on my server, the kids would go crazy :p

ZeroQI commented 4 years ago

I agree, could be version related. If it works after rolling back then that would confirm it...

AtomicClown commented 4 years ago

Just rolled back and can confirm everything works perfectly on the previous version. Looks like the update is the issue.

AtomicClown commented 4 years ago

Just rolled back and can confirm everything works perfectly on the previous version. Looks like the update is the issue.

Which version did you roll back to? I installed 1.18.4.2171 and still have the same issue.

So at first I rolled back to the previous version and found it was mostly successful, but I was having issues with several videos not matching. It connected to the agent though, which was my initial issue. I've currently rolled back even further to 1.6.2.994 and have had no problems since. Everything matches up on my end.

harroguk commented 4 years ago

cool, I worked it out in the end. It isnt "Update Metadata" that corrects the metadata but "fix match" instead.

Tested and working on 1.18.4.2171. I am slowly going to work up the tree to find which version the metadata collection breaks on.

harroguk commented 4 years ago

So upgrading and testing each version shows that it breaks in 1.18.6.2348

1.18.5.2309 - Working 1.18.6.2348 - Broken - https://forums.plex.tv/t/plex-media-server/30447/314

SKnight79 commented 4 years ago

Anyway we can run a "fix match" on all tv shows? I have to do it manually per show to correct this issue.

SKnight79 commented 4 years ago

Ok I'm being offered PMS 1.18.8.2527. I updated the plug in. OK to update to this version?

ZeroQI commented 4 years ago

1.18.5.2309 - Working 1.18.6.2348 - Broken 1.18.8.2527 - waiting for SKnight79 to update and report

algonrey commented 4 years ago

Tested with versión 1.18.8.2527 and it's working perfect!! thankss!!!

SKnight79 commented 4 years ago

I can confirm. Running 1.18.8.2527 is working normally.

harroguk commented 4 years ago

@SKnight79 @algonrey @Dalekslayer3699

Go donate the guy a beer now that something he doesnt really support got fixed. Give thanks.

ZeroQI commented 4 years ago

Thanks Harroguk for the donation. That is my third YouTube donation to date. Got through the YouTube API compliancy random review they launched so should continue to work in the foreseeable future

harroguk commented 4 years ago

Thanks Harroguk for the donation. That is my third YouTube donation to date. Got through the YouTube API compliancy random review they launched so should continue to work in the foreseeable future

I moved to my own API key a while ago, If it is causing you problems then I would just tell people they need to use their own key, they are easy to get if you jump through the hoops.

algonrey commented 4 years ago

Thanks Harroguk for the donation. That is my third YouTube donation to date. Got through the YouTube API compliancy random review they launched so should continue to work in the foreseeable future

There is no third without fourth, very good job @ZeroQI, thank you!!

wiserain commented 4 years ago

Seems happening again with 1.20.1.3252-a78fef9a9

mileyvirus commented 3 years ago

Still happening in 1.20.2.3402-0fec14d92… 😭

twalts commented 3 years ago

Also happening here on 1.21.0.3616... Has anyone figured out a workaround?

harroguk commented 3 years ago

From memory it was something broken/fixed on Plex side. The workaround was to revert your server to a lower version that it works with.

However, saying that I am currently on Plex Server Version 1.21.0.3616

And everything is working fine.

twalts commented 3 years ago

From memory it was something broken/fixed on Plex side. The workaround was to revert your server to a lower version that it works with.

However, saying that I am currently on Plex Server Version 1.21.0.3616

And everything is working fine.

Thanks for the reply. I'm not sure why my Plex is acting up - I can't see anything wrong with the YouTube-Agent logs. Maybe it's an issue with my PMS setup rather than the plugin? Worst-case scenario, I will just try rolling back the server version to one mentioned above.

com.plexapp.agents.youtube.log

2020-11-27 10:28:06,485 (2acb0ef4f0) :  INFO (agentkit:961) - Searching for matches for {'openSubtitlesHash': '0fb7dabc9589f530', 'episode': '1', 'name': 'POLYRHYTHMS vs POLYMETERS [htbRx2jgF-E].mp4', 'episodic': '1', 'show': 'ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g]', 'season': '2020', 'plexHash': 'f60dbd3d72c7b8e0412edb73f374396df73a2ffe', 'filename': '%2Fstorage%2FNAS%2FEntertainment%2FYouTube%2FANDREW%20HUANG%20%5BUCdcemy56JtVTrsFIOoqvV8g%5D%2FPOLYRHYTHMS%20vs%20POLYMETERS%20%5BhtbRx2jgF-E%5D%2Emp4', 'year': '2020', 'duration': '589671', 'id': '2486'}
2020-11-27 10:28:06,489 (2acb0ef4f0) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/2486/tree'
2020-11-27 10:28:06,502 (2acb0ef4f0) :  DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json
2020-11-27 10:28:06,503 (2acb0ef4f0) :  DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.agents.youtube
2020-11-27 10:28:06,504 (2acb0ef4f0) :  INFO (__init__:61) - /storage/NAS/Entertainment/YouTube/ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g]/POLYRHYTHMS vs POLYMETERS [htbRx2jgF-E].mp4
2020-11-27 10:28:06,504 (2acb0ef4f0) :  INFO (__init__:118) - =============================================================================================================================================================
2020-11-27 10:28:06,505 (2acb0ef4f0) :  INFO (__init__:119) - search_with_api() - dir: /storage/NAS/Entertainment/YouTube/ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g], filename: /storage/NAS/Entertainment/YouTube/ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g]/POLYRHYTHMS vs POLYMETERS [htbRx2jgF-E].mp4
2020-11-27 10:28:06,505 (2acb0ef4f0) :  INFO (__init__:126) - search() - YouTube ID found - regex: YOUTUBE_REGEX_PLAYLIST, youtube ID: "UCdcemy56JtVTrsFIOoqvV8g"
2020-11-27 10:28:06,507 (2acb0ef4f0) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2020-11-27 10:28:06,508 (2acb0ef4f0) :  DEBUG (runtime:924) - Response: [200] str, 756 bytes
2020-11-27 10:28:07,611 (2acb0ef4f0) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAoyNDg2czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzMTA5CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ2RjZW15NTZKdFZUcnNGSU9vcXZWOGd8QU5EUkVXIEhVQU5HIFtVQ2RjZW15NTZKdFZUcnNGSU9vcXZWOGddP2xhbmc9eG5zNApndWlkczcyCnlvdXR1YmV8VUNkY2VteTU2SnRWVHJzRklPb3F2VjhnfEFORFJFVyBIVUFORyBbVUNkY2VteTU2SnRWVHJzRklPb3F2VjhnXXMyCmlkcjAK
2020-11-27 10:28:07,614 (2acb0ef4f0) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAoyNDg2czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzMTA5CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ2RjZW15NTZKdFZUcnNGSU9vcXZWOGd8QU5EUkVXIEhVQU5HIFtVQ2RjZW15NTZKdFZUcnNGSU9vcXZWOGddP2xhbmc9eG5zNApndWlkczcyCnlvdXR1YmV8VUNkY2VteTU2SnRWVHJzRklPb3F2VjhnfEFORFJFVyBIVUFORyBbVUNkY2VteTU2SnRWVHJzRklPb3F2VjhnXXMyCmlkcjAK
2020-11-27 10:28:07,615 (2acb0ef4f0) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCdcemy56JtVTrsFIOoqvV8g|ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g]?lang=xn
2020-11-27 10:28:07,618 (2acb0ef4f0) :  DEBUG (model:234) - Deserializing from /storage/emulated/0/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Metadata/TV Shows/6/0d0ae89818e7b6be7b7bb36f98c98a0f87cef90.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2020-11-27 10:28:07,642 (2acb0ef4f0) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/2486/tree'
2020-11-27 10:28:07,651 (2acb0ef4f0) :  INFO (__init__:386) - update()
2020-11-27 10:28:07,652 (2acb0ef4f0) :  INFO (__init__:61) - /storage/NAS/Entertainment/YouTube/ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g]/POLYRHYTHMS vs POLYMETERS [htbRx2jgF-E].mp4
2020-11-27 10:28:07,653 (2acb0ef4f0) :  INFO (__init__:483) - =============================================================================================================================================================
2020-11-27 10:28:07,653 (2acb0ef4f0) :  INFO (__init__:483) - update() using api - guid: UCdcemy56JtVTrsFIOoqvV8g, dir: /storage/NAS/Entertainment/YouTube/ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g], metadata.id: youtube|UCdcemy56JtVTrsFIOoqvV8g|ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g]
2020-11-27 10:28:07,654 (2acb0ef4f0) :  INFO (__init__:73) - [!] Library access denied
2020-11-27 10:28:07,655 (2acb0ef4f0) :  INFO (__init__:81) - [!] ASS root scanner file missing: "/storage/emulated/0/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/_root_.scanner.log"
2020-11-27 10:28:07,655 (2acb0ef4f0) :  INFO (__init__:458) - [ ] dir:        "/storage/NAS/Entertainment/YouTube/ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g]"
2020-11-27 10:28:07,655 (2acb0ef4f0) :  INFO (__init__:459) - [ ] library:    ""
2020-11-27 10:28:07,656 (2acb0ef4f0) :  INFO (__init__:460) - [ ] root:       "/storage/NAS/Entertainment/YouTube/ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g]"
2020-11-27 10:28:07,656 (2acb0ef4f0) :  INFO (__init__:461) - [ ] path:       ""
2020-11-27 10:28:07,663 (2acb0ef4f0) :  INFO (__init__:466) - [ ] series_root_folder: "/storage/NAS/Entertainment/YouTube/ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g]/"
2020-11-27 10:28:07,663 (2acb0ef4f0) :  INFO (__init__:467) - [ ] subfolder_count:    "0"
2020-11-27 10:28:07,664 (2acb0ef4f0) :  INFO (__init__:490) - Grouping folder not found or single folder, root: /storage/NAS/Entertainment/YouTube/ANDREW HUANG [UCdcemy56JtVTrsFIOoqvV8g], path: , Grouping folder: , subdirs: 0, reverse_path: ['']
2020-11-27 10:28:07,665 (2acb0ef4f0) :  INFO (__init__:581) - after
2020-11-27 10:28:07,677 (2acb0ef4f0) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCdcemy56JtVTrsFIOoqvV8g&key=(keyredacted)' from the HTTP cache
2020-11-27 10:28:07,684 (2acb0ef4f0) :  INFO (__init__:592) - [?] json_channel_details: ['kind', 'statistics', 'contentDetails', 'brandingSettings', 'snippet', 'etag', 'id']
2020-11-27 10:28:07,685 (2acb0ef4f0) :  INFO (__init__:593) - [ ] title:       "ANDREW HUANG"
2020-11-27 10:28:07,686 (2acb0ef4f0) :  INFO (__init__:613) - [ ] role:        ANDREW HUANG
2020-11-27 10:28:07,686 (2acb0ef4f0) :  INFO (__init__:617) - [ ] art:       
2020-11-27 10:28:07,687 (2acb0ef4f0) :  INFO (__init__:620) - [ ] banners:   
2020-11-27 10:28:07,687 (2acb0ef4f0) :  INFO (__init__:626) - [ ] posters:   https://yt3.ggpht.com/ytc/AAUvwnjIH8OXWT4jmsAQJ5x846iaXQVL1QKjMGEceIlJ=s240-c-k-c0x00ffffff-no-rj
2020-11-27 10:28:07,688 (2acb0ef4f0) :  INFO (__init__:636) - =============================================================================================================================================================
2020-11-27 10:28:07,688 (2acb0ef4f0) :  INFO (__init__:637) - Season: 2020
2020-11-27 10:28:07,689 (2acb0ef4f0) :  INFO (__init__:645) - metadata.seasons[2020].episodes[  1] "POLYRHYTHMS vs POLYMETERS [htbRx2jgF-E].mp4"
2020-11-27 10:28:07,689 (2acb0ef4f0) :  INFO (__init__:274) - populate_episode_metadata_from_api() - filename: POLYRHYTHMS vs POLYMETERS [htbRx2jgF-E].mp4
2020-11-27 10:28:07,690 (2acb0ef4f0) :  INFO (__init__:281) - # videoId [htbRx2jgF-E] not in Playlist/channel item list so loading video_details
2020-11-27 10:28:07,700 (2acb0ef4f0) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=htbRx2jgF-E&key=(keyredacted)' from the HTTP cache
2020-11-27 10:28:07,713 (2acb0ef4f0) :  DEBUG (networking:143) - Requesting 'https://i.ytimg.com/vi/htbRx2jgF-E/sddefault.jpg'
2020-11-27 10:28:07,912 (2acb0ef4f0) :  DEBUG (networking:175) - Not caching 'https://i.ytimg.com/vi/htbRx2jgF-E/sddefault.jpg' (content type 'image/jpeg' not cacheable in Agent plug-ins)
2020-11-27 10:28:07,913 (2acb0ef4f0) :  INFO (__init__:292) - [ ] title:    "POLYRHYTHMS vs POLYMETERS"
2020-11-27 10:28:07,918 (2acb0ef4f0) :  INFO (__init__:293) - [ ] summary:  "PS. You can do polymeters (and a hundred other cool things) in my new music making app :D http://flipsampler.com. . Music I used in this video: "Long Gone" from my album Stars, and "Shadow 1" from my album Cosmos. Both available on all platforms!. https://fanlink.to/andrewhuang-stars. https://fanlink.to/andrewhuang-cosmos. . Subscribe → http://bit.ly/subAndrewHuang. ."
2020-11-27 10:28:07,921 (2acb0ef4f0) :  INFO (__init__:294) - [ ] date:     "2020-11-26T20:03:07Z"
2020-11-27 10:28:07,922 (2acb0ef4f0) :  INFO (__init__:296) - [ ] rating:   "9.0"
2020-11-27 10:28:07,923 (2acb0ef4f0) :  INFO (__init__:297) - [ ] thumbs:   "https://i.ytimg.com/vi/htbRx2jgF-E/sddefault.jpg"
2020-11-27 10:28:07,924 (2acb0ef4f0) :  INFO (__init__:299) - [ ] duration: "PT9M50S"->"590000"
2020-11-27 10:28:07,925 (2acb0ef4f0) :  INFO (__init__:304) - [ ] director: "ANDREW HUANG"
2020-11-27 10:28:07,926 (2acb0ef4f0) :  INFO (__init__:311) - [ ] posters: https://i.ytimg.com/vi/htbRx2jgF-E/sddefault.jpg
2020-11-27 10:28:07,926 (2acb0ef4f0) :  INFO (__init__:313) - [ ] genres:   "[u'theory thursday', u'polyrhythm', u'producer', u'explained', u'songwriting', u'meter', u'signature', u'making a song', u'music theory', u'vs', u'Music', u'music producer', u'beats', u'theory', u'andrew huang', u'ontario', u'how to write a song', u'music', u'rhythm', u'time signature', u'canada', u'making music', u'how to make music', u'song', u'ableton', u'musician', u'andrew', u'daw', u'huang', u'producing music', u'toronto', u'AndrewHuang', u'canadian', u'how to', u'count', u'learn music', u'time', u'polymeter']"
2020-11-27 10:28:07,929 (2acb0ef4f0) :  INFO (__init__:671) - =============================================================================================================================================================
2020-11-27 10:28:07,956 (2acb0ef4f0) :  DEBUG (model:229) - Serializing to /storage/emulated/0/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Metadata/TV Shows/6/0d0ae89818e7b6be7b7bb36f98c98a0f87cef90.bundle/Contents/com.plexapp.agents.youtube/Info.xml
2020-11-27 10:28:07,959 (2acb0ef4f0) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2020-11-27 10:28:07,960 (2acb0ef4f0) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
twalts commented 3 years ago

For anyone else running into this issue, I seem to have found a fix for my circumstances. I had to add a line of missing code to the __init__.py file. I'll paste the line in question as well as the surrounding code for context below:

The missing line, line 594

metadata.title = filterInvalidXMLChars(Dict(json_channel_details, 'snippet', 'title' ))

The surrounding code, lines 583-605

# Loading Channel Details for summary, country, background and role image
    if channel_id.startswith('UC') or channel_id.startswith('HC'):
      try:

        URL_CHANNEL_DETAILS   = '{}&id={}&key={}'.format(YOUTUBE_CHANNEL_DETAILS,channel_id, YOUTUBE_API_KEY)
        json_channel_details  = json_load(URL_CHANNEL_DETAILS)['items'][0]

      except Exception as e:  Log('exception: {}, url: {}'.format(e, guid))
      else:
        Log.Info('[?] json_channel_details: {}'.format(json_channel_details.keys()))
        Log.Info('[ ] title:       "{}"'.format(Dict(json_channel_details, 'snippet', 'title'      )))
        metadata.title = filterInvalidXMLChars(Dict(json_channel_details, 'snippet', 'title'      ))
        if not Dict(json_playlist_details, 'snippet', 'description'):
          if Dict(json_channel_details, 'snippet', 'description'):  metadata.summary =  Dict(json_channel_details, 'snippet', 'description');
          #elif guid.startswith('PL'):  metadata.summary = 'No Playlist nor Channel summary'
          else:
            summary  = 'Channel with {} videos, '.format(Dict(json_channel_details, 'statistics', 'videoCount'     ))
            summary += '{} subscribers, '.format(Dict(json_channel_details, 'statistics', 'subscriberCount'))
            summary += '{} views'.format(Dict(json_channel_details, 'statistics', 'viewCount'      ))
            metadata.summary = filterInvalidXMLChars(summary) #or 'No Channel summary'
            Log.Info('[ ] summary:     "{}"'.format(Dict(json_channel_details, 'snippet', 'description').replace('\n', '. ')))  #
        if Dict(json_channel_details,'snippet','country') and Dict(json_channel_details,'snippet','country') not in metadata.countries:
          metadata.countries.add(Dict(json_channel_details,'snippet','country'));  Log.Info('[ ] country: {}'.format(Dict(json_channel_details,'snippet','country') ))
harroguk commented 3 years ago

@twalts why not submit it as a pull request so it can be brought into master?

twalts commented 3 years ago

@harroguk I think I just submitted one, but I'm new to this so I'm not sure if I did it correctly! 😬 I also thought it might be helpful to post an explanation regardless.

ecto1a2003 commented 3 years ago

this fix has changed all of my YouTube shows and seasons to be named after the YouTube channels. 2020-12-16 00_46_09-Start