ZeroQI / YouTube-Agent.bundle

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

Metadata gets unmatched if I add a second (or more) video #90

Closed vinnpinn closed 2 years ago

vinnpinn commented 2 years ago

I'm trying to add YoutTube Channels to my Plex library, the metadata fetched fine if only one video for the channel is added. As soon as I add another video both videos will be unmatched. With only one Video it fetched the description, the thumbnail and the correct title. With more than one it fetched nothing.

image

2021-08-29 15:53:01,707 (910) :  DEBUG (model:229) - Serializing to C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\3\1cb12b29d2f8f206577e0a0dcfc8ecbe1f44106.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-29 15:53:01,709 (910) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2021-08-29 15:53:01,710 (910) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
2021-08-29 15:53:19,367 (890) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo2NjQzczQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzMTI0CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmd8T3Vyb19Lcm9uaWlfQ2guX2hvbG9saXZlLUVOIFtVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmddP2xhbmc9eG5zNApndWlkczg3CnlvdXR1YmV8VUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnfE91cm9fS3JvbmlpX0NoLl9ob2xvbGl2ZS1FTiBbVUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnXXMyCmlkcjAK
2021-08-29 15:53:19,367 (890) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2021-08-29 15:53:19,368 (890) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo2NjQzczQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzMTI0CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmd8T3Vyb19Lcm9uaWlfQ2guX2hvbG9saXZlLUVOIFtVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmddP2xhbmc9eG5zNApndWlkczg3CnlvdXR1YmV8VUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnfE91cm9fS3JvbmlpX0NoLl9ob2xvbGl2ZS1FTiBbVUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnXXMyCmlkcjAK
2021-08-29 15:53:19,368 (890) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCmbs8T6MWqUHP1tIQvSgKrg|Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]?lang=xn
2021-08-29 15:53:19,368 (890) :  DEBUG (model:234) - Deserializing from C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\3\1cb12b29d2f8f206577e0a0dcfc8ecbe1f44106.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-29 15:53:19,378 (890) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/6643/tree'
2021-08-29 15:53:19,390 (890) :  INFO (logkit:16) - === update(lang=xn, force=True, movie=False) ===
2021-08-29 15:53:19,391 (890) :  INFO (logkit:16) - Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\SUPERHOT_That_s_Hot [6WFU2wzPKfA].mkv
2021-08-29 15:53:19,391 (890) :  INFO (logkit:16) - =============================================================================================================================================================
2021-08-29 15:53:19,391 (890) :  INFO (logkit:16) - [!] Library access denied
2021-08-29 15:53:19,391 (890) :  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"
2021-08-29 15:53:19,391 (890) :  INFO (logkit:16) - [ ] library:    ""
2021-08-29 15:53:19,391 (890) :  INFO (logkit:16) - [ ] root:       "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]"
2021-08-29 15:53:19,391 (890) :  INFO (logkit:16) - [ ] path:       ""
2021-08-29 15:53:19,391 (890) :  INFO (logkit:16) - [ ] dir:        "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]"
2021-08-29 15:53:19,391 (890) :  INFO (logkit:16) - [ ] series_root_folder: "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\"
2021-08-29 15:53:19,394 (890) :  INFO (logkit:16) - [ ] subfolder_count:    "0"
2021-08-29 15:53:19,394 (890) :  INFO (logkit:16) - Grouping folder not found or single folder, root: Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg], path: , Grouping folder: , subdirs: 0, reverse_path: ['']
2021-08-29 15:53:19,405 (890) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCmbs8T6MWqUHP1tIQvSgKrg&key=AIzaSyDMT5Ez7YBfOWJSgoPCioP4T66AinEzOh8' from the HTTP cache
2021-08-29 15:53:19,414 (890) :  INFO (logkit:16) - [ ] title:        "Ouro_Kronii_Ch._hololive-EN ", metadata.title: "Ouro_Kronii_Ch._hololive-EN "
2021-08-29 15:53:19,414 (890) :  INFO (logkit:16) - [ ] art:       https://yt3.ggpht.com/sxiYhCWVHOua_5flWkxcDZqMDh38ueGv4O1WyH_GgjsIi6Vlp8BWY-4RfYjswWdOsbBFqSlX21U=s1920
2021-08-29 15:53:19,414 (890) :  INFO (logkit:16) - [ ] banners:   https://yt3.ggpht.com/sxiYhCWVHOua_5flWkxcDZqMDh38ueGv4O1WyH_GgjsIi6Vlp8BWY-4RfYjswWdOsbBFqSlX21U=s1920
2021-08-29 15:53:19,415 (890) :  INFO (logkit:16) - [ ] posters:   https://yt3.ggpht.com/6670YE31bbAtAi7m_UL-KWZBdL5wvmfHlLtcS4HxsBZBQNqmAk7Y-iiIOjawO_0HYXpS4HfC=s240-c-k-c0x00ffffff-no-rj
2021-08-29 15:53:19,415 (890) :  INFO (logkit:16) - [ ] role:        Ouro Kronii Ch. hololive-EN
2021-08-29 15:53:19,415 (890) :  INFO (logkit:16) - =============================================================================================================================================================
2021-08-29 15:53:19,417 (890) :  INFO (logkit:16) - Season: 2021
2021-08-29 15:53:19,417 (890) :  INFO (logkit:16) - metadata.seasons[2021].episodes[None] "SUPERHOT_That_s_Hot [6WFU2wzPKfA].mkv"
2021-08-29 15:53:19,417 (890) :  INFO (logkit:16) - populate_episode_metadata_from_info_json() - series_root_folder: Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\, filename: SUPERHOT_That_s_Hot [6WFU2wzPKfA].mkv
2021-08-29 15:53:19,417 (890) :  INFO (logkit:16) - Searching for "SUPERHOT_That_s_Hot [6WFU2wzPKfA].info.json". Searching in "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\".
2021-08-29 15:53:19,420 (890) :  INFO (logkit:16) - Directory \\?\Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\ contains 6 files
2021-08-29 15:53:19,420 (890) :  INFO (logkit:16) - populate_episode_metadata_from_api() - filename: SUPERHOT_That_s_Hot [6WFU2wzPKfA].mkv
2021-08-29 15:53:19,420 (890) :  INFO (logkit:16) - # videoId [6WFU2wzPKfA] not in Playlist/channel item list so loading json_video_details
2021-08-29 15:53:19,431 (890) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=6WFU2wzPKfA&key=AIzaSyDMT5Ez7YBfOWJSgoPCioP4T66AinEzOh8' from the HTTP cache
2021-08-29 15:53:19,441 (890) :  INFO (logkit:16) - [?] link:     "https://www.youtube.com/watch?v=6WFU2wzPKfA"
2021-08-29 15:53:19,441 (890) :  INFO (logkit:16) - [ ] title:    "【SUPERHOT】That's Hot"
2021-08-29 15:53:19,441 (890) :  INFO (logkit:16) - [ ] summary:  "This game is being streamed and monetized after confirmation with SUPERHOT Team.. ----------------------------------------------------------------------------. The most innovative shooter played in years.. . [Twitter]. https://twitter.com/ourokronii. . [Thumbnail Art]. https://twitter.com/Alchiaki_n. ----------------------------------------------------------------------------. . [Viewer Rules]. Thank you for watching my stream!. To help everyone enjoy the stream more, please follow these rules:. 1. Be nice to other viewers. Don’t spam or troll.. 2. If you see spam or trolling, don’t respond. Just block, report, and ignore those comments.. 3. Talk about the stream, but please don’t bring up unrelated topics or have personal conversations.. 4. Don’t bring up other streamers or streams unless I mention them.. 5. Similarly, don’t talk about me or my stream in other streamers’ chat.. 6. No backseating unless I ask for help. I'd rather learn from my mistakes by dying countless times; if I fail, it will be on my own terms.. 7. Please refrain from chatting before the stream starts to prevent any issues.. As long as you follow the rules above, you can chat in any language!. . ----------------------------------------------------------------------------. . [Credits]. (BGM). DOVA-SYNDROME - https://dova-s.jp/. Daystar - Zero Gravity / https://youtu.be/YqAbL2hm27g. . ----------------------------------------------------------------------------. . [Fan Work Guidelines]. https://en.hololive.tv/terms. . ----------------------------------------------------------------------------. . [Official Online Shop]. https://hololive.booth.pm/. . [Holoschedule] (Check all members streaming schedules). https://schedule.hololive.tv/#hololive. . ----------------------------------------------------------------------------. . [Hololive Production]. ・Hololive English YouTube Channel: https://t.co/LcYDgFF9V0?amp=1. ・Hololive Production Official Twitter: https://twitter.com/hololivetv. ・Hololive English Official Twitter: https://twitter.com/hololive_En. ・Hololive English Official Reddit: https://www.reddit.com/r/Hololive/. . ----------------------------------------------------------------------------. . #holoCouncil. #hololiveEnglish"
2021-08-29 15:53:19,443 (890) :  CRITICAL (core:574) - Exception in the update function of agent named 'YouTubeSeries', called with guid 'com.plexapp.agents.youtube://youtube|UCmbs8T6MWqUHP1tIQvSgKrg|Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]?lang=xn' (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1a38e63c6\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "C:\Users\Administrator\AppData\Local\Plex Media Server\Plug-ins\YouTube-Agent.bundle\Contents\Code\__init__.py", line 518, in update
    def update (self, metadata, media, lang, force ):  Update (metadata, media, lang, force,  False)
  File "C:\Users\Administrator\AppData\Local\Plex Media Server\Plug-ins\YouTube-Agent.bundle\Contents\Code\__init__.py", line 490, in Update
    if len(e)>3:  episode.originally_available_at = Datetime.ParseDate(json_video_details['snippet']['publishedAt']).date();                       Log.Info('[ ] date:     "{}"'.format(json_video_details['snippet']['publishedAt']))
TypeError: object of type 'NoneType' has no len()

2021-08-29 15:53:19,460 (890) :  DEBUG (model:229) - Serializing to C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\3\1cb12b29d2f8f206577e0a0dcfc8ecbe1f44106.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-29 15:53:19,463 (890) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2021-08-29 15:53:19,463 (890) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
ZeroQI commented 2 years ago

init.py", line 490, replace with: if len(e)>3 and Dict(json_video_details, 'snippet', 'publishedAt'): episode.originally_available_at = Datetime.ParseDate(Dict(json_video_details, 'snippet', 'publishedAt')).date(); Log.Info('[ ] date: "{}"'.format(Dict(json_video_details, 'snippet', 'publishedAt')))

vinnpinn commented 2 years ago

Hey, thanks for the reply. I still seem to have issues, it now removed the names of the episodes, not even showing the file name as it did before

image

2021-08-30 19:24:45,309 (2b70) :  DEBUG (model:229) - Serializing to C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\7\982ec25b07f2073a2e15c85159952577d3839c7.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-30 19:24:45,312 (2b70) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2021-08-30 19:24:45,312 (2b70) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
2021-08-30 19:24:49,584 (c2c) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo2ODA1czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzMTI1CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ3NVajBkc3pBRENHYkYzZ05yUUV1U1F8VHN1a3Vtb19TYW5hX0NoLl9ob2xvbGl2ZS1FTiBbVUNzVWowZHN6QURDR2JGM2dOclFFdVNRXT9sYW5nPXhuczQKZ3VpZHM4OAp5b3V0dWJlfFVDc1VqMGRzekFEQ0diRjNnTnJRRXVTUXxUc3VrdW1vX1NhbmFfQ2guX2hvbG9saXZlLUVOIFtVQ3NVajBkc3pBRENHYkYzZ05yUUV1U1FdczIKaWRyMAo_
2021-08-30 19:24:49,585 (c2c) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2021-08-30 19:24:49,585 (c2c) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo2ODA1czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzMTI1CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ3NVajBkc3pBRENHYkYzZ05yUUV1U1F8VHN1a3Vtb19TYW5hX0NoLl9ob2xvbGl2ZS1FTiBbVUNzVWowZHN6QURDR2JGM2dOclFFdVNRXT9sYW5nPXhuczQKZ3VpZHM4OAp5b3V0dWJlfFVDc1VqMGRzekFEQ0diRjNnTnJRRXVTUXxUc3VrdW1vX1NhbmFfQ2guX2hvbG9saXZlLUVOIFtVQ3NVajBkc3pBRENHYkYzZ05yUUV1U1FdczIKaWRyMAo_
2021-08-30 19:24:49,586 (c2c) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCsUj0dszADCGbF3gNrQEuSQ|Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ]?lang=xn
2021-08-30 19:24:49,586 (c2c) :  DEBUG (model:234) - Deserializing from C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\7\982ec25b07f2073a2e15c85159952577d3839c7.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-30 19:24:49,594 (c2c) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/6805/tree'
2021-08-30 19:24:49,605 (c2c) :  INFO (logkit:16) - === update(lang=xn, force=True, movie=False) ===
2021-08-30 19:24:49,605 (c2c) :  INFO (logkit:16) - Z:\Plex\YouTube Hololive\Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ]\Beat_the_Beat_-_Rhythm_Paradise_Idol_training_arc_holoCouncil [SfZ1DxRaqnc].mkv
2021-08-30 19:24:49,605 (c2c) :  INFO (logkit:16) - =============================================================================================================================================================
2021-08-30 19:24:49,605 (c2c) :  INFO (logkit:16) - [!] Library access denied
2021-08-30 19:24:49,605 (c2c) :  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"
2021-08-30 19:24:49,605 (c2c) :  INFO (logkit:16) - [ ] library:    ""
2021-08-30 19:24:49,605 (c2c) :  INFO (logkit:16) - [ ] root:       "Z:\Plex\YouTube Hololive\Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ]"
2021-08-30 19:24:49,605 (c2c) :  INFO (logkit:16) - [ ] path:       ""
2021-08-30 19:24:49,605 (c2c) :  INFO (logkit:16) - [ ] dir:        "Z:\Plex\YouTube Hololive\Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ]"
2021-08-30 19:24:49,605 (c2c) :  INFO (logkit:16) - [ ] series_root_folder: "Z:\Plex\YouTube Hololive\Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ]\"
2021-08-30 19:24:49,608 (c2c) :  INFO (logkit:16) - [ ] subfolder_count:    "0"
2021-08-30 19:24:49,608 (c2c) :  INFO (logkit:16) - Grouping folder not found or single folder, root: Z:\Plex\YouTube Hololive\Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ], path: , Grouping folder: , subdirs: 0, reverse_path: ['']
2021-08-30 19:24:49,621 (c2c) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCsUj0dszADCGbF3gNrQEuSQ&key=AIzaSyDMT5Ez7YBfOWJSgoPCioP4T66AinEzOh8' from the HTTP cache
2021-08-30 19:24:49,631 (c2c) :  INFO (logkit:16) - [ ] title:        "Tsukumo_Sana_Ch._hololive-EN ", metadata.title: "Tsukumo_Sana_Ch._hololive-EN "
2021-08-30 19:24:49,632 (c2c) :  INFO (logkit:16) - [ ] art:       https://yt3.ggpht.com/mOgVlX2SVFT_Go5gnXbGOEAI1MgcYDg8VnVb7fGnQ0awIcX33Nds0F7KiJ4_R1Jz6wxq5TEJ=s1920
2021-08-30 19:24:49,632 (c2c) :  INFO (logkit:16) - [ ] banners:   https://yt3.ggpht.com/mOgVlX2SVFT_Go5gnXbGOEAI1MgcYDg8VnVb7fGnQ0awIcX33Nds0F7KiJ4_R1Jz6wxq5TEJ=s1920
2021-08-30 19:24:49,632 (c2c) :  INFO (logkit:16) - [ ] posters:   https://yt3.ggpht.com/t1XymJVoo8trXNJ1PeHTzaROF5wqlBYigFoYzw0HEthLahxAXjpqBi6c5ttOp9kWkYCkspivEg=s240-c-k-c0x00ffffff-no-rj
2021-08-30 19:24:49,634 (c2c) :  INFO (logkit:16) - [ ] role:        Tsukumo Sana Ch. hololive-EN
2021-08-30 19:24:49,634 (c2c) :  INFO (logkit:16) - =============================================================================================================================================================
2021-08-30 19:24:49,634 (c2c) :  INFO (logkit:16) - Season: 2021
2021-08-30 19:24:49,634 (c2c) :  INFO (logkit:16) - metadata.seasons[2021].episodes[None] "Beat_the_Beat_-_Rhythm_Paradise_Idol_training_arc_holoCouncil [SfZ1DxRaqnc].mkv"
2021-08-30 19:24:49,634 (c2c) :  INFO (logkit:16) - populate_episode_metadata_from_info_json() - series_root_folder: Z:\Plex\YouTube Hololive\Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ]\, filename: Beat_the_Beat_-_Rhythm_Paradise_Idol_training_arc_holoCouncil [SfZ1DxRaqnc].mkv
2021-08-30 19:24:49,634 (c2c) :  INFO (logkit:16) - Searching for "Beat_the_Beat_-_Rhythm_Paradise_Idol_training_arc_holoCouncil [SfZ1DxRaqnc].info.json". Searching in "Z:\Plex\YouTube Hololive\Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ]\".
2021-08-30 19:24:49,637 (c2c) :  INFO (logkit:16) - Directory \\?\Z:\Plex\YouTube Hololive\Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ]\ contains 7 files
2021-08-30 19:24:49,637 (c2c) :  INFO (logkit:16) - populate_episode_metadata_from_api() - filename: Beat_the_Beat_-_Rhythm_Paradise_Idol_training_arc_holoCouncil [SfZ1DxRaqnc].mkv
2021-08-30 19:24:49,637 (c2c) :  INFO (logkit:16) - # videoId [SfZ1DxRaqnc] not in Playlist/channel item list so loading json_video_details
2021-08-30 19:24:49,650 (c2c) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=SfZ1DxRaqnc&key=AIzaSyDMT5Ez7YBfOWJSgoPCioP4T66AinEzOh8' from the HTTP cache
2021-08-30 19:24:49,658 (c2c) :  INFO (logkit:16) - [?] link:     "https://www.youtube.com/watch?v=SfZ1DxRaqnc"
2021-08-30 19:24:49,658 (c2c) :  INFO (logkit:16) - [ ] title:    "【Beat the Beat: Rhythm Paradise】Idol training arc! #holoCouncil"
2021-08-30 19:24:49,658 (c2c) :  INFO (logkit:16) - [ ] summary:  "also Rhythm Heaven Fever but also just OK. . Nintendo properties used in this video and livestream are used with permission and under license by Nintendo Co., Ltd.. . [Hashtags]. (LIVE) #SanaLanding. (FANART) #galaxillust. (FAN NAME) Sanallite. . . [Twitter]. https://twitter.com/tsukumosana. . . ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★. . .  -Ceres Fauna-. [YouTube] https://t.co/lzWsu2S9PQ?amp=1. [Twitter] https://twitter.com/ceresfauna. . -Ouro Kronii-. [YouTube] https://t.co/P3BX2MUiCX?amp=1. [Twitter] https://twitter.com/ourokronii. . -Nanashi Mumei-. [YouTube] https://t.co/oO4kBazKMv?amp=1. [Twitter] https://twitter.com/nanashimumei_en. .  -Hakos Baelz-. [YouTube] https://t.co/X17xhp1Bty?amp=1. [Twitter] https://twitter.com/hakosbaelz. . . [BGM]. . ★DOVA-SYNDROME. ★HP:https://dova-s.jp/. . ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★. . . [Viewer Rules]. Thank you for watching my stream! Be nice and respect everyone’s space!. . . Please follow these rules:. 1.Be nice to other viewers. Don’t spam or troll . 2.If you see spam or trolling, don’t respond. Just block, report, and ignore those comments.. 3.Talk about the stream, but please don’t bring up unrelated topics or have personal conversations.. 4.Don’t bring up other streamers or streams unless I mention them.. 5.Similarly, don’t talk about me or my stream in other streamers’ chat.. 6.Please refrain from chatting before the stream starts to prevent any issues. As long as you follow the rules above, you can chat in any language. . . . ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★. . . [Fan Work Guidelines]. https://en.hololive.tv/terms. . . ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★. . . [Official Online Shop]. https://hololive.booth.pm/. . . [Holoschedule] (Check all members streaming schedules). https://schedule.hololive.tv/#hololive. . . ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★. . . [Hololive Production]. ・Hololive English YouTube Channel: https://t.co/LcYDgFF9V0?amp=1. ・Hololive Production Official Twitter: https://twitter.com/hololivetv. ・Hololive English Official Twitter: https://twitter.com/hololive_En. ・Hololive English Official Reddit: https://www.reddit.com/r/Hololive/. . . ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★. . . . . #holoCouncil. #hololiveEnglish"
2021-08-30 19:24:49,660 (c2c) :  CRITICAL (core:574) - Exception in the update function of agent named 'YouTubeSeries', called with guid 'com.plexapp.agents.youtube://youtube|UCsUj0dszADCGbF3gNrQEuSQ|Tsukumo_Sana_Ch._hololive-EN [UCsUj0dszADCGbF3gNrQEuSQ]?lang=xn' (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-2b1b51db9\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "C:\Users\Administrator\AppData\Local\Plex Media Server\Plug-ins\YouTube-Agent.bundle\Contents\Code\__init__.py", line 518, in update
    def update (self, metadata, media, lang, force ):  Update (metadata, media, lang, force,  False)
  File "C:\Users\Administrator\AppData\Local\Plex Media Server\Plug-ins\YouTube-Agent.bundle\Contents\Code\__init__.py", line 490, in Update
    if len(e)>3 and Dict(json_video_details, 'snippet', 'publishedAt'): episode.originally_available_at = Datetime.ParseDate(Dict(json_video_details, 'snippet', 'publishedAt')).date(); Log.Info('[ ] date: "{}"'.format(Dict(json_video_details, 'snippet', 'publishedAt')))
TypeError: object of type 'NoneType' has no len()

2021-08-30 19:24:49,674 (c2c) :  DEBUG (model:229) - Serializing to C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\7\982ec25b07f2073a2e15c85159952577d3839c7.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-30 19:24:49,677 (c2c) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2021-08-30 19:24:49,677 (c2c) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
ZeroQI commented 2 years ago

init.py", line 490, replace with: if e is not None and len(e)>3 and Dict(json_video_details, 'snippet', 'publishedAt'): episode.originally_available_at = Datetime.ParseDate(Dict(json_video_details, 'snippet', 'publishedAt')).date(); Log.Info('[ ] date: "{}"'.format(Dict(json_video_details, 'snippet', 'publishedAt')))

vinnpinn commented 2 years ago

Still don't getting any matches. Is there anything I might've understood incorrectly and set up wrongly?

Here are the latest error logs.

2021-08-31 19:15:35,542 (1348) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo2ODQ0czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzMTI0CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmd8T3Vyb19Lcm9uaWlfQ2guX2hvbG9saXZlLUVOIFtVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmddP2xhbmc9eG5zNApndWlkczg3CnlvdXR1YmV8VUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnfE91cm9fS3JvbmlpX0NoLl9ob2xvbGl2ZS1FTiBbVUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnXXMyCmlkcjAK
2021-08-31 19:15:35,542 (1348) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2021-08-31 19:15:35,543 (1348) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo2ODQ0czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzMTI0CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmd8T3Vyb19Lcm9uaWlfQ2guX2hvbG9saXZlLUVOIFtVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmddP2xhbmc9eG5zNApndWlkczg3CnlvdXR1YmV8VUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnfE91cm9fS3JvbmlpX0NoLl9ob2xvbGl2ZS1FTiBbVUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnXXMyCmlkcjAK
2021-08-31 19:15:35,543 (1348) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCmbs8T6MWqUHP1tIQvSgKrg|Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]?lang=xn
2021-08-31 19:15:35,545 (1348) :  DEBUG (model:234) - Deserializing from C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\3\1cb12b29d2f8f206577e0a0dcfc8ecbe1f44106.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-31 19:15:35,556 (1348) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/6844/tree'
2021-08-31 19:15:35,572 (1348) :  INFO (logkit:16) - === update(lang=xn, force=True, movie=False) ===
2021-08-31 19:15:35,572 (1348) :  INFO (logkit:16) - Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].mkv
2021-08-31 19:15:35,572 (1348) :  INFO (logkit:16) - =============================================================================================================================================================
2021-08-31 19:15:35,572 (1348) :  INFO (logkit:16) - [!] Library access denied
2021-08-31 19:15:35,573 (1348) :  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"
2021-08-31 19:15:35,573 (1348) :  INFO (logkit:16) - [ ] library:    ""
2021-08-31 19:15:35,575 (1348) :  INFO (logkit:16) - [ ] root:       "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]"
2021-08-31 19:15:35,575 (1348) :  INFO (logkit:16) - [ ] path:       ""
2021-08-31 19:15:35,575 (1348) :  INFO (logkit:16) - [ ] dir:        "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]"
2021-08-31 19:15:35,575 (1348) :  INFO (logkit:16) - [ ] series_root_folder: "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\"
2021-08-31 19:15:35,578 (1348) :  INFO (logkit:16) - [ ] subfolder_count:    "0"
2021-08-31 19:15:35,578 (1348) :  INFO (logkit:16) - Grouping folder not found or single folder, root: Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg], path: , Grouping folder: , subdirs: 0, reverse_path: ['']
2021-08-31 19:15:35,592 (1348) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCmbs8T6MWqUHP1tIQvSgKrg&key=AIzaSyDMT5Ez7YBfOWJSgoPCioP4T66AinEzOh8' from the HTTP cache
2021-08-31 19:15:35,602 (1348) :  INFO (logkit:16) - [ ] title:        "Ouro_Kronii_Ch._hololive-EN ", metadata.title: "Ouro_Kronii_Ch._hololive-EN "
2021-08-31 19:15:35,604 (1348) :  INFO (logkit:16) - [ ] art:       https://yt3.ggpht.com/sxiYhCWVHOua_5flWkxcDZqMDh38ueGv4O1WyH_GgjsIi6Vlp8BWY-4RfYjswWdOsbBFqSlX21U=s1920
2021-08-31 19:15:35,604 (1348) :  INFO (logkit:16) - [ ] banners:   https://yt3.ggpht.com/sxiYhCWVHOua_5flWkxcDZqMDh38ueGv4O1WyH_GgjsIi6Vlp8BWY-4RfYjswWdOsbBFqSlX21U=s1920
2021-08-31 19:15:35,605 (1348) :  INFO (logkit:16) - [ ] posters:   https://yt3.ggpht.com/6670YE31bbAtAi7m_UL-KWZBdL5wvmfHlLtcS4HxsBZBQNqmAk7Y-iiIOjawO_0HYXpS4HfC=s240-c-k-c0x00ffffff-no-rj
2021-08-31 19:15:35,605 (1348) :  INFO (logkit:16) - [ ] role:        Ouro Kronii Ch. hololive-EN
2021-08-31 19:15:35,605 (1348) :  INFO (logkit:16) - =============================================================================================================================================================
2021-08-31 19:15:35,605 (1348) :  INFO (logkit:16) - Season: 2021
2021-08-31 19:15:35,605 (1348) :  INFO (logkit:16) - metadata.seasons[2021].episodes[None] "COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].mkv"
2021-08-31 19:15:35,605 (1348) :  INFO (logkit:16) - populate_episode_metadata_from_info_json() - series_root_folder: Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\, filename: COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].mkv
2021-08-31 19:15:35,605 (1348) :  INFO (logkit:16) - Searching for "COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].info.json". Searching in "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\".
2021-08-31 19:15:35,611 (1348) :  INFO (logkit:16) - Directory \\?\Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\ contains 6 files
2021-08-31 19:15:35,611 (1348) :  INFO (logkit:16) - populate_episode_metadata_from_api() - filename: COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].mkv
2021-08-31 19:15:35,611 (1348) :  INFO (logkit:16) - # videoId [JRclI_h2H-U] not in Playlist/channel item list so loading json_video_details
2021-08-31 19:15:35,628 (1348) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=JRclI_h2H-U&key=AIzaSyDMT5Ez7YBfOWJSgoPCioP4T66AinEzOh8' from the HTTP cache
2021-08-31 19:15:35,641 (1348) :  INFO (logkit:16) - [?] link:     "https://www.youtube.com/watch?v=JRclI_h2H-U"
2021-08-31 19:15:35,641 (1348) :  INFO (logkit:16) - [ ] title:    "【COUNCIL MEETING】NEW PHONE WHO DIS  #holocouncil #hololiveEnglish"
2021-08-31 19:15:35,641 (1348) :  INFO (logkit:16) - [ ] summary:  "Time to draw!. . This game is being streamed and monetized after confirming with Onrizon Social Games.. Gartic Phone. https://gartic.com/garticphone. . [Twitter]. https://twitter.com/ourokronii. . [Thumbnail Art]. https://twitter.com/eri_syumi/status/1430107622955495457?. . ----------------------------------------------------------------------------. -Tsukumo Sana-. [YouTube] https://bit.ly/3gePhzG. [Twitter] https://twitter.com/tsukumosana . . -Ceres Fauna-. [YouTube] https://t.co/lzWsu2S9PQ?amp=1. [Twitter] https://twitter.com/ceresfauna. . -Nanashi Mumei-. [YouTube] https://t.co/oO4kBazKMv?amp=1. [Twitter] https://twitter.com/nanashimumei_en. .  -Hakos Baelz-. [YouTube] https://t.co/X17xhp1Bty?amp=1. [Twitter] https://twitter.com/hakosbaelz. ----------------------------------------------------------------------------. [Viewer Rules]. Thank you for watching my stream!. To help everyone enjoy the stream more, please follow these rules:. 1. Be nice to other viewers. Don’t spam or troll.. 2. If you see spam or trolling, don’t respond. Just block, report, and ignore those comments.. 3. Talk about the stream, but please don’t bring up unrelated topics or have personal conversations.. 4. Don’t bring up other streamers or streams unless I mention them.. 5. Similarly, don’t talk about me or my stream in other streamers’ chat.. 6. No backseating unless I ask for help. I'd rather learn from my mistakes by dying countless times; if I fail, it will be on my own terms.. 7. Please refrain from chatting before the stream starts to prevent any issues.. As long as you follow the rules above, you can chat in any language!. . ----------------------------------------------------------------------------. . [Credits]. (BGM). DOVA-SYNDROME - https://dova-s.jp/. Daystar - Zero Gravity / https://youtu.be/YqAbL2hm27g. . ----------------------------------------------------------------------------. . [Fan Work Guidelines]. https://en.hololive.tv/terms. . ----------------------------------------------------------------------------. . [Official Online Shop]. https://hololive.booth.pm/. . [Holoschedule] (Check all members streaming schedules). https://schedule.hololive.tv/#hololive. . ----------------------------------------------------------------------------. . [Hololive Production]. ・Hololive English YouTube Channel: https://t.co/LcYDgFF9V0?amp=1. ・Hololive Production Official Twitter: https://twitter.com/hololivetv. ・Hololive English Official Twitter: https://twitter.com/hololive_En. ・Hololive English Official Reddit: https://www.reddit.com/r/Hololive/. . ----------------------------------------------------------------------------. . #holoCouncil. #hololiveEnglish"
2021-08-31 19:15:35,641 (1348) :  INFO (logkit:16) - [ ] duration: "PT1H24M29S"->"5069000"
2021-08-31 19:15:35,641 (1348) :  INFO (logkit:16) - [ ] rating:   "9.98491903905"
2021-08-31 19:15:35,642 (1348) :  INFO (logkit:16) - [ ] genres:   "[u'Gaming']"
2021-08-31 19:15:35,642 (1348) :  INFO (logkit:16) - === End Of Agent Call, errors after that are Plex related ===================================================================================================
2021-08-31 19:15:35,665 (1348) :  DEBUG (model:229) - Serializing to C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\3\1cb12b29d2f8f206577e0a0dcfc8ecbe1f44106.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-31 19:15:35,668 (1348) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2021-08-31 19:15:35,668 (1348) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
2021-08-31 19:15:40,358 (c64) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo2ODUxczQKZGJpZGkwCnM3CnZlcnNpb25zMTI5CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmd8T3Vyb19Lcm9uaWlfQ2guX2hvbG9saXZlLUVOIFtVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmddLzIwMjE%40bGFuZz14bnMxMApwYXJlbnRHVUlEczQKNjg0NXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczE0MApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnfE91cm9fS3JvbmlpX0NoLl9ob2xvbGl2ZS1FTiBbVUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnXS8yMDIxLzE5MDAtMDEtMDE%40bGFuZz14bnM0Cmd1aWRzODcKeW91dHViZXxVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmd8T3Vyb19Lcm9uaWlfQ2guX2hvbG9saXZlLUVOIFtVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmddczIKaWRyMAo_
2021-08-31 19:15:40,359 (c64) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2021-08-31 19:15:40,361 (c64) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo2ODUxczQKZGJpZGkwCnM3CnZlcnNpb25zMTI5CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXxVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmd8T3Vyb19Lcm9uaWlfQ2guX2hvbG9saXZlLUVOIFtVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmddLzIwMjE@bGFuZz14bnMxMApwYXJlbnRHVUlEczQKNjg0NXM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczE0MApjb20ucGxleGFwcC5hZ2VudHMueW91dHViZTovL3lvdXR1YmV8VUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnfE91cm9fS3JvbmlpX0NoLl9ob2xvbGl2ZS1FTiBbVUNtYnM4VDZNV3FVSFAxdElRdlNnS3JnXS8yMDIxLzE5MDAtMDEtMDE@bGFuZz14bnM0Cmd1aWRzODcKeW91dHViZXxVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmd8T3Vyb19Lcm9uaWlfQ2guX2hvbG9saXZlLUVOIFtVQ21iczhUNk1XcVVIUDF0SVF2U2dLcmddczIKaWRyMAo_
2021-08-31 19:15:40,361 (c64) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|UCmbs8T6MWqUHP1tIQvSgKrg|Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]/2021/1900-01-01?lang=xn
2021-08-31 19:15:40,361 (c64) :  DEBUG (model:234) - Deserializing from C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\b\573ae5bde443a41e59e18aea8271faf83b8d8c6.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-31 19:15:40,368 (c64) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/6851/tree'
2021-08-31 19:15:40,381 (c64) :  INFO (logkit:16) - === update(lang=xn, force=True, movie=False) ===
2021-08-31 19:15:40,381 (c64) :  INFO (logkit:16) - Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].mkv
2021-08-31 19:15:40,381 (c64) :  INFO (logkit:16) - =============================================================================================================================================================
2021-08-31 19:15:40,381 (c64) :  INFO (logkit:16) - [!] Library access denied
2021-08-31 19:15:40,381 (c64) :  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"
2021-08-31 19:15:40,381 (c64) :  INFO (logkit:16) - [ ] library:    ""
2021-08-31 19:15:40,381 (c64) :  INFO (logkit:16) - [ ] root:       "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]"
2021-08-31 19:15:40,382 (c64) :  INFO (logkit:16) - [ ] path:       ""
2021-08-31 19:15:40,382 (c64) :  INFO (logkit:16) - [ ] dir:        "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]"
2021-08-31 19:15:40,382 (c64) :  INFO (logkit:16) - [ ] series_root_folder: "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\"
2021-08-31 19:15:40,384 (c64) :  INFO (logkit:16) - [ ] subfolder_count:    "0"
2021-08-31 19:15:40,384 (c64) :  INFO (logkit:16) - Grouping folder not found or single folder, root: Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg], path: , Grouping folder: , subdirs: 0, reverse_path: ['']
2021-08-31 19:15:40,401 (c64) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics%2CbrandingSettings&id=UCmbs8T6MWqUHP1tIQvSgKrg&key=AIzaSyDMT5Ez7YBfOWJSgoPCioP4T66AinEzOh8' from the HTTP cache
2021-08-31 19:15:40,410 (c64) :  INFO (logkit:16) - [ ] title:        "Ouro_Kronii_Ch._hololive-EN ", metadata.title: "Ouro_Kronii_Ch._hololive-EN "
2021-08-31 19:15:40,411 (c64) :  INFO (logkit:16) - [ ] art:       https://yt3.ggpht.com/sxiYhCWVHOua_5flWkxcDZqMDh38ueGv4O1WyH_GgjsIi6Vlp8BWY-4RfYjswWdOsbBFqSlX21U=s1920
2021-08-31 19:15:40,413 (c64) :  INFO (logkit:16) - [ ] banners:   https://yt3.ggpht.com/sxiYhCWVHOua_5flWkxcDZqMDh38ueGv4O1WyH_GgjsIi6Vlp8BWY-4RfYjswWdOsbBFqSlX21U=s1920
2021-08-31 19:15:40,413 (c64) :  INFO (logkit:16) - [ ] posters:   https://yt3.ggpht.com/6670YE31bbAtAi7m_UL-KWZBdL5wvmfHlLtcS4HxsBZBQNqmAk7Y-iiIOjawO_0HYXpS4HfC=s240-c-k-c0x00ffffff-no-rj
2021-08-31 19:15:40,413 (c64) :  INFO (logkit:16) - [ ] role:        Ouro Kronii Ch. hololive-EN
2021-08-31 19:15:40,413 (c64) :  INFO (logkit:16) - =============================================================================================================================================================
2021-08-31 19:15:40,414 (c64) :  INFO (logkit:16) - Season: 2021
2021-08-31 19:15:40,414 (c64) :  INFO (logkit:16) - metadata.seasons[2021].episodes[None] "COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].mkv"
2021-08-31 19:15:40,414 (c64) :  INFO (logkit:16) - populate_episode_metadata_from_info_json() - series_root_folder: Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\, filename: COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].mkv
2021-08-31 19:15:40,414 (c64) :  INFO (logkit:16) - Searching for "COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].info.json". Searching in "Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\".
2021-08-31 19:15:40,417 (c64) :  INFO (logkit:16) - Directory \\?\Z:\Plex\Hololive\Ouro_Kronii_Ch._hololive-EN [UCmbs8T6MWqUHP1tIQvSgKrg]\ contains 6 files
2021-08-31 19:15:40,417 (c64) :  INFO (logkit:16) - populate_episode_metadata_from_api() - filename: COUNCIL_MEETING_NEW_PHONE_WHO_DIS_holocouncil_hololiveEnglish [JRclI_h2H-U].mkv
2021-08-31 19:15:40,417 (c64) :  INFO (logkit:16) - # videoId [JRclI_h2H-U] not in Playlist/channel item list so loading json_video_details
2021-08-31 19:15:40,434 (c64) :  DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=JRclI_h2H-U&key=AIzaSyDMT5Ez7YBfOWJSgoPCioP4T66AinEzOh8' from the HTTP cache
2021-08-31 19:15:40,444 (c64) :  INFO (logkit:16) - [?] link:     "https://www.youtube.com/watch?v=JRclI_h2H-U"
2021-08-31 19:15:40,446 (c64) :  INFO (logkit:16) - [ ] title:    "【COUNCIL MEETING】NEW PHONE WHO DIS  #holocouncil #hololiveEnglish"
2021-08-31 19:15:40,446 (c64) :  INFO (logkit:16) - [ ] summary:  "Time to draw!. . This game is being streamed and monetized after confirming with Onrizon Social Games.. Gartic Phone. https://gartic.com/garticphone. . [Twitter]. https://twitter.com/ourokronii. . [Thumbnail Art]. https://twitter.com/eri_syumi/status/1430107622955495457?. . ----------------------------------------------------------------------------. -Tsukumo Sana-. [YouTube] https://bit.ly/3gePhzG. [Twitter] https://twitter.com/tsukumosana . . -Ceres Fauna-. [YouTube] https://t.co/lzWsu2S9PQ?amp=1. [Twitter] https://twitter.com/ceresfauna. . -Nanashi Mumei-. [YouTube] https://t.co/oO4kBazKMv?amp=1. [Twitter] https://twitter.com/nanashimumei_en. .  -Hakos Baelz-. [YouTube] https://t.co/X17xhp1Bty?amp=1. [Twitter] https://twitter.com/hakosbaelz. ----------------------------------------------------------------------------. [Viewer Rules]. Thank you for watching my stream!. To help everyone enjoy the stream more, please follow these rules:. 1. Be nice to other viewers. Don’t spam or troll.. 2. If you see spam or trolling, don’t respond. Just block, report, and ignore those comments.. 3. Talk about the stream, but please don’t bring up unrelated topics or have personal conversations.. 4. Don’t bring up other streamers or streams unless I mention them.. 5. Similarly, don’t talk about me or my stream in other streamers’ chat.. 6. No backseating unless I ask for help. I'd rather learn from my mistakes by dying countless times; if I fail, it will be on my own terms.. 7. Please refrain from chatting before the stream starts to prevent any issues.. As long as you follow the rules above, you can chat in any language!. . ----------------------------------------------------------------------------. . [Credits]. (BGM). DOVA-SYNDROME - https://dova-s.jp/. Daystar - Zero Gravity / https://youtu.be/YqAbL2hm27g. . ----------------------------------------------------------------------------. . [Fan Work Guidelines]. https://en.hololive.tv/terms. . ----------------------------------------------------------------------------. . [Official Online Shop]. https://hololive.booth.pm/. . [Holoschedule] (Check all members streaming schedules). https://schedule.hololive.tv/#hololive. . ----------------------------------------------------------------------------. . [Hololive Production]. ・Hololive English YouTube Channel: https://t.co/LcYDgFF9V0?amp=1. ・Hololive Production Official Twitter: https://twitter.com/hololivetv. ・Hololive English Official Twitter: https://twitter.com/hololive_En. ・Hololive English Official Reddit: https://www.reddit.com/r/Hololive/. . ----------------------------------------------------------------------------. . #holoCouncil. #hololiveEnglish"
2021-08-31 19:15:40,446 (c64) :  INFO (logkit:16) - [ ] duration: "PT1H24M29S"->"5069000"
2021-08-31 19:15:40,447 (c64) :  INFO (logkit:16) - [ ] rating:   "9.98491903905"
2021-08-31 19:15:40,447 (c64) :  INFO (logkit:16) - [ ] genres:   "[u'Gaming']"
2021-08-31 19:15:40,447 (c64) :  INFO (logkit:16) - === End Of Agent Call, errors after that are Plex related ===================================================================================================
2021-08-31 19:15:40,466 (c64) :  DEBUG (model:229) - Serializing to C:\Users\Administrator\AppData\Local\Plex Media Server\Metadata\TV Shows\b\573ae5bde443a41e59e18aea8271faf83b8d8c6.bundle\Contents\com.plexapp.agents.youtube\Info.xml
2021-08-31 19:15:40,467 (c64) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2021-08-31 19:15:40,469 (c64) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
vinnpinn commented 2 years ago

