fix(movies): ingest nie dopisuje linkow z martwej rodziny seekplayer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2dbb9ba65f
commit
6da817dc79
1 changed files with 7 additions and 0 deletions
|
|
@ -340,7 +340,14 @@ def _sync_playback_sources(
|
|||
session: Session, *, movie_id: uuid.UUID, norm: NormalizedMovie
|
||||
) -> None:
|
||||
"""Upsert po (origin, page_url), unique constraint w tabeli."""
|
||||
from app.extractors.hosters import seekplayer_engine
|
||||
|
||||
for pb in norm.playback_sources:
|
||||
# Rodzina seekplayer (easyvidplayer, embedseek, upns, player4me) nie serwuje wideo
|
||||
# od 08.2026 i zostala wygaszona hurtem 27.08, ale ingest dopisywal nowe takie linki
|
||||
# (~1700 do 10.2026, zgloszenie e9fc12e8): czarny ekran albo minuta czekania.
|
||||
if seekplayer_engine.matches(pb.embed_url or pb.page_url or ""):
|
||||
continue
|
||||
existing = session.execute(
|
||||
select(MoviePlaybackSource).where(
|
||||
MoviePlaybackSource.origin == pb.origin,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue