ZeroQI / YouTube-Agent.bundle

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

An option to name the series according to its folder name #59

Closed JamesDAdams closed 3 years ago

JamesDAdams commented 3 years ago

Hi,

it's possible to add a option so that the name of each series is the name of the folder ?

Let me explain, so that everything is automatic I add in youtube-dl this :

youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s [%(id)s]' https://www.youtube.com/user/chanel/playlists

and it's my own youtube channel that I specify like that youtube-dl will download my youtube playlists and if later I create a new playlist on youtube it will also automatically download them

The concern is that suddenly with this technique the names of the series are not recognized

image

Thank you in advance for your reply.

JamesDAdams commented 3 years ago

For now it just takes the path it would have to be changed to only have the name of the folder

image

ZeroQI commented 3 years ago

Already done in https://github.com/ZeroQI/YouTube-Agent.bundle/commit/bc1e09d4d203aaeb3d7c266c76cdeadeb6865a8e Are you sure you are using latest version?

JamesDAdams commented 3 years ago

Already done in bc1e09d Are you sure you are using latest version?

Yes i have the last version

JamesDAdams commented 3 years ago

i just downloaded the plugin and reinstall it and now i have the youtube channel name

image

JamesDAdams commented 3 years ago

But I don't want the channel name but the name of the folder

because my playlist contains videos from several youtube channels

ZeroQI commented 3 years ago

there is no channel or playlist id on the folder, but sice you have videos from several youtube channels, well that's not a supported scenario(the two examples in the readme have the channel id in brackets after the channel name)

The absence of logsmake it tricky to see the unique ID assigned by the agent (search function)

line 144 please replace results.Append( MetadataSearchResult( id='youtube|{}|{}'.format(guid,dir), name=filename, year=None, score=100, lang=lang ) ) with results.Append( MetadataSearchResult( id='youtube|{}|{}'.format(guid,dir), name=os.path.basename(os.path.dirname(filename)), year=None, score=100, lang=lang ) ) and report

JamesDAdams commented 3 years ago

