ZeroQI / YouTube-Agent.bundle

Plex Metadata Agent for Movies and TV Series libraries
463 stars 44 forks source link

Episode titles don't use json data? #122

Open JamynShanley opened 1 year ago

JamynShanley commented 1 year ago

yt-dlp options are as follows:

/usr/local/bin/yt-dlp \ --download-archive "youtube_archive.txt" \ --dateafter now-1month \ --playlist-end 25 \ --abort-on-unavailable-fragment \ --match-filter "is_live != true & was_live != true" \ --format "bestvideo[vcodec!*=av01]+bestaudio" \ --sub-langs 'all,-live_chat' \ --convert-thumbnails png \ --embed-chapters \ --embed-info-json \ --embed-metadata \ --embed-subs \ --embed-thumbnail \ --write-info-json \ --convert-subs 'srt' \ --sponsorblock-remove sponsor \ --geo-bypass \ --remux mkv \ --merge-output-format mkv \ --no-abort-on-error \ --ignore-errors \ -o "%(channel)s [%(channel_id)s]/%(upload_date)s %(title)s [%(id)s].%(ext)s" \ $channel

My files are named using this format:

20230104 Regretting your class choice in games [W5OxWXbB5vw].mkv

I also save an .info.json file alongside the video. The problem is that in Plex, the videos are named the same as the filename (20230104 Regretting your class choice in games [W5OxWXbB5vw]) and not what I'd expect (Regretting your class choice in games). The series, seasons, and art are all correct, just not episode names. Am I mis-configuring something or is this expected behavior?

1_file_naming

2_library_settings

3_shows

arabcoders commented 1 year ago

@JamynShanley can you try to fix match and see if that fixes it? i had the same problem before

ZeroQI commented 1 year ago

Naming convention look fine: "%(channel)s [%(channel_id)s]/%(upload_date)s %(title)s [%(id)s].%(ext)s" Unsure if matched or not, but title wasn't amended. Troubleshooting section not followed, no logs

ZeroQI commented 1 year ago

Do you still have the issue ?

Jamyn commented 1 year ago

I do, but missed your January reply. I'm collecting logs and will attach them today.

Jamyn commented 1 year ago

Log attached.

com.plexapp.agents.youtube.log.gz

Example video file json:

20230104 Regretting your class choice in games [W5OxWXbB5vw].info.json.gz

Current example in Plex:

image

Library configuration:

image

I think these are the relevant lines for the original examples:

