[REL] YouTube Metadata Agent

The original Inside Gaming channel doesn’t exist anymore but I had all of their videos downloaded in the format of:

20150130 - BLENDER OF DEATH - GTA 5 Gameplay! - [hvSLss0d6Sg].mp4

There’s obviously nothing on youtube for the agent to find and I am not saying it should be able to but is there a way I can tell the agent to use the date and title from the file name?

There’s 442 files and it would be cool to have the files named something other than

Has the agent stopped working for whatever reason for anyone? Just earlier today I was trying new filename options for my library to fix the episode order issue but now the agent won’t match anything. I’ve deleted and “reinstalled” the agent in Plugins several times, cleared bundles and emptied trash endlessly, changed filenames to just IDs (Which was what they were set as before and read just fine) and plenty of others to no avail. I haven’t made any changes to Plex recently or done anything that should cause this, but after matching and unmatching and rematching, none of my videos are identified.

It has stopped working for me as well. Every time it attempts to get data I can see that it retrieves the data from youtube but then fails to find a directory.

2020-02-17 17:38:43,044 (802617400) :  CRITICAL (agentservice:588) - Exception in update for com.plexapp.agents.youtube://youtube||/youtube/episodes/Craft Computing [UCp3yVOm6A55nx65STpm3tXQ]?lang=xn (most recent call last):
  File "/usr/local/share/plexmediaserver/Resources/Plug-ins-97add474d/System.bundle/Contents/Code/agentservice.py", line 571, in update_task
    xml = combiner.combine(metadata_class, libraryAgent or identifier, bundle_guid, self.agent_info, respect_tags)
  File "/usr/local/share/plexmediaserver/Resources/Plug-ins-97add474d/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/combination.py", line 611, in combine
    for name in os.listdir(root_path):
OSError: [Errno 2] No such file or directory: '/usr/local/plexdata/Plex Media Server/Metadata/TV Shows/f/8c9135c5a1655772f02795c14f2f6735fa0b447.bundle/Contents'

This occurs for every single video that doesn’t already have data. Previously it worked perfectly. The only change on my side is that I updated my version of Plex to the latest version.

There seem to be a bug in latest Plex version.
Error not in the agent code so cannot fix, only wait for new Plex release fixing it.

Agent not coded to read title from filename’ no time to code, and frankly, my priority is ass, Hama, lambda.

Gotcha. Hopefully it’ll be fixed soon. :slight_smile:

ASS doesn’t work on this server for some reason. Works on the one with Hama though, so I dunno what’s up.

What’s lambda?

An agent that save locally all metadata present in Plex and back so a kind of double agent

Well, it’s still broken in 1.18.8.2461. Is there something we can provide to the plex team in order to get them to look at it? I’m not sure where exactly the problem is.

As far as I could tell in https://github.com/ZeroQI/YouTube-Agent.bundle/issues/36

It looks like the agent is not picking up the GUID correctly which means that there is no ID when it comes to scanning the channel.

ZeroQI has stated previously that the YTAgent is not his focus any more, He would rather focus on ASS.
Plex wont give a crap because “plex” (and their deprecation of plugins).

Im not a good enough programmer to solve the problem but anyone who knows python is welcome to take a look. Im sure if you submit a pull request then @ZeroQI will implement it.

That’s not the issue I’m having. It picks up the info correctly but doesn’t seem to be able to save it. It looks different than the issue you linked.

Have you seen any “No such file or directory” errors in your logs?

Also, I just realized the error it’s throwing is in System.bundle not the YT bundle. Time to do some more digging.

There is a bug in latest Plex version
1.18.5.2309 - Working
1.18.6.2348 - Broken - Plex Media Server

The error is indeed not in the agent code, so i do not know how to prevent it

I’ve tried rolling back with previous installs I could find online, as my updates folder was empty for whatever reason (My server updated automatically despite setting it to ask me.) but I haven’t gotten it to work in around a week now. I don’t know how to get things back and functioning the way they were before.

The YouTubeSeries plugin has become an enormous part of my library, feels empty without it. I hope whatever error it is can get fixed, I’ve got too many videos to watch.

You can download the last working verions of PMS from
https://www.videohelp.com/download/PlexMediaServer-1.18.5.2309-f5213a238-x86.exe

There may well be an “official” plex link to it somewhere but I cant work it out.

2 Likes

Thank you for the link! I’ve got the agent and the library set up, but it won’t match the majority of my videos for whatever reason. I kept running into that issue every time I tried rolling back; One of my folders has seven videos, but it only matches two. It’s pretty much the same result for each other folder. I’ve refreshed metadata, cleaned bundles, unmatched and rematched countless times, etc.

I thought I might’ve corrupted something, so I redid my entire server. But now I’m lost on what could be preventing it from matching everything. The system was working fine a week ago.

Use “Fix Match…” instead of rescanning.

That’s what I meant by “rematched”, sorry. I constantly unmatch, refrest metadata, clean bundles, analyze, fix match to no avail.

I dont know what else to tell you…
PlexMediaServer-1.18.5.2309-f5213a238-x86.exe

With the latest pull from…

definitely works.

You can also check your logs as detailed on the github page to see if you are getting a more specific error.

Holy crap, found it.

Turns out the API key was expired or something, so I had to create a new one. Log said I’d hit my daily limit, so I just copied the new key and now everything works perfectly.

Key was probably expired because of all the test runs you were doing. I had something similar previously.

Has someone opened a support case or contacted plex to let them know there is an issue? I don’t completely follow where the problem is but it sounds like they need to fix it.

Trying to speak to Plex is as effective and fun as punching yourself in the face and thinking it will cure world hunger.

Feel free to take the initiative but I am not going down that road again.