Add epg_window

This commit is contained in:
Nirvana
2026-04-19 14:38:40 +02:00
parent 24910c524e
commit c12b1ff88d
2 changed files with 6 additions and 9 deletions
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
import time
import datetime
from typing import ClassVar, Dict, List, Optional
from typing import ClassVar, Dict, List, Optional, Tuple
from ...base.auth import UserPasswordCredentials
from ...base.models import DRMConfig, StreamingChannel, Event
@@ -136,8 +136,8 @@ class MagentaEUProvider(StreamingProvider):
return False
@property
def implements_epg(self) -> bool:
return True
def epg_window(self) -> Tuple[int, int]:
return 7, 7
@property
def catchup_window(self) -> int:
@@ -2,7 +2,7 @@
import re
import time
import requests
from typing import ClassVar, Dict, List, Optional, Any
from typing import ClassVar, Dict, List, Optional, Any, Tuple
from ...base.models import DRMConfig, StreamingChannel
from ...base.models.proxy_models import ProxyConfig
@@ -719,9 +719,6 @@ class MoveTVProvider(StreamingProvider):
**{k: v for k, v in kwargs.items() if k not in ("backwards", "forwards")},
)
# ④ If your framework checks this property to decide whether to call
# get_epg(), keep it. If it inspects get_epg() directly (base returns
# []) you can skip this property entirely.
@property
def implements_epg(self) -> bool: # ← ADD (optional)
return True
def epg_window(self) -> Tuple[int, int]:
return 7, 3