Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Episode titles don't use json data? #122

Open
JamynShanley opened this issue Jan 5, 2023 · 5 comments
Open

Episode titles don't use json data? #122

JamynShanley opened this issue Jan 5, 2023 · 5 comments

Comments

@JamynShanley
Copy link

JamynShanley commented Jan 5, 2023

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
Copy link

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

@ZeroQI
Copy link
Owner

ZeroQI commented Jan 16, 2023

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
Copy link
Owner

ZeroQI commented Apr 6, 2023

Do you still have the issue ?

  • If so agent logs [...]/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.agents.Youtube-Agent.log would help
  • If not, what caused the issue, in case it can help other people ?

@Jamyn
Copy link

Jamyn commented Apr 6, 2023

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

@Jamyn
Copy link

Jamyn commented Apr 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants