[PR #114] Fix episode thumbnails returning invalid URI on Windows #115

Open
opened 2026-03-23 20:34:22 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tubearchivist/tubearchivist-plex/pull/114
Author: @tayloramurphy
Created: 2/1/2026
Status: 🔄 Open

Base: mainHead: fix/windows-thumbnail-uri


📝 Commits (1)

  • 262cd58 Fix episode thumbnails returning invalid URI on Windows

📊 Changes

2 files changed (+7 additions, -10 deletions)

View changed files

📝 Contents/Code/__init__.py (+1 -1)
📝 Scanners/Series/TubeArchivist Series Scanner.py (+6 -9)

📄 Description

Fixes #98

The Plex Photo Transcoder on Windows fails with GetPathFromUri: invalid uri when resolving episode thumbnail paths. The issue is that the internal metadata path ends up too long — the episode number format combined with the agent identifier creates paths right at the edge of what Plex can handle.

The scanner was stripping only the century from the episode date (episode[2:]), which left 8-digit episode numbers for anything 2010 and later. Since the year is already stored in the season, this changes it to strip the full year (episode[4:]), bringing episode numbers down to 6 digits and keeping paths short enough for the Photo Transcoder to resolve.

The released_at date is now computed from the original date string directly instead of being reconstructed from the shortened episode number.

Also fixes a pre-existing mismatch where CachePath in the agent used a hyphen (tubearchivist-agent) instead of matching the actual CFBundleIdentifier underscore (tubearchivist_agent).

Note: This is a breaking change — existing libraries will need a full rescan.

I ran this on Windows 11, version 24H2. Plex Version 1.112.0.359-0d79a49f


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/tubearchivist/tubearchivist-plex/pull/114 **Author:** [@tayloramurphy](https://github.com/tayloramurphy) **Created:** 2/1/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/windows-thumbnail-uri` --- ### 📝 Commits (1) - [`262cd58`](https://github.com/tubearchivist/tubearchivist-plex/commit/262cd58944094a89806de0e74f46afc0db2aa015) Fix episode thumbnails returning invalid URI on Windows ### 📊 Changes **2 files changed** (+7 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `Contents/Code/__init__.py` (+1 -1) 📝 `Scanners/Series/TubeArchivist Series Scanner.py` (+6 -9) </details> ### 📄 Description Fixes #98 The Plex Photo Transcoder on Windows fails with `GetPathFromUri: invalid uri` when resolving episode thumbnail paths. The issue is that the internal metadata path ends up too long — the episode number format combined with the agent identifier creates paths right at the edge of what Plex can handle. The scanner was stripping only the century from the episode date (`episode[2:]`), which left 8-digit episode numbers for anything 2010 and later. Since the year is already stored in the season, this changes it to strip the full year (`episode[4:]`), bringing episode numbers down to 6 digits and keeping paths short enough for the Photo Transcoder to resolve. The `released_at` date is now computed from the original date string directly instead of being reconstructed from the shortened episode number. Also fixes a pre-existing mismatch where `CachePath` in the agent used a hyphen (`tubearchivist-agent`) instead of matching the actual `CFBundleIdentifier` underscore (`tubearchivist_agent`). **Note:** This is a breaking change — existing libraries will need a full rescan. I ran this on Windows 11, version 24H2. Plex Version 1.112.0.359-0d79a49f --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tubearchivist/archived-tubearchivist-plex#115
No description provided.