Skip to content

[Bug]: Thumbnails Return Invalid URI #98

@qskwood

Description

@qskwood

I've read the documentation.

  • I'm running the latest version of the TubeArchivist Plex Integration Scanner and Agent. I have read the latest release notes and installation instructions.

Operating System

Windows 11

Your Bug Report

Describe the bug

I cannot get Plex to display thumbnails in the episode video lists for any YouTube "show." When I click the edit icon on a given episode, the thumbnail selected by default is visible in the settings for that episode. Plex cannot display it other than in this settings modal.

Steps To Reproduce

  1. add a show to TubeArchivist
  2. add the Plex integration (agent and scanner)
  3. add a library to Plex where the videos are stored (with the TubeArchivist scanner/metadata types)
  4. allow Plex to scan the library and pull in shows/episodes

Plex will display show thumbnails in the list of shows, it will not display episode thumbnails in episode lists.

Expected behavior

Plex should show the thumbnail for each episode, since it was obviously collected and is partially accessible.

Relevant log output

Mar 19, 2025 00:02:51.047 [20592] DEBUG - [Req#59ed]  * Season 2023 (-1) Episode 23070901 (2023) (1900-01-01)
Mar 19, 2025 00:02:51.047 [20592] ERROR - [Req#59ed] [Time] `boost::posix_time`: Year is out of valid range: 1400..9999
Mar 19, 2025 00:02:51.047 [20592] DEBUG - [Req#59ed] Looking up season and index for an episode, indexKey=S2023E23070901 dateKey=1900-01-01.
Mar 19, 2025 00:02:51.047 [20592] DEBUG - [Req#59ed]    * Found episode with key S2023E23070901
Mar 19, 2025 00:02:51.047 [20592] DEBUG - [Req#59ed]  * Found episode s2023e23070901
Mar 19, 2025 00:02:51.047 [20592] DEBUG - [Req#59ed] Migrating metadata settings from local://8416 -> com.plexapp.agents.tubearchivist_agent://tubearchivist|UCeNr6gwqin_7e_atjVnJcCQ|UCeNr6gwqin_7e_atjVnJcCQ/2023/23070901?lang=en
Mar 19, 2025 00:02:51.048 [20592] DEBUG - [Req#59ed] Item 8416 (112. The Babylonian Talmud (Jewish History Lab)) Scanning metadata graphic elements in XML file "seasons\2023\episodes"/23070901.xml
Mar 19, 2025 00:02:51.048 [20592] DEBUG - [Req#59ed] Item 8416 (112. The Babylonian Talmud (Jewish History Lab)) Scanning metadata graphic elements in XML file "seasons\2023\episodes"/23070901.xml
Mar 19, 2025 00:02:51.049 [50576] DEBUG - [Req#59ed/HCl#3d8] HTTP requesting GET http://127.0.0.1:50195/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Etubearchivist_agent%3A%2F%2Ftubearchivist%7CUCeNr6gwqin_7e_atjVnJcCQ%7CUCeNr6gwqin_7e_atjVnJcCQ%2F2023%2F23070901%3Flang%3Den&mediaType=4&url=metadata%3A%2F%2Fseasons%2F2023%2Fepisodes%2F23070901%2Fthumbs%2Fcom%2Eplexapp%2Eagents%2Etubearchivist_agent_603e95db23f70c036fb5e4cfaf63ebdf2b6a561b
Mar 19, 2025 00:02:51.094 [21160] DEBUG - [HttpClient/HCl#3d8] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:50195/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Etubearchivist_agent%3A%2F%2Ftubearchivist%7CUCeNr6gwqin_7e_atjVnJcCQ%7CUCeNr6gwqin_7e_atjVnJcCQ%2F2023%2F23070901%3Flang%3Den&mediaType=4&url=metadata%3A%2F%2Fseasons%2F2023%2Fepisodes%2F23070901%2Fthumbs%2Fcom%2Eplexapp%2Eagents%2Etubearchivist_agent_603e95db23f70c036fb5e4cfaf63ebdf2b6a561b (reused)
Mar 19, 2025 00:02:51.094 [20592] DEBUG - [Req#59ed] Brought media local (metadata://seasons/2023/episodes/23070901/thumbs/com.plexapp.agents.tubearchivist_agent_603e95db23f70c036fb5e4cfaf63ebdf2b6a561b) in 45ms.
Mar 19, 2025 00:02:51.094 [20592] DEBUG - [Req#59ed] Loading information from media bundle for part ID 10996 from "C:\Users\qskwood\AppData\Local\Plex Media Server\Media\localhost\8\2b8c67fd9189c18192173b55196e78fc4bf6166.bundle\Contents"
Mar 19, 2025 00:02:51.094 [20592] DEBUG - [Req#59ed] There was a change for metadata item 8416 (112. The Babylonian Talmud (Jewish History Lab)), saving.
Mar 19, 2025 00:02:51.094 [20592] DEBUG - [Req#59ed] Updating metadata item (save) (112. The Babylonian Talmud (Jewish History Lab)) with ID 8416
Mar 19, 2025 00:02:51.106 [20592] ERROR - [Req#59ed] [Time] `boost::posix_time`: Year is out of valid range: 1400..9999

[...]

Mar 19, 2025 00:19:03.906 [13920] DEBUG - Request: [127.0.0.1:57689 (Loopback)] GET /photo/:/transcode?width=240&height=114&minSize=1&upscale=1&url=%2Flibrary%2Fmetadata%2F8416%2Fthumb%2F1742360571%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx (16 live) #78e1 GZIP Signed-in Token (qskwood) (Chrome)
Mar 19, 2025 00:19:03.906 [13920] DEBUG - [Req#78e1/PhotoTranscoder] Request for url [/library/metadata/8416/thumb/1742360571?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx] (is local: 1 upscaled: 1)
Mar 19, 2025 00:19:03.908 [13920] DEBUG - [Req#78e1/PhotoTranscoder/Req#78e7] Computed media url for item 8416: http://127.0.0.1:50195/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Etubearchivist_agent%3A%2F%2Ftubearchivist%7CUCeNr6gwqin_7e_atjVnJcCQ%7CUCeNr6gwqin_7e_atjVnJcCQ%2F2023%2F23070901%3Flang%3Den&mediaType=4&url=metadata%3A%2F%2Fseasons%2F2023%2Fepisodes%2F23070901%2Fthumbs%2Fcom%2Eplexapp%2Eagents%2Etubearchivist_agent_603e95db23f70c036fb5e4cfaf63ebdf2b6a561b
Mar 19, 2025 00:19:03.908 [13920] DEBUG - [Req#78e1/PhotoTranscoder/Req#78e7/HCl#59c] HTTP requesting GET http://127.0.0.1:50195/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Etubearchivist_agent%3A%2F%2Ftubearchivist%7CUCeNr6gwqin_7e_atjVnJcCQ%7CUCeNr6gwqin_7e_atjVnJcCQ%2F2023%2F23070901%3Flang%3Den&mediaType=4&url=metadata%3A%2F%2Fseasons%2F2023%2Fepisodes%2F23070901%2Fthumbs%2Fcom%2Eplexapp%2Eagents%2Etubearchivist_agent_603e95db23f70c036fb5e4cfaf63ebdf2b6a561b
Mar 19, 2025 00:19:03.912 [21160] DEBUG - [HttpClient/HCl#59c] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:50195/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Etubearchivist_agent%3A%2F%2Ftubearchivist%7CUCeNr6gwqin_7e_atjVnJcCQ%7CUCeNr6gwqin_7e_atjVnJcCQ%2F2023%2F23070901%3Flang%3Den&mediaType=4&url=metadata%3A%2F%2Fseasons%2F2023%2Fepisodes%2F23070901%2Fthumbs%2Fcom%2Eplexapp%2Eagents%2Etubearchivist_agent_603e95db23f70c036fb5e4cfaf63ebdf2b6a561b (reused)
Mar 19, 2025 00:19:03.912 [13920] DEBUG - [Req#78e1/PhotoTranscoder/Req#78e7] Calculated media file path for path [metadata://seasons/2023/episodes/23070901/thumbs/com.plexapp.agents.tubearchivist_agent_603e95db23f70c036fb5e4cfaf63ebdf2b6a561b]: ["C:\Users\qskwood\AppData\Local\Plex Media Server\Metadata\TV Shows\d\f2f36b7431edfe671340b5fef3cd8cee17612e0.bundle\Contents\_combined\seasons\2023\episodes\23070901\thumbs\com.plexapp.agents.tubearchivist_agent_603e95db23f70c036fb5e4cfaf63ebdf2b6a561b"]
Mar 19, 2025 00:19:03.912 [13920] ERROR - [Req#78e1/PhotoTranscoder/Req#78e7] GetPathFromUri: invalid uri 
Mar 19, 2025 00:19:03.912 [13920] DEBUG - [Req#78e1/PhotoTranscoder] Calling back into ourselves for photo to transcode, optimizing the process (status: 404)
Mar 19, 2025 00:19:03.912 [64964] DEBUG - Completed: [127.0.0.1:57689] 404 GET /photo/:/transcode?width=240&height=114&minSize=1&upscale=1&url=%2Flibrary%2Fmetadata%2F8416%2Fthumb%2F1742360571%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx (16 live) #78e1 GZIP 5ms 507 bytes (pipelined: 9)

Anything else?

Image

Image

Image

Interestingly, while typing this TA grabbed a short from this playlist and Plex has a thumbnail for it- no fuss. This is the first time I've ever seen a thumbnail from the pre-0.5.0 or 0.5.0 branches of TA (it's probably the first short I've downloaded too.)

Image

Mar 19, 2025 00:21:55.141 [56232] DEBUG - Request: [127.0.0.1:58028 (Loopback)] GET /photo/:/transcode?width=240&height=114&minSize=1&upscale=1&url=%2Flibrary%2Fmetadata%2F8453%2Fthumb%2F1742360568%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx (7 live) #7de4 GZIP Signed-in Token (qskwood) (Chrome)
Mar 19, 2025 00:21:55.141 [56232] DEBUG - [Req#7de4/PhotoTranscoder] Request for url [/library/metadata/8453/thumb/1742360568?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx] (is local: 1 upscaled: 1)
Mar 19, 2025 00:21:55.145 [56232] DEBUG - [Req#7de4/PhotoTranscoder/Req#7de7] Computed media url for item 8453: http://127.0.0.1:50195/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Etubearchivist_agent%3A%2F%2Ftubearchivist%7CUCeNr6gwqin_7e_atjVnJcCQ%7CUCeNr6gwqin_7e_atjVnJcCQ%2F0%2F22012701%3Flang%3Den&mediaType=4&url=metadata%3A%2F%2Fseasons%2F0%2Fepisodes%2F22012701%2Fthumbs%2Fcom%2Eplexapp%2Eagents%2Etubearchivist_agent_d39e505c33505c9dbcc1e9f178d57c785343fe05
Mar 19, 2025 00:21:55.145 [56232] DEBUG - [Req#7de4/PhotoTranscoder/Req#7de7/HCl#67e] HTTP requesting GET http://127.0.0.1:50195/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Etubearchivist_agent%3A%2F%2Ftubearchivist%7CUCeNr6gwqin_7e_atjVnJcCQ%7CUCeNr6gwqin_7e_atjVnJcCQ%2F0%2F22012701%3Flang%3Den&mediaType=4&url=metadata%3A%2F%2Fseasons%2F0%2Fepisodes%2F22012701%2Fthumbs%2Fcom%2Eplexapp%2Eagents%2Etubearchivist_agent_d39e505c33505c9dbcc1e9f178d57c785343fe05
Mar 19, 2025 00:21:55.149 [21160] DEBUG - [HttpClient/HCl#67e] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:50195/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Etubearchivist_agent%3A%2F%2Ftubearchivist%7CUCeNr6gwqin_7e_atjVnJcCQ%7CUCeNr6gwqin_7e_atjVnJcCQ%2F0%2F22012701%3Flang%3Den&mediaType=4&url=metadata%3A%2F%2Fseasons%2F0%2Fepisodes%2F22012701%2Fthumbs%2Fcom%2Eplexapp%2Eagents%2Etubearchivist_agent_d39e505c33505c9dbcc1e9f178d57c785343fe05 (reused)
Mar 19, 2025 00:21:55.149 [56232] DEBUG - [Req#7de4/PhotoTranscoder/Req#7de7] Calculated media file path for path [metadata://seasons/0/episodes/22012701/thumbs/com.plexapp.agents.tubearchivist_agent_d39e505c33505c9dbcc1e9f178d57c785343fe05]: ["C:\Users\qskwood\AppData\Local\Plex Media Server\Metadata\TV Shows\d\f2f36b7431edfe671340b5fef3cd8cee17612e0.bundle\Contents\_combined\seasons\0\episodes\22012701\thumbs\com.plexapp.agents.tubearchivist_agent_d39e505c33505c9dbcc1e9f178d57c785343fe05"]
Mar 19, 2025 00:21:55.149 [56232] DEBUG - [Req#7de4/PhotoTranscoder] Calling back into ourselves for photo to transcode, optimizing the process (status: -1)
Mar 19, 2025 00:21:55.149 [56232] DEBUG - [Req#7de4/PhotoTranscoder] Photo cache obtained 14094 bytes from /library/metadata/8453/thumb/1742360568?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Mar 19, 2025 00:21:55.151 [56232] DEBUG - [Req#7de4/PhotoTranscoder] Created thumbnail of size 240x135, has pixels: 1
Mar 19, 2025 00:21:55.154 [21116] DEBUG - Completed: [127.0.0.1:58028] 200 GET /photo/:/transcode?width=240&height=114&minSize=1&upscale=1&url=%2Flibrary%2Fmetadata%2F8453%2Fthumb%2F1742360568%3FX-Plex-Token%3Dxxxxxxxxxxxxxxxxxxxx (7 live) #7de4 GZIP 12ms 5346 bytes (pipelined: 8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions