[REL] YouTube Metadata Agent

Which log would I find that in? So far I haven’t found any mention of it.

@clayton006 said:
Which log would I find that in? So far I haven’t found any mention of it.

The file is com.plexapp.agents.youtube.log, there’s this support article on this subject on how/where to find the file.

Looks like my regex is failing even though I have my ID in square brackets.

@clayton006 said:
Looks like my regex is failing even though I have my ID in square brackets.

Your regex looks incorrect :slight_smile: Change it to \[(?P<id>.{11})\] and try again.

Looks like it is working now. Looks like I have to delete the libraries and re-create them to make the agent run again for some reason. Thanks again!

This is great, Ive managed to get this working but I have a bunch of videos that just wont sync. They all have particular ID’s with 2x = signs. eg - https://www.youtube.com/watch?v=98MQOJWdEME&t=1037s. Ive tried taking out the second equals sign and also deleting the second string altogether but it will not recognise them. Has anybody come across this before?

Thanks

Its OK, ive worked it out. The second string is code to tell the player when to start playing from where you left before. If anyone else has this problem you delete everything from the end of the ID including and after &t=

Hi guys… Started a new thread here but this seems like a good place to come and ask for help. I’ve tried to extend this Agent to also allow matching by name. My code changes seem fine to me… I’ve tested the requests through Postman and everything seems okay, but when the agent runs it doesn’t seem to update any metadata. Any help would be greatly appreciated!

Still looking for a TV Show version of this, to auto-populate titles and thumbnails from a Youtube playlist.

Ditto with that TV Show version even if the videos aren’t not really considered a “TV show”…I have three of these Youtube categories and great theme.mp3 for all of them and this is the last way I can think of that the themes would actually play when I’m browsing. Would be awesome!!

Did you select and put first ‘local media asset agent’ in the agent order list?
If so, it should play the theme then if you named it “theme.mp3” and placed it in the series folder, no need for another agent involvement.
https://support.plex.tv/articles/200220717-local-media-assets-tv-shows/

The playlist id and the video id did allow me to find the items only by the playlist id directly:

Maybe with a [youtube-xxxxxx] style tag i could support a series agent, but the issue is for VGHS for example (www.youtube.com/watch?v=1JqR3GVqib4&list=PL3A5DF6DA95FB8E08 => PlaylistID PL3A5DF6DA95FB8E08), there is one playlist per season and the guid is unique per series therefore you would need:

  • either one series per playlist as youtube doesn’t handle seasons
  • or your own custom playlist with all eps in absolute mode

However i might have picked a bad example as TheTVDB is better in that case…
Please give me your feedback

@ZeroQI said:

Please give me your feedback

Hmm… Well, I’ve effectively been using one playlist per season. That is, I have a “Let’s Plays” TV Show library, where I have grouped each “show” by game, and each “season” by (playlist for) a particular Youtuber. Each episode number in a season matches the corresponding entry in that playlist. Now, with the advent of inline collections, I could probably adjust this. Currently, however, I have games in a franchise grouped into collections.

With the way Youtube itself is structured, it would make correlate “shows” with Youtubers, and “seasons” with playlists. But I would rather group by game first. I don’t watch Youtubers for whatever random content. I search (on Youtube) for what game I want to watch, and then I choose which Youtuber I prefer for that game. Organizing in Plex by Youtuber > Playlist would akin to organizing by Producer > Movie/Show.

That all being said, copying thumbnail links from Gopher’s 250+ episode “Adventures of Richard the Librarian” Skyrim let’s play is annoying, I can tell you.

hi, i have started recoding the movie agent so it succeed searching per
title

I then started converting it to have a youtube movies and TV series agent
in one like my anime agent HAMA. I already amended my scanner to allow
YouTube ids to be scrubbed ‘[youtube-xxxx]’.

However since the series is given a unique id i will have to give the
youtube id or the foldername as unique ID if there is an id per season.

I need to reproduce your setup… And
Can you give me the links to the playlist you use as seasons and the
seasons you set? One playlist per season is a bit tricky…

On Sat, 14 Apr 2018 16:30 chyron8472, forums+d83106-s6025034@plex.tv
wrote:

Plex Forums https://forums.plex.tv/
chyron8472 mentioned you in [REL] YouTube Metadata Agent

@ZeroQI said:

Please give me your feedback

Hmm… Well, I’ve effectively been using one playlist per season. That is,
I have a “Let’s Plays” TV Show library, where I have grouped each “show” by
game, and each “season” by Youtuber. Each episode number in a season
corresponds to an entry in a playlist created for that Youtuber’s LP series.

Now, with the advent of inline collections, I could probably adjust this.
Currently I do have games in a franchise grouped into collections, but I
don’t have to use collections as such.


Reply to this email directly or follow the link below to check it out:
https://forums.plex.tv/discussion/comment/1653371#Comment_1653371

Note: Your signature will be included when replying directly by email
unless you remove it first. Attachments will not be included when replying.

Check it out:
https://forums.plex.tv/discussion/comment/1653371#Comment_1653371

On 14 Apr 2018 16:30, “chyron8472” forums+d83106-s6025034@plex.tv wrote:

Plex Forums https://forums.plex.tv/
chyron8472 mentioned you in [REL] YouTube Metadata Agent

@ZeroQI said:

Please give me your feedback

Hmm… Well, I’ve effectively been using one playlist per season. That is,
I have a “Let’s Plays” TV Show library, where I have grouped each “show” by
game, and each “season” by Youtuber. Each episode number in a season
corresponds to an entry in a playlist created for that Youtuber’s LP series.

Now, with the advent of inline collections, I could probably adjust this.
Currently I do have games in a franchise grouped into collections, but I
don’t have to use collections as such.

@ZeroQI said:

I need to reproduce your setup… And
Can you give me the links to the playlist you use as seasons and the
seasons you set? One playlist per season is a bit tricky…

Which season number I use in Plex for a particular Youtube playlist is arbitrary, really.

This is Gopher’s Skyrim LP for his Richard character:
youtube.com/playlist?list=PLfNVI1wGaszwl_W-bmXZkXn0CFiV0QAKN

This is StephenPlays’ Skyrim LP:
youtube.com/playlist?list=PL396D27A032375504

 
This is MasaeAnela’s Zelda: Wind Waker LP:
youtube.com/playlist?list=PL2E38A68696D1957A

This is DazzLetsPlays’ Zelda: Wind Waker LP:
youtube.com/playlist?list=PLUe34CfW0ccE1x9ZOcGY5e1Grk9kVOqeN

It is very important i understand how to reproduce it as i can make it happen but won’t use it myself and have little free time…
Your Plex “let’s pay” screeshot looks amazing by the way and will use that as a base.

Important bits:

  • “With the way Youtube itself is structured, it would make correlate “shows” with Youtubers, and ‘seasons’ with playlists.”
  • “Organizing in Plex by Youtuber > Playlist would akin to organizing by Producer > Movie/Show.”
  • “I would rather group by game first. I don’t watch Youtubers for whatever random content. I search (on Youtube) for what game I want to watch, and then I choose which Youtuber I prefer for that game”

How it translates in real world to support all case scenarios, each requiring coding so i need to know all we can remove or have to add:

  • youtuve vids = movie (handle individually as movie in movie or Tv library, same code used anyway) OR episodes (handled as playlist only for now)
  • playlist = Seasons (OR series with all season 1 [not for now] OR movie collection [not for now]) and order represent episode order
  • Series = youtuber/channel / Game / Playlist (all inside is season 1 only then). Using playlist at season level allow extreme flexibility by using either channel name or game, no ties. [support youtube channel id and search playlist to match season folders without season number let through by scanner maybe at latter date]

Series Scanner support:

  • [youtube-xxxxx] or youtube.id file pass-through to show [youtube-xxx] in title for agent search to find
  • if no season defined in season folder but [youtube-PLxxx] exists add season number folder creation date order so new folders don’t mess up the order.
  • support season and episode number from youtube title to insert at proper place

Agent support

  • both movies/series mode (done but not functional for series at the moment)
  • stage 1 - support movies it movie mode
  • stage 2 - support youtube video tag for movies in both movie and series mode
  • stage 3 - support youtube playlists in series but single seasons
  • stage 4 - support playlist in seasons. plex settings allow to not display seasons for single season series, works well with collections so you could have Game collection > game series > youtuber playlist for game > playlist videos as eps.
  • stage 5 - support channel as series and match un-numbered season folders to playlist list with seasons allocated per creation date on disk

Uploaded changes to github for the scanner and agent.

  • support movie and tv series library.
  • support playlist tag on series foldername.
  • support playlist tag on season folders or youtube.id file indide it.

@chyron8472 The legend of Zelda" a collection in your screen capture. If you have a single season in all series contained, then all sould work already. if you have a season for playlist, it works but the poster is not downloaded for series

Please test and report issues

  • use a separate library entry pointing to same root folders to test preferably. wou…ldn’t want to mess up the display and carefull arrangement
  • one playlist per season support which allow game > season > playlist entries and channel/youtuber / season > playlist entries . use “Season 1 xxxxx [youtube-PLxxxxxxx]” or youtube.id with PLxxxx id inside

Well guys, the Plex YouTube agent for movie/Series is coded and had no feedback

Please test and report

I will test soon. I just haven’t had time yet.

I must be doing something wrong. I can get the videos to appear when I am adding them as a movie but they don’t appear to work correctly as a TV Show. I prefer the TV show option because I want to group them by game the same way chyron8472 is doing it. When I add everything it will only collect a few of the videos and calls them Specials or strangely numbered episodes. I am not sure I am getting the Metadata either so that might be its own issue. Thoughts?

you need the absolute series scanner beta branch to let the youtube ids into bracket through otherwise plex scanner just scaps it and the agent needs it.
it will put its logs in the hama agent data folders even if you do not have Hama installed
I need the logs from the scanner so i can reproduce and see if you labeled the seasons and series folder properly.

@ZeroQI said:
you need the absolute series scanner beta branch to let the youtube ids into bracket through otherwise plex scanner just scaps it and the agent needs it.
it will put its logs in the hama agent data folders even if you do not have Hama installed
I need the logs from the scanner so i can reproduce and see if you labeled the seasons and series folder properly.

I am pretty sure I am labeling it all wrong. It labels a video or two as Special but ignores the other 20+. I will see if I can find the log file you mentioned. On a quick search around for it I couldn’t find it.

Thank you