2023-04-06 13:40:42,286 (7f8096a5fb38) : INFO (init:451) - metadata.seasons[2023].episodes[2023-01-04] "20230104 Regretting your class choice in games [W5OxWXbB5vw].mkv" 2023-04-06 13:40:42,286 (7f8096a5fb38) : INFO (init:470) - populate_episode_metadata_from_info_json() - series_root_folder: /mnt/unionfs/Media/Youtube/Viva La Dirt League [UCchBatdUMZoMfJ3rIzgV84g], filename: 20230104 Regretting your class choice in games [W5OxWXbB5vw].mkv 2023-04-06 13:40:42,286 (7f8096a5fb38) : INFO (init:471) - Searching for "20230104 Regretting your class choice in games [W5OxWXbB5vw].info.json". Searching in "/mnt/unionfs/Media/Youtube/Viva La Dirt League [UCchBatdUMZoMfJ3rIzgV84g]". 2023-04-06 13:40:42,332 (7f8096a5fb38) : INFO (init:473) - Directory /mnt/unionfs/Media/Youtube/Viva La Dirt League [UCchBatdUMZoMfJ3rIzgV84g] contains 2315 files 2023-04-06 13:40:42,761 (7f8096a5fb38) : INFO (init:479) - Attempting to read metadata from /mnt/unionfs/Media/Youtube/Viva La Dirt League [UCchBatdUMZoMfJ3rIzgV84g]/20230104 Regretting your class choice in games [W5OxWXbB5vw].info.json 2023-04-06 13:40:42,762 (7f8096a5fb38) : INFO (init:481) - # videoId [W5OxWXbB5vw] not in Playlist/channel item list so loading json_video_details 2023-04-06 13:40:42,762 (7f8096a5fb38) : INFO (init:482) - [?] link: "https://www.youtube.com/watch?v=W5OxWXbB5vw" 2023-04-06 13:40:42,762 (7f8096a5fb38) : INFO (init:97) - img_load() - series_root_folder: /mnt/unionfs/Media/Youtube/Viva La Dirt League [UCchBatdUMZoMfJ3rIzgV84g], filename: 20230104 Regretting your class choice in games [W5OxWXbB5vw].mkv 2023-04-06 13:40:42,763 (7f8096a5fb38) : INFO (init:492) - [ ] title: "Regretting your class choice in games" 2023-04-06 13:40:42,763 (7f8096a5fb38) : INFO (init:493) - [ ] summary: "Ever regretted your class choice? . . SUPPORT ON PATREON - http://bit.ly/VLDLpatreon. DISCORD - http://bit.ly/VLDLdiscord. FACEBOOK: http://bit.ly/VLDLfacebook. TWITTER: http://bit.ly/VLDLtwitter. INSTAGRAM: http://bit.ly/VLDLinstagram. WATCH MORE SKITS HERE: http://bit.ly/VLDLvideos. . ---------------------------------- TWITCH -------------------------------. . http://bit.ly/VLDLtwitch. . ----------------------------------- MERCH--------------------------------. . Merchandise: http://vldl.shop. Songs: http://bit.ly/VLDLmusic. . ------------------- MORE VIDEOS ------------------. . Epic NPC Man: http://bit.ly/NPCman. Bored: http://bit.ly/VLDLbored. PUBG Logic: http://bit.ly/PUBGlogic. FPS Logic: http://bit.ly/FPSlogic. Souls Logic: http://bit.ly/Soulslogic. Music Videos: http://bit.ly/VLDLmusicvids. Wildcards: http://bit.ly/VLDLwildcard" 2023-04-06 13:40:42,764 (7f8096a5fb38) : INFO (init:494) - [ ] date: "20230104" 2023-04-06 13:40:42,764 (7f8096a5fb38) : INFO (init:495) - [ ] duration: "265" 2023-04-06 13:40:42,764 (7f8096a5fb38) : INFO (init:506) - [ ] genres: "[u'La', u'drtfootman', u'starcraft music video', u'pubg funny', u'buffed up nerds', u'battle net', u'Trailer (promotion)', u'8 pool', u"you're gonna GG", u'Dirt', u'viva la dirt league', u'vivaladirtleague', u'starcraft song', u'starcfraft parody', u'Imagine', u'viva la dirt', u'viva la dirt league pubg', u'Viva', u'League', u'starcraft fraps', u'Two Rax Pressure', u'dirty starcraft', u'vldl pubg', u'eight', u'care about bronze', u'op protoss ball', u'Bust Me Like That', u'pool', u'Bronze Week 2012', u'People & Blogs', u'dirt league', u'8pool', u'drtsorak', u'pubg live action', u'Starcraft', u'eight pool', u'the game station', u'zerg', u'starcraft', u'Gaming', u'tgs', u'protoss', u'maker studio', u'parody', u'boyband', u'Comedy', u'dirt', u'viva', u'la', u'league', u'gaming', u'online gaming', u'gamer', u'lets play', u'rowan bettjeman', u'alan morrison', u'hearthstone', u'games', u'playtech', u'skit', u'comedy', u'warcraft', u'blizzard', u'overwatch', u'funny', u'vldl', u'game', u'new zealand', u'epic npc man', u'pubg', u'Viva La Dirt League', u'NPC Man', u'pubg skits', u'pubg mobile', u'PUBG Logic', u'pubg movie', u'pubg logic supercut', u'pubg real life', u'pubg parody', u'bored']"

So, it seems to read the title and summary properly, but it's not updating Plex:

image