[STAGE3] Direct-play 6/7 via episode inspection
This commit is contained in:
1 parent
f57684399c
commit
8940671aa3
2 files changed
+16
-5
No files matched your search
@@ -11,18 +11,20 @@ Jellyfin:
|
||||
всего медиа 7
|
||||
RU audio 0
|
||||
RU субтитры 0
|
||||
direct-play 5
|
||||
direct-play 6
|
||||
```
|
||||
|
||||
Direct-play исправлен: у сериала теперь проверяются эпизоды, а не папка шоу.
|
||||
|
||||
Это честный gap, не «всё хорошо».
|
||||
|
||||
## Задачи
|
||||
|
||||
| Код | Задача | Статус |
|
||||
|---|---|---|
|
||||
| S3-01 | Аудит RU/direct-play | done (0/7 RU, 5/7 direct) |
|
||||
| S3-02 | RU-дорожки/субтитры | open |
|
||||
| S3-03 | Direct-play 7/7 | open |
|
||||
| S3-01 | Аудит RU/direct-play | done (0/7 RU, 6/7 direct) |
|
||||
| S3-02 | RU-дорожки/субтитры | blocked: нет источника RU |
|
||||
| S3-03 | Direct-play 7/7 | in_progress (6/7) |
|
||||
| S3-04 | Запрос из Alpha/Telegram/Matrix | open |
|
||||
| S3-05 | Gate G3 | open |
|
||||
|
||||
|
||||
@@ -111,6 +111,16 @@ def media_coverage():
|
||||
rows = []
|
||||
for x in items:
|
||||
streams = x.get("MediaStreams") or []
|
||||
sources = x.get("MediaSources") or []
|
||||
if x.get("Type") == "Series" and not sources:
|
||||
try:
|
||||
ep = jf("/Shows/%s/Episodes?Fields=MediaStreams,MediaSources&Limit=200"
|
||||
% x.get("Id"))
|
||||
eps = ep.get("Items") or []
|
||||
streams = [s for e in eps for s in (e.get("MediaStreams") or [])]
|
||||
sources = [s for e in eps for s in (e.get("MediaSources") or [])]
|
||||
except Exception:
|
||||
pass
|
||||
audio = [s for s in streams if s.get("Type") == "Audio"]
|
||||
subs = [s for s in streams if s.get("Type") == "Subtitle" or s.get("IsTextSubtitleStream")]
|
||||
has_ru_audio = any((s.get("Language") or "").lower() in rus or
|
||||
@@ -119,7 +129,6 @@ def media_coverage():
|
||||
has_ru_subs = any((s.get("Language") or "").lower() in rus or
|
||||
any(w in (s.get("DisplayTitle") or "").lower() for w in ("russian", "русск"))
|
||||
for s in subs)
|
||||
sources = x.get("MediaSources") or []
|
||||
direct = bool(sources) and all(
|
||||
bool(s.get("SupportsDirectPlay") or s.get("SupportsDirectStream")) for s in sources)
|
||||
rows.append({"id": x.get("Id"), "name": x.get("Name"), "type": x.get("Type"),
|
||||
|
||||
Reference in new issue
Block a user