fix: Implement universal openVideoPreview and add Stash container/transcode stream path resolution

This commit is contained in:
david
2026-08-18 11:12:09 -04:00
parent 45cb902647
commit 8c723cfabc
2 changed files with 42 additions and 7 deletions
+5
View File
@@ -664,6 +664,10 @@ def resolve_stream_video_path(requested_path):
stem = os.path.splitext(basename)[0]
candidate_paths = [
requested_path.replace('/data/', '/mnt/isolation/videos/'),
requested_path.replace('/data', '/mnt/isolation/videos'),
requested_path.replace('/media/stashapp/generated/', '/mnt/isolation/stashapp/generated/'),
requested_path.replace('/generated/', '/mnt/isolation/stashapp/generated/'),
requested_path.replace('/isolation/videos/', '/mnt/isolation/videos/'),
requested_path.replace('/isolation/', '/mnt/isolation/'),
requested_path.replace('/downloads/', '/mnt/isolation/videos/unsorted/'),
@@ -673,6 +677,7 @@ def resolve_stream_video_path(requested_path):
requested_path.replace('/downloads/', '/mnt/isolation/downloads/'),
os.path.join('/mnt/isolation/videos/unsorted', basename),
os.path.join('/mnt/isolation/videos/videodownloader', basename),
os.path.join('/mnt/isolation/stashapp/generated/transcodes', basename),
os.path.join('/mnt/isolation/incomplete', basename),
os.path.join('/mnt/isolation/downloads', basename)
]