YouTube-Agent.bundle icon indicating copy to clipboard operation
YouTube-Agent.bundle copied to clipboard

Working perfectly for playlists, but not for channels

Open jcreek opened this issue 2 years ago • 2 comments

For example, I have downloaded the three videos at https://www.youtube.com/@Scruffy238 at the following paths:

  • Z:\media\youtube\Scruffy [Scruffy238]\Season 2020\s2020e01271676728307.12 Hour Mental Health Charity Livestream feat. Shoutcasted Rocket League Tournament With Prizes [dh6ybSXNt_Q].mp4
  • Z:\media\youtube\Scruffy [Scruffy238]\Season 2020\s2020e05141676728306.I made a wireless webcam with interchangeable lenses for less than the cost of a Logitech webcam [M28jYpbPxcQ].mp4
  • Z:\media\youtube\Scruffy [Scruffy238]\Season 2021\s2021e01051676728306.Personal & Work (almost) Single Cable Desk Setup Tour [January 2021] [PtkwKMmjA2c].mp4

My Plex library uses the youtube folder, with the scanner Absolute Series Scanner and the agent YouTubeSeries. I have specified my own YouTube API Key, and it looks like everything is set up correctly.

Plex displays this as a show called "Season 2020", with only two episodes: the 12 hour mental video and the wireless webcam video. Looking at the file info for both the latter has both the wireless webcam file and the desk setup file as being the same episode.

image

I have tested this with a variety of channels, using the @ format (like the example above), the user format (e.g. https://www.youtube.com/user/VivaLaDirtLeague) and the UC format (e.g. https://www.youtube.com/channel/UCHC4G4X-OR5WkY-IquRGa3Q) and they all have exactly the same issues.

Meanwhile, playlists work absolutely perfectly. For example, https://www.youtube.com/playlist?list=PL3A5849BDE0581B19 has video paths like:

  • Z:\media\youtube\asdfmovie [PL3A5849BDE0581B19]\Season 2008\s2008e08101676677172.asdfmovie [IYnsfV5N2n8].mp4
  • Z:\media\youtube\asdfmovie [PL3A5849BDE0581B19]\Season 2010\s2010e01011676677172.asdfmovie2 [tKB4h9gvmm0].mp4
  • Z:\media\youtube\asdfmovie [PL3A5849BDE0581B19]\Season 2010\s2010e01081676677177.asdfmovie2: deleted scenes [8PWlxfTFmyE].mp4

Plex displays this entirely correctly.

image

I've read through the documentation and it seems like I'm doing the right things, putting the channel or playlist tag into the root folder name for the channel or playlist, including the video tags into the video file names, and structuring the folders in a sensible way. As I said, playlists are working perfectly, but channels are just not working correctly.

jcreek avatar Feb 18 '23 14:02 jcreek

you need playlist or channel id in series folder, but @channel are not supported for now, didn't even know they existed, it must be a new thing...

https://commentpicker.com/youtube-channel-id.php => UCNVD6anBlMWPkQjK3mOKILg

It should be named like this:

  • Z:\media\youtube\Scruffy [UCNVD6anBlMWPkQjK3mOKILg]\Season 2020\s2020e01271676728307.12 Hour Mental Health Charity Livestream feat. Shoutcasted Rocket League Tournament With Prizes [dh6ybSXNt_Q].mp4 However, if you don't change the folder content, it may not be rescanned, and rely on cache, and you might need to do a plex dance

ZeroQI avatar Apr 06 '23 16:04 ZeroQI

Just to touch on this, I am having it happen when downloading via Pinchflat.

Using this template to name files:

download/{{ source_custom_name }} [{{ source_collection_id }}]/{{ season_by_year__episode_by_date_and_index }} [youtube-{{ id }}].{{ ext }}

Giving files: download\Local Host (User704) [UCFskzVcS11BRBy2DARNChOQ]\Season 2018\s2018e122799 [youtube-wvcH1jR1sE8].mp4 download\Local Host (User704) [UCFskzVcS11BRBy2DARNChOQ]\Season 2018\s2018e122799 [youtube-wvcH1jR1sE8].info.json

source_custom_name is With this single file or with many, plex is showing them all as Season YYYY. As far as I can tell from documentation, this shoukld work as expected? (I have also tried with episode title included)

Also tried:

download/{{ channel }} [{{ source_collection_id }}]/{{ upload_year }}/{{ season_episode_index_from_date }} - {{ title }} [youtube-{{ id }}].{{ ext }}
&
download/{{ source_custom_name }}/{{ season_by_year__episode_by_date_and_index }} - {{ title }}.{{ ext }}

com.plexapp.agents.youtube.log com.plexapp.system.log

LunarLaurus avatar Aug 16 '25 16:08 LunarLaurus