with your new code no change :( image

ZeroQI commented 3 years ago

I really need lambda logs

JamesDAdams commented 3 years ago

I really need lambda logs

[removed logs, too long, irrelevant]

JamesDAdams commented 3 years ago

So, do you have any ideas for how to do that ?

ZeroQI commented 3 years ago

[...]/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.agents.Youtube-Agent.log (Agent logs)

JamesDAdams commented 3 years ago

[...]/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.agents.Youtube-Agent.log (Agent logs)

i don't have com.plexapp.agents.Youtube-Agent.log

image

JamesDAdams commented 3 years ago

2021-01-07 21:22:25,809 (151f85b2fc00) : INFO (core:349) - Starting framework core - Version: 2.6.3, Build: a78fef9 (Thu Aug 27 09:10:02 UTC 2020) 2021-01-07 21:22:25,809 (151f85b2fc00) : DEBUG (core:361) - Using the elevated policy 2021-01-07 21:22:25,809 (151f85b2fc00) : DEBUG (core:450) - Starting runtime component. 2021-01-07 21:22:25,811 (151f85b2fc00) : DEBUG (core:450) - Starting caching component. 2021-01-07 21:22:25,811 (151f85b2fc00) : DEBUG (core:450) - Starting data component. 2021-01-07 21:22:25,811 (151f85b2fc00) : DEBUG (core:450) - Starting networking component. 2021-01-07 21:22:25,812 (151f85b2fc00) : DEBUG (networking:261) - Loaded HTTP cookies 2021-01-07 21:22:25,812 (151f85b2fc00) : DEBUG (networking:428) - Setting the default network timeout to 20.0 2021-01-07 21:22:25,812 (151f85b2fc00) : DEBUG (core:450) - Starting localization component. 2021-01-07 21:22:25,812 (151f85b2fc00) : INFO (localization:409) - Setting the default locale to en-us 2021-01-07 21:22:25,812 (151f85b2fc00) : DEBUG (core:450) - Starting messaging component. 2021-01-07 21:22:25,813 (151f85b2fc00) : DEBUG (core:450) - Starting debugging component. 2021-01-07 21:22:25,813 (151f7cc37700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.youtube' 2021-01-07 21:22:25,814 (151f85b2fc00) : DEBUG (core:450) - Starting services component. 2021-01-07 21:22:25,816 (151f85b2fc00) : DEBUG (core:450) - Starting myplex component. 2021-01-07 21:22:25,816 (151f85b2fc00) : DEBUG (core:450) - Starting notifications component. 2021-01-07 21:22:25,896 (151f85b2fc00) : DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.youtube in namespace 'metadata' 2021-01-07 21:22:25,899 (151f85b2fc00) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes' 2021-01-07 21:22:25,910 (151f7cc37700) : DEBUG (services:265) - Plug-in is not daemonized - loading services from system 2021-01-07 21:22:25,911 (151f85b2fc00) : DEBUG (runtime:1117) - Created a thread named 'load_allservices' 2021-01-07 21:22:25,911 (151f7cc37700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMApyMAo' 2021-01-07 21:22:25,913 (151f85b2fc00) : DEBUG (runtime:1117) - Created a thread named 'get_server_info' 2021-01-07 21:22:25,913 (151f85b2fc00) : DEBUG (core:150) - Finished starting framework core 2021-01-07 21:22:25,913 (151f7c775700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400' 2021-01-07 21:22:25,914 (151f85b2fc00) : DEBUG (core:560) - Loading plug-in code 2021-01-07 21:22:25,940 (151f7c775700) : DEBUG (core:538) - Machine identifier is 33166f225d0a9571c7629acb8badf627c93e9f7f 2021-01-07 21:22:25,940 (151f7c775700) : DEBUG (core:539) - Server version is 1.20.1.3252-a78fef9a9 2021-01-07 21:22:26,086 (151f7cc37700) : DEBUG (services:362) - Loaded services 2021-01-07 21:22:26,113 (151f7c976700) : DEBUG (services:438) - No shared code to load 2021-01-07 21:22:26,260 (151f85b2fc00) : DEBUG (core:566) - Finished loading plug-in code 2021-01-07 21:22:26,261 (151f85b2fc00) : DEBUG (agentkit:1132) - Creating new agent class called YouTubeSeriesAgent 2021-01-07 21:22:26,261 (151f85b2fc00) : DEBUG (agentkit:937) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': None, 'contributes_to': None, 'languages': ['xn'], 'persist_stored_files': True, 'version': 0, 'primaryprovider': True, 'prefs': True, 'name': 'YouTubeSeries'}] 2021-01-07 21:22:26,261 (151f85b2fc00) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQo2CmRpY3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0CjIKczI2CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlczEwCmlkZW50aWZpZXJyMQpzMTAKYWdlbnRfaW5mbzEKcjIKMTAKcjMKczExCm1lZGlhX3R5cGVzcjQKczEyCmFjY2VwdHNfZnJvbW5zMTQKZmFsbGJhY2tfYWdlbnRuczE0CmNvbnRyaWJ1dGVzX3RvcjUKczkKbGFuZ3VhZ2VzYjFzMjAKcGVyc2lzdF9zdG9yZWRfZmlsZXNpMApzNwp2ZXJzaW9uYjFzMTYKcHJpbWFyeV9wcm92aWRlcmIxczUKcHJlZnNzMTMKWW91VHViZVNlcmllc3M0Cm5hbWUxCnM3ClRWX1Nob3cxCnMyOQpjb20ucGxleGFwcC5hZ2VudHMubG9jYWxtZWRpYTEKczIKeG5yMAo_' 2021-01-07 21:22:26,267 (151f85b2fc00) : DEBUG (agentkit:1132) - Creating new agent class called YouTubeMovieAgent 2021-01-07 21:22:26,267 (151f85b2fc00) : DEBUG (agentkit:937) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': None, 'contributes_to': None, 'languages': ['xn'], 'persist_stored_files': True, 'version': 0, 'primary_provider': True, 'prefs': True, 'name': 'YouTubeSeries'}, {'media_types': ['Movie'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': None, 'contributes_to': None, 'languages': ['xn'], 'persist_stored_files': True, 'version': 0, 'primaryprovider': True, 'prefs': True, 'name': 'YouTubeMovie'}] 2021-01-07 21:22:26,268 (151f85b2fc00) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxMApkaWN0Cmxpc3QKZGljdApsaXN0Cmxpc3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0CjIKczI2CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlczEwCmlkZW50aWZpZXJyMQpzMTAKYWdlbnRfaW5mbzIKcjIKcjYKMTAKcjMKczExCm1lZGlhX3R5cGVzcjQKczEyCmFjY2VwdHNfZnJvbW5zMTQKZmFsbGJhY2tfYWdlbnRuczE0CmNvbnRyaWJ1dGVzX3RvcjUKczkKbGFuZ3VhZ2VzYjFzMjAKcGVyc2lzdF9zdG9yZWRfZmlsZXNpMApzNwp2ZXJzaW9uYjFzMTYKcHJpbWFyeV9wcm92aWRlcmIxczUKcHJlZnNzMTMKWW91VHViZVNlcmllc3M0Cm5hbWUxCnM3ClRWX1Nob3cxCnMyOQpjb20ucGxleGFwcC5hZ2VudHMubG9jYWxtZWRpYTEKczIKeG4xMApyNwpzMTEKbWVkaWFfdHlwZXNyOApzMTIKYWNjZXB0c19mcm9tbnMxNApmYWxsYmFja19hZ2VudG5zMTQKY29udHJpYnV0ZXNfdG9yOQpzOQpsYW5ndWFnZXNiMXMyMApwZXJzaXN0X3N0b3JlZF9maWxlc2kwCnM3CnZlcnNpb25iMXMxNgpwcmltYXJ5X3Byb3ZpZGVyYjFzNQpwcmVmc3MxMgpZb3VUdWJlTW92aWVzNApuYW1lMQpzNQpNb3ZpZTEKczI5CmNvbS5wbGV4YXBwLmFnZW50cy5sb2NhbG1lZGlhMQpzMgp4bnIwCg' 2021-01-07 21:22:26,275 (151f85b2fc00) : INFO (init:718) - Library: /config/Library/Application Support/Plex Media Server 2021-01-07 21:22:26,276 (151f85b2fc00) : INFO (init:729) - Place correct Plex token in X-Plex-Token.id file in logs folder or in PLEX_LIBRARY_URL variable to have a log per library - https://support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-TokenHTTP Error 401: Unauthorized 2021-01-07 21:22:26,276 (151f85b2fc00) : INFO (core:611) - Started plug-in 2021-01-07 21:22:26,276 (151f85b2fc00) : DEBUG (socketinterface:160) - Starting socket server 2021-01-07 21:22:26,277 (151f85b2fc00) : DEBUG (runtime:1117) - Created a thread named 'start' 2021-01-07 21:22:26,277 (151f85b2fc00) : INFO (socketinterface:184) - Socket server started on port 41607 2021-01-07 21:22:26,277 (151f85b2fc00) : INFO (pipeinterface:25) - Entering run loop 2021-01-07 21:22:26,277 (151f85b2fc00) : DEBUG (runtime:717) - Handling request GET /:/prefixes 2021-01-07 21:22:26,278 (151f85b2fc00) : DEBUG (runtime:814) - Found route matching /:/prefixes 2021-01-07 21:22:26,278 (151f85b2fc00) : DEBUG (runtime:924) - Response: [200] MediaContainer, 151 bytes 2021-01-07 21:22:26,280 (151f7cc37700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/prefs 2021-01-07 21:22:26,289 (151f7cc37700) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/prefs 2021-01-07 21:22:26,289 (151f7cc37700) : DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json 2021-01-07 21:22:26,290 (151f7cc37700) : DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.agents.youtube 2021-01-07 21:22:26,291 (151f7cc37700) : DEBUG (runtime:88) - Sending packed state data (107 bytes) 2021-01-07 21:22:26,291 (151f7cc37700) : DEBUG (runtime:924) - Response: [200] MediaContainer, 816 bytes 2021-01-07 21:22:29,275 (151f7cc37700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTkKczE2CjIzYzdlZGY2OTBjOGUzMzhzMTcKb3BlblN1YnRpdGxlc0hhc2hzMQoyczcKZXBpc29kZXMxCjFzOAplcGlzb2RpY3M2CkRpc25leXM0CnNob3dzMQoxczYKc2Vhc29uczIxMwolMkZtb3ZpZXMlMkZWaWRlb3MlMkZZb3V0dWJlVGVzdCUyRllvdXR1YmVETCUyRmFwcCUyRnN1YnNjcmlwdGlvbnMlMkZwbGF5bGlzdHMlMkZEaXNuZXklMkYwMiUyMC0lMjBUaGUlMjBMaW9uJTIwS2luZyUyMC0lMjBDYW4lMjBZb3UlMjBGZWVsJTIwVGhlJTIwTG92ZSUyMFRvbmlnaHQlMjAlMjhGcmVuY2glMjB2ZXJzaW9uJTI5JTIwJTVCMmlzQ3llRVNjb0klNUQlMkVtcDRzOApmaWxlbmFtZXM0MAoyMWZiOGY2ODQxYTkyMmI0MDg1ODM4YmU3ZGM1OWViMTIzNmUxMGE4czgKcGxleEhhc2hzMgotMXM4CmR1cmF0aW9uczUKMTc4ODNzMgppZHIwCg 2021-01-07 21:22:29,277 (151f7cc37700) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTkKczE2CjIzYzdlZGY2OTBjOGUzMzhzMTcKb3BlblN1YnRpdGxlc0hhc2hzMQoyczcKZXBpc29kZXMxCjFzOAplcGlzb2RpY3M2CkRpc25leXM0CnNob3dzMQoxczYKc2Vhc29uczIxMwolMkZtb3ZpZXMlMkZWaWRlb3MlMkZZb3V0dWJlVGVzdCUyRllvdXR1YmVETCUyRmFwcCUyRnN1YnNjcmlwdGlvbnMlMkZwbGF5bGlzdHMlMkZEaXNuZXklMkYwMiUyMC0lMjBUaGUlMjBMaW9uJTIwS2luZyUyMC0lMjBDYW4lMjBZb3UlMjBGZWVsJTIwVGhlJTIwTG92ZSUyMFRvbmlnaHQlMjAlMjhGcmVuY2glMjB2ZXJzaW9uJTI5JTIwJTVCMmlzQ3llRVNjb0klNUQlMkVtcDRzOApmaWxlbmFtZXM0MAoyMWZiOGY2ODQxYTkyMmI0MDg1ODM4YmU3ZGM1OWViMTIzNmUxMGE4czgKcGxleEhhc2hzMgotMXM4CmR1cmF0aW9uczUKMTc4ODNzMgppZHIwCg 2021-01-07 21:22:29,277 (151f7cc37700) : INFO (agentkit:961) - Searching for matches for {'openSubtitlesHash': '23c7edf690c8e338', 'episode': '2', 'episodic': '1', 'show': 'Disney', 'season': '1', 'filename': '%2Fmovies%2FVideos%2FYoutubeTest%2FYoutubeDL%2Fapp%2Fsubscriptions%2Fplaylists%2FDisney%2F02%20-%20The%20Lion%20King%20-%20Can%20You%20Feel%20The%20Love%20Tonight%20%28French%20version%29%20%5B2isCyeEScoI%5D%2Emp4', 'plexHash': '21fb8f6841a922b4085838be7dc59eb1236e10a8', 'duration': '-1', 'id': '17883'} 2021-01-07 21:22:29,277 (151f7cc37700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/17883/tree' 2021-01-07 21:22:29,281 (151f7cc37700) : INFO (init:61) - /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney/01 - The Lion King - I Just Can't Wait To Be King (French version) [HBwZPozCmGA].mp4 2021-01-07 21:22:29,282 (151f7cc37700) : INFO (init:118) - ============================================================================================================================================================= 2021-01-07 21:22:29,282 (151f7cc37700) : INFO (init:119) - search_with_api() - dir: /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney, filename: /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney/02 - The Lion King - Can You Feel The Love Tonight (French version) [2isCyeEScoI].mp4 2021-01-07 21:22:29,282 (151f7cc37700) : INFO (init:146) - search() - YouTube ID not found - regex: "YOUTUBE_REGEX_PLAYLIST" 2021-01-07 21:22:29,282 (151f7cc37700) : INFO (init:146) - search() - YouTube ID not found - regex: "YOUTUBE_REGEX_CHANNEL" 2021-01-07 21:22:29,283 (151f7cc37700) : INFO (init:126) - search() - YouTube ID found - regex: YOUTUBE_REGEXVIDEO, youtube ID: "2isCyeEScoI" 2021-01-07 21:22:29,284 (151f7cc37700) : DEBUG (runtime:88) - Sending packed state data (107 bytes) 2021-01-07 21:22:29,284 (151f7cc37700) : DEBUG (runtime:924) - Response: [200] str, 648 bytes 2021-01-07 21:22:29,309 (151f7cc37700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxNzg4M3M0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczYzCmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXwyaXNDeWVFU2NvSXxEaXNuZXk%40bGFuZz14bnM0Cmd1aWRzMjYKeW91dHViZXwyaXNDeWVFU2NvSXxEaXNuZXlzMgppZHIwCg_ 2021-01-07 21:22:29,311 (151f7cc37700) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxNzg4M3M0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczYzCmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXwyaXNDeWVFU2NvSXxEaXNuZXk@bGFuZz14bnM0Cmd1aWRzMjYKeW91dHViZXwyaXNDeWVFU2NvSXxEaXNuZXlzMgppZHIwCg 2021-01-07 21:22:29,312 (151f7cc37700) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|2isCyeEScoI|Disney?lang=xn 2021-01-07 21:22:29,313 (151f7cc37700) : DEBUG (model:234) - Deserializing from /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/e/04a917bd12bafece4dc8c0ad38f7cccdad15103.bundle/Contents/com.plexapp.agents.youtube/Info.xml 2021-01-07 21:22:29,319 (151f7cc37700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/17883/tree' 2021-01-07 21:22:29,322 (151f7cc37700) : INFO (init:386) - update() 2021-01-07 21:22:29,322 (151f7cc37700) : INFO (init:61) - /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney/01 - The Lion King - I Just Can't Wait To Be King (French version) [HBwZPozCmGA].mp4 2021-01-07 21:22:29,323 (151f7cc37700) : INFO (init:486) - ============================================================================================================================================================= 2021-01-07 21:22:29,323 (151f7cc37700) : INFO (init:486) - update() using api - guid: 2isCyeEScoI, dir: /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney, metadata.id: youtube|2isCyeEScoI|Disney 2021-01-07 21:22:29,323 (151f7cc37700) : INFO (init:73) - [!] Library access denied 2021-01-07 21:22:29,323 (151f7cc37700) : INFO (init:81) - [!] ASS root scanner file missing: "/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/root.scanner.log" 2021-01-07 21:22:29,324 (151f7cc37700) : INFO (init:462) - [ ] dir: "/movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney" 2021-01-07 21:22:29,324 (151f7cc37700) : INFO (init:463) - [ ] library: "" 2021-01-07 21:22:29,324 (151f7cc37700) : INFO (init:464) - [ ] root: "/movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney" 2021-01-07 21:22:29,324 (151f7cc37700) : INFO (init:465) - [ ] path: "" 2021-01-07 21:22:29,324 (151f7cc37700) : INFO (init:470) - [ ] series_root_folder: "/movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney/" 2021-01-07 21:22:29,325 (151f7cc37700) : INFO (init:471) - [ ] subfolder_count: "0" 2021-01-07 21:22:29,325 (151f7cc37700) : INFO (init:494) - Grouping folder not found or single folder, root: /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney, path: , Grouping folder: , subdirs: 0, reverse_path: [''] 2021-01-07 21:22:29,325 (151f7cc37700) : INFO (init:585) - after 2021-01-07 21:22:29,325 (151f7cc37700) : INFO (init:641) - ============================================================================================================================================================= 2021-01-07 21:22:29,325 (151f7cc37700) : INFO (init:642) - Season: 1 2021-01-07 21:22:29,325 (151f7cc37700) : INFO (init:650) - metadata.seasons[ 1].episodes[ 1] "01 - The Lion King - I Just Can't Wait To Be King (French version) [HBwZPozCmGA].mp4" 2021-01-07 21:22:29,325 (151f7cc37700) : INFO (init:274) - populate_episode_metadata_from_api() - filename: 01 - The Lion King - I Just Can't Wait To Be King (French version) [HBwZPozCmGA].mp4 2021-01-07 21:22:29,326 (151f7cc37700) : INFO (init:281) - # videoId [HBwZPozCmGA] not in Playlist/channel item list so loading video_details 2021-01-07 21:22:29,327 (151f7cc37700) : DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=HBwZPozCmGA&key=AIzaSyC2q8yjciNdlYRNdvwbb7NEcDxBkv1Cass' from the HTTP cache 2021-01-07 21:22:29,328 (151f7cc37700) : DEBUG (networking:143) - Requesting 'https://i.ytimg.com/vi/HBwZPozCmGA/sddefault.jpg' 2021-01-07 21:22:29,468 (151f7cc37700) : DEBUG (networking:175) - Not caching 'https://i.ytimg.com/vi/HBwZPozCmGA/sddefault.jpg' (content type 'image/jpeg' not cacheable in Agent plug-ins) 2021-01-07 21:22:29,469 (151f7cc37700) : INFO (init:292) - [ ] title: "Le Roi Lion - Je voudrais déjà être roi I Disney" 2021-01-07 21:22:29,469 (151f7cc37700) : INFO (init:293) - [ ] summary: "Découvrez la chanson "Je voudrais déjà être roi" extraite du film Disney Le Roi Lion ! Ouvrez la description pour voir les paroles.. . Toutes les musiques #LeRoiLion :. https://www.youtube.com/watch?v=v34w65U98gI&list=PLU5-6mn9YBf3kuA8wVcYFkiAxRtXF6Jbz. . ► Toutes les chansons des grands classiques #Disney :. https://www.youtube.com/playlist?list=PLU5-6mn9YBf2GRSsGqTnr4Hmosr7zaqck. . ► Retrouvez les extraits, bonus et reportages du Roi Lion :. https://www.youtube.com/watch?v=EwJ-pPVXnyk&list=PL76A0FF68EA8254D3. . ► Abonnez-vous pour ne rien rater de l'actualité française de Disney !. http://bit.ly/AbonnementDisney. . ► Découvrez les bandes annonces de nos prochains films Disney et Disney.Pixar :. https://www.youtube.com/playlist?list=PLU5-6mn9YBf32hunKCBytmHP8-UyN2iC-. . ► Découvrez nos collections de produits Disney, Marvel et Star Wars sur :. https://www.shopdisney.fr/. . [Paroles]. C'est moi Simba. C'est moi le Roi. Du royaume animal. . C'est la première fois qu'on voit un Roi. Avec si peu de poils. . Je vais faire dans la cour des grands. Une entrée triomphale. En poussant très royalement. Un rugissement bestial. . Majesté, tu ne te mouches pas du coude. . Je voudrais déjà être Roi !. . Tu as encore un long chemin à faire. Votre altesse. Tu peux me croire !. . Au Roi on ne dit pas. . D'ailleurs quand je dis ça, je ! ! !. . Tiens ta langue et tais-toi. . Ce que j'essaie de dire c'est ! ! !. . Surtout ne fais pas ça. . Il faut que tu comprennes ! ! !. . Restes ici, assieds-toi. . Restez ici !. . Sans jamais dire où je vais. . Ce lion a une tête de mule. . Je veux faire ce qui me plaît. . Il est grand temps votre grandeur. Qu'on parle de cœur à cœur. . Le Roi n'a que faire des conseils. D'une vieille corneille. . Si tu confonds la monarchie. Avec la tyrannie. Vive la République. Adieu l'Afrique. Je ferme la boutique. Prends garde Lion. Ne te trompe pas de voie. . Je voudrais déjà être Roi. . Regardez bien à l'ouest. . Oh ! pitié ! Au secours !. . Regardez bien à l'est. . Non ! non ! oh !. . Mon pouvoir sans conteste. Et sans frontières. . Pas encore. . C'est une rumeur qui monte jusqu'au ciel. Les animaux répandent la nouvelle. Simba sera le nouveau Roi Soleil. . Je voudrais déjà être Roi. Je voudrais déjà être Roi. Je voudrais déjà être Roi. . ----------------------------------------------------------. . Laissez-vous emporter par la magie... Bienvenue sur la chaîne YouTube officielle de Disney !. Des Aristochats au Roi Lion, en passant par La Reine des Neiges ou Vaiana, la légende du bout du monde : toutes les chansons des Grands Classiques Disney sont là !. Apprenez-en plus sur nos films à venir : bandes-annonces, extraits, bonus et bien plus encore !. . Visitez notre site : https://disney.fr. Instagram : https://www.instagram.com/DisneyFR. Facebook : https://www.facebook.com/disneyfrance. Twitter : https://twitter.com/disneyfr. . #Disney #LeRoiLion" 2021-01-07 21:22:29,470 (151f7cc37700) : INFO (init:294) - [ ] date: "2014-12-08T10:16:44Z" 2021-01-07 21:22:29,470 (151f7cc37700) : INFO (init:296) - [ ] rating: "8.31113443665" 2021-01-07 21:22:29,470 (151f7cc37700) : INFO (init:297) - [ ] thumbs: "https://i.ytimg.com/vi/HBwZPozCmGA/sddefault.jpg" 2021-01-07 21:22:29,470 (151f7cc37700) : INFO (init:299) - [ ] duration: "PT2M47S"->"167000" 2021-01-07 21:22:29,470 (151f7cc37700) : INFO (init:304) - [ ] director: "Disney FR" 2021-01-07 21:22:29,470 (151f7cc37700) : INFO (init:311) - [ ] posters: https://i.ytimg.com/vi/HBwZPozCmGA/sddefault.jpg 2021-01-07 21:22:29,471 (151f7cc37700) : INFO (init:313) - [ ] genres: "[u'walt disney studios', u'je voudrais d\xe9j\xe0 \xeatre roi le roi lion paroles', u'pumba', u'en fran\xe7ais', u"chanson simba c'est moi le roi", u'simba roi', u'lion', u'simba chante', u'simba', u'Disney', u'je voudrais d\xe9j\xe0 \xeatre roi paroles', u'chanson disney', u'chanson', u'chanson simba', u'disney france', u'france', u'chansons de disney', u'je voudrais d\xe9j\xe0 \xeatre roi', u'scar', u'pixar', u'timon', u'simba lion', u'paroles', u'roi lion', u'mufasa', u'chanson disney parole', u'nala', u'french', u'paroles chanson', u'simba le roilion', u'officiel', u'le roi lion', u'musique', u'musique disney', u'Film & Animation']" 2021-01-07 21:22:29,471 (151f7cc37700) : INFO (init:650) - metadata.seasons[ 1].episodes[ 2] "02 - The Lion King - Can You Feel The Love Tonight (French version) [2isCyeEScoI].mp4" 2021-01-07 21:22:29,471 (151f7cc37700) : INFO (init:274) - populate_episode_metadata_from_api() - filename: 02 - The Lion King - Can You Feel The Love Tonight (French version) [2isCyeEScoI].mp4 2021-01-07 21:22:29,471 (151f7cc37700) : INFO (init:281) - # videoId [2isCyeEScoI] not in Playlist/channel item list so loading video_details 2021-01-07 21:22:29,472 (151f7cc37700) : DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=2isCyeEScoI&key=AIzaSyC2q8yjciNdlYRNdvwbb7NEcDxBkv1Cass' from the HTTP cache 2021-01-07 21:22:29,474 (151f7cc37700) : DEBUG (networking:143) - Requesting 'https://i.ytimg.com/vi/2isCyeEScoI/sddefault.jpg' 2021-01-07 21:22:29,590 (151f7cc37700) : DEBUG (networking:175) - Not caching 'https://i.ytimg.com/vi/2isCyeEScoI/sddefault.jpg' (content type 'image/jpeg' not cacheable in Agent plug-ins) 2021-01-07 21:22:29,591 (151f7cc37700) : INFO (init:292) - [ ] title: "Le Roi Lion - L'amour brille sous les étoiles | Disney" 2021-01-07 21:22:29,592 (151f7cc37700) : INFO (init:293) - [ ] summary: "Découvrez la chanson "L'amour brille sous les étoiles" extraite du film Disney Le Roi Lion ! Ouvrez la description pour voir les paroles.. . Toutes les musiques #LeRoiLion :. https://www.youtube.com/watch?v=v34w65U98gI&list=PLU5-6mn9YBf3kuA8wVcYFkiAxRtXF6Jbz. . ► Toutes les chansons des grands classiques #Disney :. https://www.youtube.com/playlist?list=PLU5-6mn9YBf2GRSsGqTnr4Hmosr7zaqck. . ► Retrouvez les extraits, bonus et reportages du Roi Lion :. https://www.youtube.com/watch?v=EwJ-pPVXnyk&list=PL76A0FF68EA8254D3. . ► Abonnez-vous pour ne rien rater de l'actualité française de Disney !. http://bit.ly/AbonnementDisney. . ► Découvrez les bandes annonces de nos prochains films Disney et Disney.Pixar :. https://www.youtube.com/playlist?list=PLU5-6mn9YBf32hunKCBytmHP8-UyN2iC-. . ► Découvrez nos collections de produits Disney, Marvel et Star Wars sur :. https://www.shopdisney.fr/. . [Paroles]. C'est terrible, c'est affreux. Quoi ?. . Et il se moque de tout. Qui ?. . L'amour s'amène et nous pauvres pouilleux. Il nous jette tous les deux. Oh. . Sous les diamants des étoiles,. Quel magique univers !. Mais, dans cette romantique atmosphère,. Ça sent mauvais dans l'air !. . L'Amour brille sous les étoiles,. D'une étrange lumière !. La Terre entière, en parfaite harmonie,. Vit un moment royal !. . Je voudrais lui dire ""Je t'aime"". Mais comment lui avouer?. Mon secret, mes problèmes ?. Impossible, elle serait trop blessée !. . Quel lourd secret cache-t-il,. Derrière tant de rancœur ?. Moi je sais qu'il est ce roi en exil. Qui règne dans mon cœur !. . L'Amour brille sous les étoiles,. D'une étrange lumière !. La Terre entière, en parfaite harmonie,. Vit sa plus belle histoire !. . L'Amour brille sous les étoiles,. Illuminant leurs coeurs !. Sa lumière éclaire à l'infini,. Un sublime espoir !. . S'ils s'enfuient vers leur rêve, ce soir,. Dans leur folle ronde !. . Si notre ami nous dit ""Au revoir"" ! ! !. ! ! !nous serons seuls au monde !. . ----------------------------------------------------------. . Laissez-vous emporter par la magie... Bienvenue sur la chaîne YouTube officielle de Disney !. Des Aristochats au Roi Lion, en passant par La Reine des Neiges ou Vaiana, la légende du bout du monde : toutes les chansons des Grands Classiques Disney sont là !. Apprenez-en plus sur nos films à venir : bandes-annonces, extraits, bonus et bien plus encore !. . Visitez notre site : https://disney.fr. Instagram : https://www.instagram.com/DisneyFR. Facebook : https://www.facebook.com/disneyfrance. Twitter : https://twitter.com/disneyfr. . #Disney #LeRoiLion" 2021-01-07 21:22:29,592 (151f7cc37700) : INFO (init:294) - [ ] date: "2014-12-08T10:17:39Z" 2021-01-07 21:22:29,592 (151f7cc37700) : INFO (init:296) - [ ] rating: "9.13790939063" 2021-01-07 21:22:29,593 (151f7cc37700) : INFO (init:297) - [ ] thumbs: "https://i.ytimg.com/vi/2isCyeEScoI/sddefault.jpg" 2021-01-07 21:22:29,593 (151f7cc37700) : INFO (init:299) - [ ] duration: "PT2M53S"->"173000" 2021-01-07 21:22:29,593 (151f7cc37700) : INFO (init:304) - [ ] director: "Disney FR" 2021-01-07 21:22:29,593 (151f7cc37700) : INFO (init:311) - [ ] posters: https://i.ytimg.com/vi/2isCyeEScoI/sddefault.jpg 2021-01-07 21:22:29,594 (151f7cc37700) : INFO (init:313) - [ ] genres: "[u'walt disney studios', u'je voudrais d\xe9j\xe0 \xeatre roi le roi lion paroles', u'pumba', u'en fran\xe7ais', u"chanson simba c'est moi le roi", u'simba roi', u'lion', u'simba chante', u'simba', u'Disney', u'je voudrais d\xe9j\xe0 \xeatre roi paroles', u'chanson disney', u'chanson', u'chanson simba', u'disney france', u'france', u'chansons de disney', u'je voudrais d\xe9j\xe0 \xeatre roi', u'scar', u'pixar', u'timon', u'simba lion', u'paroles', u'roi lion', u'mufasa', u'chanson disney parole', u'nala', u'french', u'paroles chanson', u'simba le roilion', u'officiel', u'le roi lion', u'musique', u'musique disney', u'Film & Animation']" 2021-01-07 21:22:29,594 (151f7cc37700) : INFO (init:676) - ============================================================================================================================================================= 2021-01-07 21:22:29,597 (151f7cc37700) : DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/e/04a917bd12bafece4dc8c0ad38f7cccdad15103.bundle/Contents/com.plexapp.agents.youtube/Info.xml 2021-01-07 21:22:29,598 (151f7cc37700) : DEBUG (runtime:88) - Sending packed state data (107 bytes) 2021-01-07 21:22:29,598 (151f7cc37700) : DEBUG (runtime:924) - Response: [200] str, 16 bytes

ZeroQI commented 3 years ago

I didn't support random videos in a folder without playlist or channel id.

Requirements

Do create your own YouTube API key and replace in ASS code and agent settings Please use the Absolute Series Scanner to scan your media and leave the YouTube id in the series/movie title leave the YouTube video ID on every file Playlist (preffered) id OR Channel id on series foldername (as Search() need to assign an id to the series)

Added support now for folder as series title in the absence of channel and playlist id but cannot test so please test and report Your logs may have problems with logs due to missing plextoken file:

2021-01-07 21:22:26,276 (151f85b2fc00) : INFO (init:729) - Place correct Plex token in X-Plex-Token.id file in logs folder or in PLEX_LIBRARY_URL variable to have a log per library - https://support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-TokenHTTP Error 401: Unauthorized

JamesDAdams commented 3 years ago

I didn't support random videos in a folder without playlist or channel id.

Requirements Do create your own YouTube API key and replace in ASS code and agent settings Please use the Absolute Series Scanner to scan your media and leave the YouTube id in the series/movie title leave the YouTube video ID on every file Playlist (preffered) id OR Channel id on series foldername (as Search() need to assign an id to the series)

Added support now for folder as series title in the absence of channel and playlist id but cannot test so please test and report Your logs may have problems with logs due to missing plextoken file:

2021-01-07 21:22:26,276 (151f85b2fc00) : INFO (init:729) - Place correct Plex token in X-Plex-Token.id file in logs folder or in PLEX_LIBRARY_URL variable to have a log per library - https://support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-TokenHTTP Error 401: Unauthorized

Ok, i add the Token and I no longer have the 401 error, i add your code

results.Append( MetadataSearchResult( id='youtube|{}|{}'.format(guid,dir), name=os.path.basename(os.path.dirname(filename)), year=None, score=100, lang=lang ) )

but nothing change.

My Log:

2021-01-08 00:34:19,547 (15227a56fc00) : INFO (core:349) - Starting framework core - Version: 2.6.3, Build: a78fef9 (Thu Aug 27 09:10:02 UTC 2020) 2021-01-08 00:34:19,547 (15227a56fc00) : DEBUG (core:361) - Using the elevated policy 2021-01-08 00:34:19,548 (15227a56fc00) : DEBUG (core:450) - Starting runtime component. 2021-01-08 00:34:19,549 (15227a56fc00) : DEBUG (core:450) - Starting caching component. 2021-01-08 00:34:19,550 (15227a56fc00) : DEBUG (core:450) - Starting data component. 2021-01-08 00:34:19,550 (15227a56fc00) : DEBUG (core:450) - Starting networking component. 2021-01-08 00:34:19,550 (15227a56fc00) : DEBUG (networking:261) - Loaded HTTP cookies 2021-01-08 00:34:19,551 (15227a56fc00) : DEBUG (networking:428) - Setting the default network timeout to 20.0 2021-01-08 00:34:19,551 (15227a56fc00) : DEBUG (core:450) - Starting localization component. 2021-01-08 00:34:19,552 (15227a56fc00) : INFO (localization:409) - Setting the default locale to en-us 2021-01-08 00:34:19,552 (15227a56fc00) : DEBUG (core:450) - Starting messaging component. 2021-01-08 00:34:19,552 (15227a56fc00) : DEBUG (core:450) - Starting debugging component. 2021-01-08 00:34:19,553 (15227a56fc00) : DEBUG (core:450) - Starting services component. 2021-01-08 00:34:19,553 (152271677700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.youtube' 2021-01-08 00:34:19,553 (15227a56fc00) : DEBUG (core:450) - Starting myplex component. 2021-01-08 00:34:19,554 (15227a56fc00) : DEBUG (core:450) - Starting notifications component. 2021-01-08 00:34:19,631 (15227a56fc00) : DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.youtube in namespace 'metadata' 2021-01-08 00:34:19,634 (15227a56fc00) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes' 2021-01-08 00:34:19,646 (152271677700) : DEBUG (services:265) - Plug-in is not daemonized - loading services from system 2021-01-08 00:34:19,646 (15227a56fc00) : DEBUG (runtime:1117) - Created a thread named 'load_allservices' 2021-01-08 00:34:19,647 (152271677700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMApyMAo' 2021-01-08 00:34:19,648 (15227a56fc00) : DEBUG (runtime:1117) - Created a thread named 'get_server_info' 2021-01-08 00:34:19,649 (15227a56fc00) : DEBUG (core:150) - Finished starting framework core 2021-01-08 00:34:19,649 (1522711b5700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400' 2021-01-08 00:34:19,649 (15227a56fc00) : DEBUG (core:560) - Loading plug-in code 2021-01-08 00:34:19,669 (1522711b5700) : DEBUG (core:538) - Machine identifier is 33166f225d0a9571c7629acb8badf627c93e9f7f 2021-01-08 00:34:19,671 (1522711b5700) : DEBUG (core:539) - Server version is 1.20.1.3252-a78fef9a9 2021-01-08 00:34:19,825 (152271677700) : DEBUG (services:362) - Loaded services 2021-01-08 00:34:19,839 (1522713b6700) : DEBUG (services:438) - No shared code to load 2021-01-08 00:34:20,008 (15227a56fc00) : DEBUG (core:566) - Finished loading plug-in code 2021-01-08 00:34:20,008 (15227a56fc00) : DEBUG (agentkit:1132) - Creating new agent class called YouTubeSeriesAgent 2021-01-08 00:34:20,008 (15227a56fc00) : DEBUG (agentkit:937) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': None, 'contributes_to': None, 'languages': ['xn'], 'persist_stored_files': True, 'version': 0, 'primaryprovider': True, 'prefs': True, 'name': 'YouTubeSeries'}] 2021-01-08 00:34:20,008 (15227a56fc00) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQo2CmRpY3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0CjIKczI2CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlczEwCmlkZW50aWZpZXJyMQpzMTAKYWdlbnRfaW5mbzEKcjIKMTAKcjMKczExCm1lZGlhX3R5cGVzcjQKczEyCmFjY2VwdHNfZnJvbW5zMTQKZmFsbGJhY2tfYWdlbnRuczE0CmNvbnRyaWJ1dGVzX3RvcjUKczkKbGFuZ3VhZ2VzYjFzMjAKcGVyc2lzdF9zdG9yZWRfZmlsZXNpMApzNwp2ZXJzaW9uYjFzMTYKcHJpbWFyeV9wcm92aWRlcmIxczUKcHJlZnNzMTMKWW91VHViZVNlcmllc3M0Cm5hbWUxCnM3ClRWX1Nob3cxCnMyOQpjb20ucGxleGFwcC5hZ2VudHMubG9jYWxtZWRpYTEKczIKeG5yMAo_' 2021-01-08 00:34:20,015 (15227a56fc00) : DEBUG (agentkit:1132) - Creating new agent class called YouTubeMovieAgent 2021-01-08 00:34:20,015 (15227a56fc00) : DEBUG (agentkit:937) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': None, 'contributes_to': None, 'languages': ['xn'], 'persist_stored_files': True, 'version': 0, 'primary_provider': True, 'prefs': True, 'name': 'YouTubeSeries'}, {'media_types': ['Movie'], 'accepts_from': ['com.plexapp.agents.localmedia'], 'fallback_agent': None, 'contributes_to': None, 'languages': ['xn'], 'persist_stored_files': True, 'version': 0, 'primaryprovider': True, 'prefs': True, 'name': 'YouTubeMovie'}] 2021-01-08 00:34:20,015 (15227a56fc00) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxMApkaWN0Cmxpc3QKZGljdApsaXN0Cmxpc3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0CjIKczI2CmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlczEwCmlkZW50aWZpZXJyMQpzMTAKYWdlbnRfaW5mbzIKcjIKcjYKMTAKcjMKczExCm1lZGlhX3R5cGVzcjQKczEyCmFjY2VwdHNfZnJvbW5zMTQKZmFsbGJhY2tfYWdlbnRuczE0CmNvbnRyaWJ1dGVzX3RvcjUKczkKbGFuZ3VhZ2VzYjFzMjAKcGVyc2lzdF9zdG9yZWRfZmlsZXNpMApzNwp2ZXJzaW9uYjFzMTYKcHJpbWFyeV9wcm92aWRlcmIxczUKcHJlZnNzMTMKWW91VHViZVNlcmllc3M0Cm5hbWUxCnM3ClRWX1Nob3cxCnMyOQpjb20ucGxleGFwcC5hZ2VudHMubG9jYWxtZWRpYTEKczIKeG4xMApyNwpzMTEKbWVkaWFfdHlwZXNyOApzMTIKYWNjZXB0c19mcm9tbnMxNApmYWxsYmFja19hZ2VudG5zMTQKY29udHJpYnV0ZXNfdG9yOQpzOQpsYW5ndWFnZXNiMXMyMApwZXJzaXN0X3N0b3JlZF9maWxlc2kwCnM3CnZlcnNpb25iMXMxNgpwcmltYXJ5X3Byb3ZpZGVyYjFzNQpwcmVmc3MxMgpZb3VUdWJlTW92aWVzNApuYW1lMQpzNQpNb3ZpZTEKczI5CmNvbS5wbGV4YXBwLmFnZW50cy5sb2NhbG1lZGlhMQpzMgp4bnIwCg' 2021-01-08 00:34:20,021 (15227a56fc00) : INFO (init:718) - Library: /config/Library/Application Support/Plex Media Server 2021-01-08 00:34:20,022 (15227a56fc00) : INFO (init:720) - 'X-Plex-Token.id' file present 2021-01-08 00:34:20,024 (15227a56fc00) : INFO (init:728) - /movies/Videos/Animes = Animées 2021-01-08 00:34:20,025 (15227a56fc00) : INFO (init:728) - /movies/Videos/Animes Kai = Animées Kai 2021-01-08 00:34:20,025 (15227a56fc00) : INFO (init:728) - /movies/Videos/Films = Films 2021-01-08 00:34:20,025 (15227a56fc00) : INFO (init:728) - /movies/Videos/Films 4K = Films 4K 2021-01-08 00:34:20,025 (15227a56fc00) : INFO (init:728) - /movies/Audio/Livres audio = Livre Audio 2021-01-08 00:34:20,025 (15227a56fc00) : INFO (init:728) - /movies/Audio/Musiques = Musique 2021-01-08 00:34:20,025 (15227a56fc00) : INFO (init:728) - /movies/Videos/Series = Séries 2021-01-08 00:34:20,025 (15227a56fc00) : INFO (init:728) - /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists = Séries TV 2021-01-08 00:34:20,025 (15227a56fc00) : INFO (init:728) - /movies/Videos/Spectacles = Spectacles 2021-01-08 00:34:20,026 (15227a56fc00) : INFO (init:728) - /movies/Videos/Youtube/Youtube-DL-Subscribe/channels = Youtube 2021-01-08 00:34:20,026 (15227a56fc00) : INFO (init:728) - /movies/Videos/Youtube/Youtube-DL-Subscribe/playlists = Youtube 2021-01-08 00:34:20,026 (15227a56fc00) : INFO (core:611) - Started plug-in 2021-01-08 00:34:20,026 (15227a56fc00) : DEBUG (socketinterface:160) - Starting socket server 2021-01-08 00:34:20,026 (15227a56fc00) : DEBUG (runtime:1117) - Created a thread named 'start' 2021-01-08 00:34:20,027 (15227a56fc00) : INFO (socketinterface:184) - Socket server started on port 33211 2021-01-08 00:34:20,027 (15227a56fc00) : INFO (pipeinterface:25) - Entering run loop 2021-01-08 00:34:20,027 (15227a56fc00) : DEBUG (runtime:717) - Handling request GET /:/prefixes 2021-01-08 00:34:20,028 (15227a56fc00) : DEBUG (runtime:814) - Found route matching /:/prefixes 2021-01-08 00:34:20,029 (15227a56fc00) : DEBUG (runtime:924) - Response: [200] MediaContainer, 151 bytes 2021-01-08 00:34:20,030 (152271677700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/prefs 2021-01-08 00:34:20,039 (152271677700) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/prefs 2021-01-08 00:34:20,039 (152271677700) : DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json 2021-01-08 00:34:20,040 (152271677700) : DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.agents.youtube 2021-01-08 00:34:20,041 (152271677700) : DEBUG (runtime:88) - Sending packed state data (107 bytes) 2021-01-08 00:34:20,041 (152271677700) : DEBUG (runtime:924) - Response: [200] MediaContainer, 816 bytes 2021-01-08 00:34:20,878 (152271677700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTkKczE2CjIzYzdlZGY2OTBjOGUzMzhzMTcKb3BlblN1YnRpdGxlc0hhc2hzMQoyczcKZXBpc29kZXMxCjFzOAplcGlzb2RpY3M2CkRpc25leXM0CnNob3dzMQoxczYKc2Vhc29uczIxMwolMkZtb3ZpZXMlMkZWaWRlb3MlMkZZb3V0dWJlVGVzdCUyRllvdXR1YmVETCUyRmFwcCUyRnN1YnNjcmlwdGlvbnMlMkZwbGF5bGlzdHMlMkZEaXNuZXklMkYwMiUyMC0lMjBUaGUlMjBMaW9uJTIwS2luZyUyMC0lMjBDYW4lMjBZb3UlMjBGZWVsJTIwVGhlJTIwTG92ZSUyMFRvbmlnaHQlMjAlMjhGcmVuY2glMjB2ZXJzaW9uJTI5JTIwJTVCMmlzQ3llRVNjb0klNUQlMkVtcDRzOApmaWxlbmFtZXM0MAoyMWZiOGY2ODQxYTkyMmI0MDg1ODM4YmU3ZGM1OWViMTIzNmUxMGE4czgKcGxleEhhc2hzMgotMXM4CmR1cmF0aW9uczUKMTc5MzFzMgppZHIwCg 2021-01-08 00:34:20,879 (152271677700) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlNlYXJjaA/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTkKczE2CjIzYzdlZGY2OTBjOGUzMzhzMTcKb3BlblN1YnRpdGxlc0hhc2hzMQoyczcKZXBpc29kZXMxCjFzOAplcGlzb2RpY3M2CkRpc25leXM0CnNob3dzMQoxczYKc2Vhc29uczIxMwolMkZtb3ZpZXMlMkZWaWRlb3MlMkZZb3V0dWJlVGVzdCUyRllvdXR1YmVETCUyRmFwcCUyRnN1YnNjcmlwdGlvbnMlMkZwbGF5bGlzdHMlMkZEaXNuZXklMkYwMiUyMC0lMjBUaGUlMjBMaW9uJTIwS2luZyUyMC0lMjBDYW4lMjBZb3UlMjBGZWVsJTIwVGhlJTIwTG92ZSUyMFRvbmlnaHQlMjAlMjhGcmVuY2glMjB2ZXJzaW9uJTI5JTIwJTVCMmlzQ3llRVNjb0klNUQlMkVtcDRzOApmaWxlbmFtZXM0MAoyMWZiOGY2ODQxYTkyMmI0MDg1ODM4YmU3ZGM1OWViMTIzNmUxMGE4czgKcGxleEhhc2hzMgotMXM4CmR1cmF0aW9uczUKMTc5MzFzMgppZHIwCg 2021-01-08 00:34:20,880 (152271677700) : INFO (agentkit:961) - Searching for matches for {'openSubtitlesHash': '23c7edf690c8e338', 'episode': '2', 'episodic': '1', 'show': 'Disney', 'season': '1', 'filename': '%2Fmovies%2FVideos%2FYoutubeTest%2FYoutubeDL%2Fapp%2Fsubscriptions%2Fplaylists%2FDisney%2F02%20-%20The%20Lion%20King%20-%20Can%20You%20Feel%20The%20Love%20Tonight%20%28French%20version%29%20%5B2isCyeEScoI%5D%2Emp4', 'plexHash': '21fb8f6841a922b4085838be7dc59eb1236e10a8', 'duration': '-1', 'id': '17931'} 2021-01-08 00:34:20,880 (152271677700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/17931/tree' 2021-01-08 00:34:20,884 (152271677700) : INFO (init:61) - /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney/01 - The Lion King - I Just Can't Wait To Be King (French version) [HBwZPozCmGA].mp4 2021-01-08 00:34:20,884 (152271677700) : INFO (init:118) - ============================================================================================================================================================= 2021-01-08 00:34:20,884 (152271677700) : INFO (init:119) - search_with_api() - dir: /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney, filename: /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney/02 - The Lion King - Can You Feel The Love Tonight (French version) [2isCyeEScoI].mp4 2021-01-08 00:34:20,885 (152271677700) : INFO (init:146) - search() - YouTube ID not found - regex: "YOUTUBE_REGEX_PLAYLIST" 2021-01-08 00:34:20,885 (152271677700) : INFO (init:146) - search() - YouTube ID not found - regex: "YOUTUBE_REGEX_CHANNEL" 2021-01-08 00:34:20,885 (152271677700) : INFO (init:126) - search() - YouTube ID found - regex: YOUTUBE_REGEXVIDEO, youtube ID: "2isCyeEScoI" 2021-01-08 00:34:20,886 (152271677700) : DEBUG (runtime:88) - Sending packed state data (107 bytes) 2021-01-08 00:34:20,886 (152271677700) : DEBUG (runtime:924) - Response: [200] str, 648 bytes 2021-01-08 00:34:20,909 (152271677700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxNzkzMXM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczYzCmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXwyaXNDeWVFU2NvSXxEaXNuZXk%40bGFuZz14bnM0Cmd1aWRzMjYKeW91dHViZXwyaXNDeWVFU2NvSXxEaXNuZXlzMgppZHIwCg_ 2021-01-08 00:34:20,911 (152271677700) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.youtube/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxNzkzMXM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczYzCmNvbS5wbGV4YXBwLmFnZW50cy55b3V0dWJlOi8veW91dHViZXwyaXNDeWVFU2NvSXxEaXNuZXk@bGFuZz14bnM0Cmd1aWRzMjYKeW91dHViZXwyaXNDeWVFU2NvSXxEaXNuZXlzMgppZHIwCg 2021-01-08 00:34:20,911 (152271677700) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.youtube://youtube|2isCyeEScoI|Disney?lang=xn 2021-01-08 00:34:20,912 (152271677700) : DEBUG (model:234) - Deserializing from /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/e/04a917bd12bafece4dc8c0ad38f7cccdad15103.bundle/Contents/com.plexapp.agents.youtube/Info.xml 2021-01-08 00:34:20,918 (152271677700) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/17931/tree' 2021-01-08 00:34:20,921 (152271677700) : INFO (init:386) - update() 2021-01-08 00:34:20,922 (152271677700) : INFO (init:61) - /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney/01 - The Lion King - I Just Can't Wait To Be King (French version) [HBwZPozCmGA].mp4 2021-01-08 00:34:20,922 (152271677700) : INFO (init:439) - ============================================================================================================================================================= 2021-01-08 00:34:20,922 (152271677700) : INFO (init:443) - update() using api - guid: 2isCyeEScoI, dir: /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney, metadata.id: youtube|2isCyeEScoI|Disney 2021-01-08 00:34:20,922 (152271677700) : INFO (init:462) - [ ] dir: "/movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney" 2021-01-08 00:34:20,922 (152271677700) : INFO (init:463) - [ ] library: "Séries TV" 2021-01-08 00:34:20,923 (152271677700) : INFO (init:464) - [ ] root: "/movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists" 2021-01-08 00:34:20,923 (152271677700) : INFO (init:465) - [ ] path: "Disney" 2021-01-08 00:34:20,923 (152271677700) : INFO (init:470) - [ ] series_root_folder: "/movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists/Disney" 2021-01-08 00:34:20,923 (152271677700) : INFO (init:471) - [ ] subfolder_count: "0" 2021-01-08 00:34:20,923 (152271677700) : INFO (init:494) - Grouping folder not found or single folder, root: /movies/Videos/YoutubeTest/YoutubeDL/app/subscriptions/playlists, path: Disney, Grouping folder: Disney, subdirs: 0, reverse_path: ['Disney'] 2021-01-08 00:34:20,924 (152271677700) : INFO (init:585) - after 2021-01-08 00:34:20,924 (152271677700) : INFO (init:641) - ============================================================================================================================================================= 2021-01-08 00:34:20,924 (152271677700) : INFO (init:642) - Season: 1 2021-01-08 00:34:20,924 (152271677700) : INFO (init:650) - metadata.seasons[ 1].episodes[ 1] "01 - The Lion King - I Just Can't Wait To Be King (French version) [HBwZPozCmGA].mp4" 2021-01-08 00:34:20,924 (152271677700) : INFO (init:274) - populate_episode_metadata_from_api() - filename: 01 - The Lion King - I Just Can't Wait To Be King (French version) [HBwZPozCmGA].mp4 2021-01-08 00:34:20,925 (152271677700) : INFO (init:281) - # videoId [HBwZPozCmGA] not in Playlist/channel item list so loading video_details 2021-01-08 00:34:20,926 (152271677700) : DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=HBwZPozCmGA&key=AIzaSyC2q8yjciNdlYRNdvwbb7NEcDxBkv1Cass' from the HTTP cache 2021-01-08 00:34:20,928 (152271677700) : DEBUG (networking:143) - Requesting 'https://i.ytimg.com/vi/HBwZPozCmGA/sddefault.jpg' 2021-01-08 00:34:21,068 (152271677700) : DEBUG (networking:175) - Not caching 'https://i.ytimg.com/vi/HBwZPozCmGA/sddefault.jpg' (content type 'image/jpeg' not cacheable in Agent plug-ins) 2021-01-08 00:34:21,068 (152271677700) : INFO (init:292) - [ ] title: "Le Roi Lion - Je voudrais déjà être roi I Disney" 2021-01-08 00:34:21,069 (152271677700) : INFO (init:293) - [ ] summary: "Découvrez la chanson "Je voudrais déjà être roi" extraite du film Disney Le Roi Lion ! Ouvrez la description pour voir les paroles.. . Toutes les musiques #LeRoiLion :. https://www.youtube.com/watch?v=v34w65U98gI&list=PLU5-6mn9YBf3kuA8wVcYFkiAxRtXF6Jbz. . ► Toutes les chansons des grands classiques #Disney :. https://www.youtube.com/playlist?list=PLU5-6mn9YBf2GRSsGqTnr4Hmosr7zaqck. . ► Retrouvez les extraits, bonus et reportages du Roi Lion :. https://www.youtube.com/watch?v=EwJ-pPVXnyk&list=PL76A0FF68EA8254D3. . ► Abonnez-vous pour ne rien rater de l'actualité française de Disney !. http://bit.ly/AbonnementDisney. . ► Découvrez les bandes annonces de nos prochains films Disney et Disney.Pixar :. https://www.youtube.com/playlist?list=PLU5-6mn9YBf32hunKCBytmHP8-UyN2iC-. . ► Découvrez nos collections de produits Disney, Marvel et Star Wars sur :. https://www.shopdisney.fr/. . [Paroles]. C'est moi Simba. C'est moi le Roi. Du royaume animal. . C'est la première fois qu'on voit un Roi. Avec si peu de poils. . Je vais faire dans la cour des grands. Une entrée triomphale. En poussant très royalement. Un rugissement bestial. . Majesté, tu ne te mouches pas du coude. . Je voudrais déjà être Roi !. . Tu as encore un long chemin à faire. Votre altesse. Tu peux me croire !. . Au Roi on ne dit pas. . D'ailleurs quand je dis ça, je ! ! !. . Tiens ta langue et tais-toi. . Ce que j'essaie de dire c'est ! ! !. . Surtout ne fais pas ça. . Il faut que tu comprennes ! ! !. . Restes ici, assieds-toi. . Restez ici !. . Sans jamais dire où je vais. . Ce lion a une tête de mule. . Je veux faire ce qui me plaît. . Il est grand temps votre grandeur. Qu'on parle de cœur à cœur. . Le Roi n'a que faire des conseils. D'une vieille corneille. . Si tu confonds la monarchie. Avec la tyrannie. Vive la République. Adieu l'Afrique. Je ferme la boutique. Prends garde Lion. Ne te trompe pas de voie. . Je voudrais déjà être Roi. . Regardez bien à l'ouest. . Oh ! pitié ! Au secours !. . Regardez bien à l'est. . Non ! non ! oh !. . Mon pouvoir sans conteste. Et sans frontières. . Pas encore. . C'est une rumeur qui monte jusqu'au ciel. Les animaux répandent la nouvelle. Simba sera le nouveau Roi Soleil. . Je voudrais déjà être Roi. Je voudrais déjà être Roi. Je voudrais déjà être Roi. . ----------------------------------------------------------. . Laissez-vous emporter par la magie... Bienvenue sur la chaîne YouTube officielle de Disney !. Des Aristochats au Roi Lion, en passant par La Reine des Neiges ou Vaiana, la légende du bout du monde : toutes les chansons des Grands Classiques Disney sont là !. Apprenez-en plus sur nos films à venir : bandes-annonces, extraits, bonus et bien plus encore !. . Visitez notre site : https://disney.fr. Instagram : https://www.instagram.com/DisneyFR. Facebook : https://www.facebook.com/disneyfrance. Twitter : https://twitter.com/disneyfr. . #Disney #LeRoiLion" 2021-01-08 00:34:21,070 (152271677700) : INFO (init:294) - [ ] date: "2014-12-08T10:16:44Z" 2021-01-08 00:34:21,070 (152271677700) : INFO (init:296) - [ ] rating: "8.31113443665" 2021-01-08 00:34:21,071 (152271677700) : INFO (init:297) - [ ] thumbs: "https://i.ytimg.com/vi/HBwZPozCmGA/sddefault.jpg" 2021-01-08 00:34:21,071 (152271677700) : INFO (init:299) - [ ] duration: "PT2M47S"->"167000" 2021-01-08 00:34:21,071 (152271677700) : INFO (init:304) - [ ] director: "Disney FR" 2021-01-08 00:34:21,071 (152271677700) : INFO (init:311) - [ ] posters: https://i.ytimg.com/vi/HBwZPozCmGA/sddefault.jpg 2021-01-08 00:34:21,071 (152271677700) : INFO (init:313) - [ ] genres: "[u'walt disney studios', u'je voudrais d\xe9j\xe0 \xeatre roi le roi lion paroles', u'pumba', u'en fran\xe7ais', u"chanson simba c'est moi le roi", u'simba roi', u'lion', u'simba chante', u'simba', u'Disney', u'je voudrais d\xe9j\xe0 \xeatre roi paroles', u'chanson disney', u'chanson', u'chanson simba', u'disney france', u'france', u'chansons de disney', u'je voudrais d\xe9j\xe0 \xeatre roi', u'scar', u'pixar', u'timon', u'simba lion', u'paroles', u'roi lion', u'mufasa', u'chanson disney parole', u'nala', u'french', u'paroles chanson', u'simba le roilion', u'officiel', u'le roi lion', u'musique', u'musique disney', u'Film & Animation']" 2021-01-08 00:34:21,072 (152271677700) : INFO (init:650) - metadata.seasons[ 1].episodes[ 2] "02 - The Lion King - Can You Feel The Love Tonight (French version) [2isCyeEScoI].mp4" 2021-01-08 00:34:21,072 (152271677700) : INFO (init:274) - populate_episode_metadata_from_api() - filename: 02 - The Lion King - Can You Feel The Love Tonight (French version) [2isCyeEScoI].mp4 2021-01-08 00:34:21,072 (152271677700) : INFO (init:281) - # videoId [2isCyeEScoI] not in Playlist/channel item list so loading video_details 2021-01-08 00:34:21,073 (152271677700) : DEBUG (networking:138) - Fetching 'https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=2isCyeEScoI&key=AIzaSyC2q8yjciNdlYRNdvwbb7NEcDxBkv1Cass' from the HTTP cache 2021-01-08 00:34:21,075 (152271677700) : DEBUG (networking:143) - Requesting 'https://i.ytimg.com/vi/2isCyeEScoI/sddefault.jpg' 2021-01-08 00:34:21,187 (152271677700) : DEBUG (networking:175) - Not caching 'https://i.ytimg.com/vi/2isCyeEScoI/sddefault.jpg' (content type 'image/jpeg' not cacheable in Agent plug-ins) 2021-01-08 00:34:21,188 (152271677700) : INFO (init:292) - [ ] title: "Le Roi Lion - L'amour brille sous les étoiles | Disney" 2021-01-08 00:34:21,189 (152271677700) : INFO (init:293) - [ ] summary: "Découvrez la chanson "L'amour brille sous les étoiles" extraite du film Disney Le Roi Lion ! Ouvrez la description pour voir les paroles.. . Toutes les musiques #LeRoiLion :. https://www.youtube.com/watch?v=v34w65U98gI&list=PLU5-6mn9YBf3kuA8wVcYFkiAxRtXF6Jbz. . ► Toutes les chansons des grands classiques #Disney :. https://www.youtube.com/playlist?list=PLU5-6mn9YBf2GRSsGqTnr4Hmosr7zaqck. . ► Retrouvez les extraits, bonus et reportages du Roi Lion :. https://www.youtube.com/watch?v=EwJ-pPVXnyk&list=PL76A0FF68EA8254D3. . ► Abonnez-vous pour ne rien rater de l'actualité française de Disney !. http://bit.ly/AbonnementDisney. . ► Découvrez les bandes annonces de nos prochains films Disney et Disney.Pixar :. https://www.youtube.com/playlist?list=PLU5-6mn9YBf32hunKCBytmHP8-UyN2iC-. . ► Découvrez nos collections de produits Disney, Marvel et Star Wars sur :. https://www.shopdisney.fr/. . [Paroles]. C'est terrible, c'est affreux. Quoi ?. . Et il se moque de tout. Qui ?. . L'amour s'amène et nous pauvres pouilleux. Il nous jette tous les deux. Oh. . Sous les diamants des étoiles,. Quel magique univers !. Mais, dans cette romantique atmosphère,. Ça sent mauvais dans l'air !. . L'Amour brille sous les étoiles,. D'une étrange lumière !. La Terre entière, en parfaite harmonie,. Vit un moment royal !. . Je voudrais lui dire ""Je t'aime"". Mais comment lui avouer?. Mon secret, mes problèmes ?. Impossible, elle serait trop blessée !. . Quel lourd secret cache-t-il,. Derrière tant de rancœur ?. Moi je sais qu'il est ce roi en exil. Qui règne dans mon cœur !. . L'Amour brille sous les étoiles,. D'une étrange lumière !. La Terre entière, en parfaite harmonie,. Vit sa plus belle histoire !. . L'Amour brille sous les étoiles,. Illuminant leurs coeurs !. Sa lumière éclaire à l'infini,. Un sublime espoir !. . S'ils s'enfuient vers leur rêve, ce soir,. Dans leur folle ronde !. . Si notre ami nous dit ""Au revoir"" ! ! !. ! ! !nous serons seuls au monde !. . ----------------------------------------------------------. . Laissez-vous emporter par la magie... Bienvenue sur la chaîne YouTube officielle de Disney !. Des Aristochats au Roi Lion, en passant par La Reine des Neiges ou Vaiana, la légende du bout du monde : toutes les chansons des Grands Classiques Disney sont là !. Apprenez-en plus sur nos films à venir : bandes-annonces, extraits, bonus et bien plus encore !. . Visitez notre site : https://disney.fr. Instagram : https://www.instagram.com/DisneyFR. Facebook : https://www.facebook.com/disneyfrance. Twitter : https://twitter.com/disneyfr. . #Disney #LeRoiLion" 2021-01-08 00:34:21,189 (152271677700) : INFO (init:294) - [ ] date: "2014-12-08T10:17:39Z" 2021-01-08 00:34:21,189 (152271677700) : INFO (init:296) - [ ] rating: "9.13790939063" 2021-01-08 00:34:21,189 (152271677700) : INFO (init:297) - [ ] thumbs: "https://i.ytimg.com/vi/2isCyeEScoI/sddefault.jpg" 2021-01-08 00:34:21,190 (152271677700) : INFO (init:299) - [ ] duration: "PT2M53S"->"173000" 2021-01-08 00:34:21,190 (152271677700) : INFO (init:304) - [ ] director: "Disney FR" 2021-01-08 00:34:21,190 (152271677700) : INFO (init:311) - [ ] posters: https://i.ytimg.com/vi/2isCyeEScoI/sddefault.jpg 2021-01-08 00:34:21,190 (152271677700) : INFO (init:313) - [ ] genres: "[u'walt disney studios', u'je voudrais d\xe9j\xe0 \xeatre roi le roi lion paroles', u'pumba', u'en fran\xe7ais', u"chanson simba c'est moi le roi", u'simba roi', u'lion', u'simba chante', u'simba', u'Disney', u'je voudrais d\xe9j\xe0 \xeatre roi paroles', u'chanson disney', u'chanson', u'chanson simba', u'disney france', u'france', u'chansons de disney', u'je voudrais d\xe9j\xe0 \xeatre roi', u'scar', u'pixar', u'timon', u'simba lion', u'paroles', u'roi lion', u'mufasa', u'chanson disney parole', u'nala', u'french', u'paroles chanson', u'simba le roilion', u'officiel', u'le roi lion', u'musique', u'musique disney', u'Film & Animation']" 2021-01-08 00:34:21,191 (152271677700) : INFO (init:676) - ============================================================================================================================================================= 2021-01-08 00:34:21,195 (152271677700) : DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/e/04a917bd12bafece4dc8c0ad38f7cccdad15103.bundle/Contents/com.plexapp.agents.youtube/Info.xml 2021-01-08 00:34:21,196 (152271677700) : DEBUG (runtime:88) - Sending packed state data (107 bytes) 2021-01-08 00:34:21,196 (152271677700) : DEBUG (runtime:924) - Response: [200] str, 16 bytes

JamesDAdams commented 3 years ago

if I add the playlist id in the playlist folder name I have the name of my channel which I don't want image

JamesDAdams commented 3 years ago

it retrieves the information from the playlist, but why did it rename the playlist with the name of the channel ? Strange

image

JamesDAdams commented 3 years ago

the problem comes from that

image

There don't have a condition for PL

JamesDAdams commented 3 years ago

I add this piece of code to seem to work

    if guid.startswith('PL'):
      Log.Info('[?] json_playlist_details: {}'.format(json_playlist_details.keys()))
      Log.Info('[ ] title:       "{}"'.format(Dict(json_playlist_details, 'snippet', 'title'      )))
      metadata.title = filterInvalidXMLChars(Dict(json_playlist_details, 'snippet', 'title'      ))
    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'      ))

image

ZeroQI commented 3 years ago

Coded added to master so closing Please reply/reopen if any issues

undaunt commented 3 years ago

Hello both,

My output for yt-dl is currently set to %(playlist_title)s - [%(playlist_id)s]/%(playlist_index)s - %(title)s [%(id)s].%(ext)s and based on the above posts, I thought the playlist would be named after the playlist_title based on the playlist id. However, it appears to be renaming upon match to the channel name instead, similar to what @JamesDAdams was seeing above. This should be possible right?

Not sure how to fix this, but I'm trying to avoid having multiple playlists from the same channel be named identically.

com.plexapp.agents.youtube.log

Also, I am downloading an .info.json with each file from youtube-dl, so should I be enabling local metadata on the library agent, or only Youtube-Agent? I am also not getting 'director' set properly on the files.

Thanks very much for any insight.

ZeroQI commented 3 years ago

2021-01-26 16:55:30,615 (7faa757fa700) : INFO (init:489) - Grouping folder not found or single folder, root: /data/youtube/Dead Suns Character Intros - [PLz3Be--ot61Mvmms68yBEhX6KrzPrqxsW], path: , Grouping folder: , subdirs: 0, reverse_path: [''] 2021-01-26 16:55:30,616 (7faa757fa700) : INFO (init:575) - No GUID so random folder

It seem like the Playlist ID is not recognized despite being correct (tested it)

https://github.com/ZeroQI/YouTube-Agent.bundle/blob/master/Contents/Code/__init__.py line 697 YOUTUBE_REGEX_PLAYLIST = Regex('\[(?:youtube\-)?(?P<id>PL[^\[\]]{16}|PL[^\[\]]{32}|UU[^\[\]]{22}|FL[^\[\]]{22}|LP[^\[\]]{22}|RD[^\[\]]{22}|UC[^\[\]]{22}|HC[^\[\]]{22})\]', Regex.IGNORECASE) # https://regex101.com/r/37x8wI/2

Please replace it with the below, update metadata for this series, and report, and will add i to the master YOUTUBE_REGEX_PLAYLIST = Regex('\[(?:youtube\-)?(?P<id>PL[a-zA-Z0-9\-_]{16}|PL[a-zA-Z0-9\-_]{32}|UU[a-zA-Z0-9\-_]{22}|FL[a-zA-Z0-9\-_]{22}|LP[a-zA-Z0-9\-_]{22}|RD[a-zA-Z0-9\-_]{22}|UC[a-zA-Z0-9\-_]{22}|HC[a-zA-Z0-9\-_]{22})\]', Regex.IGNORECASE) # https://regex101.com/r/37x8wI/2

undaunt commented 3 years ago

It appears to still be refreshing to the channel name. I stopped the container, removed volumes, updated the code, restarted, removed the match, emptied trash, then matched it again and refreshed metadata.

Should I upload the youtube plugin log again? Attached. com.plexapp.agents.youtube.log

Specifically was testing 'New Game, Who Dis' as the other playlists are a different naming convention currently.

Thanks.

ZeroQI commented 3 years ago

'PLz3Be - ot61PFrRm767OdkgnHPBKg4gy4' is special as it has a space in the playlist ID the previous one didn't have ..

Need to add a space in the regex in each of the 8 range after the underscore for example: [a-zA-Z0-9-_ ]

undaunt commented 3 years ago

I'm not seeing a space in the actual downloaded folder names on my side, it appears as PLz3Be--ot61PFrRm767OdkgnHPBKg4gy4 with two dashes. playlist_id also appears as this. I'm wondering if somehow it's being processed improperly via any code?

Renamed info.json to log 1 - New Game, Who Dis Cyberpunk Red Episode 1 [ks3meUecUyg].log

Edit: Question, is the behavior upon playlist match of the PL string such that it will ignore whatever the rest of the folder name is? I'm wondering because most of the series playlists are showing up as 'The Glass Cannon Podcast' but one this morning that was more recently downloaded is showing up as 'Yebby Jones, M.D. - Troy Plays Divinity: Original Sin 2'. That PL in question is:

[PLz3Be--ot61MRxBL35Kq1GxsADDzN4YMS]

Whereas all the others (that I've downloaded so far are):

[PLz3Be--ot61PFrRm767OdkgnHPBKg4gy4]
[PLz3Be--ot61Mm4NfqeB0cMh_QMUPxPOjw]
[PLz3Be--ot61My-dF7Yobmp1ET92R48hVS]
[PLz3Be--ot61PcaRzjxKIkP_BkgCZ4FVGw]
[PLz3Be--ot61Mvmms68yBEhX6KrzPrqxsW]
[PLz3Be--ot61MaF4MWeMT-yIZVKJJWUvYa]
[PLz3Be--ot61NuA-PaoFDt-GlKOSbxQIfq]
[PLz3Be--ot61NSBzrQU7OjlE4qM9RilNf1]
[PLz3Be--ot61OiAxPF-13Fq09U4yb5MiFc]
[PLz3Be--ot61N0KUbo4ncuel4_B7L4E10O]
[PLz3Be--ot61OUYDYSZHVdifLZFDmwvjF2]
[PLz3Be--ot61OS7lU-6I1TObQFbVBKaDbm]
[PLz3Be--ot61Olqs37ouFxe0rEo2RmTxV3]
[PLz3Be--ot61NS2oV1PkL_WI3NDkKL4DXf]
[PLz3Be--ot61OBC-EfE-fei1E3fS77NHNd]
[PLz3Be--ot61Orkp_ZZY2wgeXbvNCApNFP]
[PLz3Be--ot61NBeeto8pmgQDBad34I1tzb]
[PLz3Be--ot61N8ew8AI41YZPPgUtIJr_D0]

Some of the folder names I was testing with today are labeled as:

'The Glass Cannon Network - The Thunder Company - Pathfinder Second Edition - [PLz3Be--ot61N8ew8AI41YZPPgUtIJr_D0]'
'The Glass Cannon Network - Yebby Jones, M.D. - Troy Plays Divinity - Original Sin 2 - [PLz3Be--ot61MRxBL35Kq1GxsADDzN4YMS]'

whereas some are like:

'New Game, Who Dis - [PLz3Be--ot61PFrRm767OdkgnHPBKg4gy4]'

My assumption is that the preceeding text is simply ignored once PL is matched, based on the code at around like 596 on PL match? However based on the regex updates you had provided I'm still confused as to why most aren't matching. I'm not seeing any spaces in PLs however.

Thanks!

ZeroQI commented 3 years ago

You are correct, the file viewer on my phone seem to correct the '--' into ' - '...

Lines 544-566 test the GUID and this test fails [https://github.com/ZeroQI/YouTube-Agent.bundle/blob/master/Contents/Code/__init__.py] if len(guid)>2 and guid[0:2] in ('PL', 'UU', 'FL', 'LP', 'RD'):

I did not code the json local file part myself, but seemingly it was made for movies as it uses the video ID in the json file when selecting 'JsonWithApiBackup' , so will disregard the Playlist ID included as part of metadata.id. Need to go through the code to fix

undaunt commented 3 years ago

Hey Zero, have you had any luck with this? I think as a side effect, all of the playlists are being loaded in with the channel description, too, instead of the playlist description due to to the matching.

Seems like name/description for each playlist is matching the channel name, but the plex genre is properly scraping/deduping the categories/tags from YouTube.

Thanks!

ZeroQI commented 3 years ago

It is a metadata agent. If you use a playlist Id, the title will come from the playlist normally, some girls from the channel.

Ticket is closed so no longer working on it. You are stating a different issue from the ticket title seemingly.

undaunt commented 3 years ago

@ZeroQI The intended behavior of the agent, I assume, is not to name 15 different playlists from a channel after the channel so they all appear identical, which is the behavior happening right now. You commented 24 days ago (to me, in case you didn't see that) that there is an issue parsing some of the PL playlist IDs and stated you would go through the code to fix it.

So, are you doing that? Or are you not working on this. I'm directly referencing your prior comment from January 27th, not the original post.

ZeroQI commented 3 years ago

Support for json was added here: https://github.com/ZeroQI/YouTube-Agent.bundle/pull/42

There are issues with hte plex token file missing and this cause the series folder to be considered the root folder, with unforeseen circumstances and it cannot find the scanner logs as workaround neither...

2021-01-26 17:53:00,415 (7fcdacff9700) :  INFO (__init__:73) - [!] Library access denied
2021-01-26 17:53:00,416 (7fcdacff9700) :  INFO (__init__:81) - [!] ASS root scanner file missing: "/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/_root_.scanner.log"

Not sure if linked to json or not, there is an error in the logs supposedly resoled in the latest version of the agent

Is the agent the latest? Does the issue happen with the json agent setting disabled? Need just hte agent log part with an impacted series and the json if you have

ZeroQI commented 3 years ago

Please test master code and report, should only download thumbs if no local file and not present

undaunt commented 3 years ago

Hey Zero,

I'm on the latest for both ASS and Youtube. I created a token file so ASS is now creating library subfolder scanner logs, so that's one less variable of concern.

I did the Plex dance and re-added the library fresh. I then changed the settings to API only instead of JSON. This has successfully scanned the playlist name as the series name, which is exactly what I want. It also appears to have pulled in the playlist description, if it exists, instead of the channel description - while filling the channel description on blank playlists. Perfect!

I tested a second time with a fresh library after enabling JSON & API mode instead. This repeated the original, unwanted behavior of naming the playlists after the channel name.

What is the expected file path or naming convention for the series/playlist info.json name? Perhaps I need to rename or change the path?

I'm outputting individual episode file.info.json as well as playlist info.json due to the enhanced youtube-dlc fork.

--output "/youtube/%(playlist_uploader)s - %(playlist_title)s - [%(playlist_id)s]/%(playlist_title)s - S01E%(playlist_index)s - %(title)s [%(id)s].%(ext)s"
--output "pl_infojson:/youtube/%(playlist_uploader)s - %(playlist_title)s - [%(playlist_id)s]/%(playlist_title)s - Playlist Info.%(ext)s"

Episodes and their info.json files are landing as %(playlist_title)s - S01E%(playlist_index)s - %(title)s [%(id)s].%(ext)s whereas the playlist info.json is at %(playlist_title)s - Playlist Info.%(ext)s.

Thanks.

Edit: I would prefer if we can get the json method to work, as that method fills in tags (presumably from the categories/tags in the episode JSON files?) and the API only method does not. Also, right now, both methods appear to not be filling in director.

Interestingly, the json method youtube scanner logs seem to think library access is denied even now that I have a token in place.

2021-02-25 11:15:35,045 (7fc94dffb700) :  INFO (__init__:584) - update() using json file with api as backup - guid: tO68f7aiwOA, dir: /data/youtube/The Glass Cannon Network - Dead Suns Character Intros - [PLz3Be--ot61Mvmms68yBEhX6KrzPrqxsW], metadata>2021-02-25 11:15:35,046 (7fc94dffb700) :  INFO (__init__:70) - [!] Library access denied
2021-02-25 11:15:35,046 (7fc94dffb700) :  INFO (__init__:78) - [!] ASS root scanner file missing: "/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/_root_.scanner.log"

Is it because it is trying to scan the Hama folder even though this is Youtube/ASS? The scanner root file exists at plex/Library/Application Support/Plex Media Server/Logs/ASS Scanner Logs.

ZeroQI commented 3 years ago

Should have been solved by new release or attach the scanner filelist so i can reproduce your issue

ZeroQI commented 3 years ago

Update ass and Youtube agent to versions just posted. Works for me with: The Glass Cannon Network - The Thunder Company - Pathfinder Second Edition - [PLz3Be--ot61PFrRm767OdkgnHPBKg4gy4]\1.-.New.Game.Who.Dis.Cyberpunk.Red.Episode.1.ks3meUecUyg.mp4