It seems to match things now, might still be cached on the older videos? Will check it out tomorrow again, might be working now.

ZeroQI commented 2 years ago

Logs look good so wait and refresh metadata

vinnpinn commented 2 years ago

Yeah, seems to work now. Thank you so much!!

jpd527 commented 2 years ago

I am having the identical issue (same change in log messages from before and after the code tweak from Aug 30th), but the unmatching was still happening even after clearing the cache, refreshing metadata, etc. I realized that the issue was only happening for files with the same OS Modified date, and when I ran a touch on one of the files to change the Modified date, the unmatching didn't happen. It may have something to do with the file keys being generated with the Modified date, and having to add an incrementing number for duplicate Modified dates in the Absolute Series Scanner.

ZeroQI commented 2 years ago

If using youtubedl as advised the modified date should match the upload date...

jpd527 commented 2 years ago

I am using youtube-dl (copied the handy script straight from your readme), but for channels that have multiple videos on the same day, that problem still exists unfortunately.

ZeroQI commented 2 years ago

Yes. I did try to code a fix in the scanner but didn't work Downloading a playlist is easier as the scanner match the title to the playlist rank. However raw channel files released on same day are problematic and dunno how to fix if issue still present currently

AtomicClown commented 2 years ago

Are there any ideas/plans in mind for a fix? It's a shame to have it functioning improperly, but I certainly don't want to press anyone. Just curious.