mirror of
https://github.com/vinefeeder/TwinVine.git
synced 2026-07-15 18:10:04 +02:00
upstream spammers code removed
This commit is contained in:
@@ -65,7 +65,7 @@ The top level vinefeeder config file at TwinVine/packages/vinefeeder/src/vinefe
|
|||||||
|
|
||||||
**Services**
|
**Services**
|
||||||
|
|
||||||
Vinefeeder currently has 8 services for which search, browse and list-select are available
|
Vinefeeder currently has 10 services for which search, browse and list-select are available
|
||||||
|
|
||||||
ALL4 BBC ITVX MY5 PLEX RTE STV TPTV TVNZ U
|
ALL4 BBC ITVX MY5 PLEX RTE STV TPTV TVNZ U
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ from rich.text import Text
|
|||||||
from rich.tree import Tree
|
from rich.tree import Tree
|
||||||
|
|
||||||
from envied.core import binaries
|
from envied.core import binaries
|
||||||
from envied.core.cdm import DecryptLabsRemoteCDM
|
|
||||||
from envied.core.config import config
|
from envied.core.config import config
|
||||||
from envied.core.console import console
|
from envied.core.console import console
|
||||||
from envied.core.constants import DOWNLOAD_LICENCE_ONLY, AnyTrack, context_settings
|
from envied.core.constants import DOWNLOAD_LICENCE_ONLY, AnyTrack, context_settings
|
||||||
@@ -354,10 +353,8 @@ class dl:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if self.cdm:
|
if self.cdm:
|
||||||
if isinstance(self.cdm, DecryptLabsRemoteCDM):
|
|
||||||
drm_type = "PlayReady" if self.cdm.is_playready else "Widevine"
|
if hasattr(self.cdm, "device_type") and self.cdm.device_type.name in ["ANDROID", "CHROME"]:
|
||||||
self.log.info(f"Loaded {drm_type} Remote CDM: DecryptLabs (L{self.cdm.security_level})")
|
|
||||||
elif hasattr(self.cdm, "device_type") and self.cdm.device_type.name in ["ANDROID", "CHROME"]:
|
|
||||||
self.log.info(f"Loaded Widevine CDM: {self.cdm.system_id} (L{self.cdm.security_level})")
|
self.log.info(f"Loaded Widevine CDM: {self.cdm.system_id} (L{self.cdm.security_level})")
|
||||||
else:
|
else:
|
||||||
self.log.info(
|
self.log.info(
|
||||||
@@ -923,9 +920,7 @@ class dl:
|
|||||||
service.get_playready_license
|
service.get_playready_license
|
||||||
if (
|
if (
|
||||||
isinstance(self.cdm, PlayReadyCdm)
|
isinstance(self.cdm, PlayReadyCdm)
|
||||||
or (
|
|
||||||
isinstance(self.cdm, DecryptLabsRemoteCDM) and self.cdm.is_playready
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
and hasattr(service, "get_playready_license")
|
and hasattr(service, "get_playready_license")
|
||||||
else service.get_widevine_license,
|
else service.get_widevine_license,
|
||||||
@@ -1254,17 +1249,13 @@ class dl:
|
|||||||
return
|
return
|
||||||
|
|
||||||
if isinstance(drm, Widevine):
|
if isinstance(drm, Widevine):
|
||||||
if not isinstance(self.cdm, (WidevineCdm, DecryptLabsRemoteCDM)) or (
|
if not isinstance(self.cdm, (WidevineCdm)):
|
||||||
isinstance(self.cdm, DecryptLabsRemoteCDM) and self.cdm.is_playready
|
|
||||||
):
|
|
||||||
widevine_cdm = self.get_cdm(self.service, self.profile, drm="widevine")
|
widevine_cdm = self.get_cdm(self.service, self.profile, drm="widevine")
|
||||||
if widevine_cdm:
|
if widevine_cdm:
|
||||||
self.log.info("Switching to Widevine CDM for Widevine content")
|
self.log.info("Switching to Widevine CDM for Widevine content")
|
||||||
self.cdm = widevine_cdm
|
self.cdm = widevine_cdm
|
||||||
elif isinstance(drm, PlayReady):
|
elif isinstance(drm, PlayReady):
|
||||||
if not isinstance(self.cdm, (PlayReadyCdm, DecryptLabsRemoteCDM)) or (
|
if not isinstance(self.cdm, (PlayReadyCdm)):
|
||||||
isinstance(self.cdm, DecryptLabsRemoteCDM) and not self.cdm.is_playready
|
|
||||||
):
|
|
||||||
playready_cdm = self.get_cdm(self.service, self.profile, drm="playready")
|
playready_cdm = self.get_cdm(self.service, self.profile, drm="playready")
|
||||||
if playready_cdm:
|
if playready_cdm:
|
||||||
self.log.info("Switching to PlayReady CDM for PlayReady content")
|
self.log.info("Switching to PlayReady CDM for PlayReady content")
|
||||||
@@ -1547,7 +1538,7 @@ class dl:
|
|||||||
del cdm_api["type"]
|
del cdm_api["type"]
|
||||||
|
|
||||||
# All DecryptLabs CDMs use DecryptLabsRemoteCDM
|
# All DecryptLabs CDMs use DecryptLabsRemoteCDM
|
||||||
return DecryptLabsRemoteCDM(service_name=service, vaults=self.vaults, **cdm_api)
|
return None
|
||||||
else:
|
else:
|
||||||
del cdm_api["name"]
|
del cdm_api["name"]
|
||||||
if "type" in cdm_api:
|
if "type" in cdm_api:
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ def download(
|
|||||||
|
|
||||||
track_type = track.__class__.__name__
|
track_type = track.__class__.__name__
|
||||||
thread_count = str(config.n_m3u8dl_re.get("thread_count", max_workers))
|
thread_count = str(config.n_m3u8dl_re.get("thread_count", max_workers))
|
||||||
|
retry_count = str(config.n_m3u8dl_re.get("retry_count", max_workers))
|
||||||
ad_keyword = config.n_m3u8dl_re.get("ad_keyword")
|
ad_keyword = config.n_m3u8dl_re.get("ad_keyword")
|
||||||
|
|
||||||
arguments = [
|
arguments = [
|
||||||
@@ -160,6 +161,8 @@ def download(
|
|||||||
output_dir,
|
output_dir,
|
||||||
"--thread-count",
|
"--thread-count",
|
||||||
thread_count,
|
thread_count,
|
||||||
|
"--download-retry-count",
|
||||||
|
retry_count,
|
||||||
"--no-log",
|
"--no-log",
|
||||||
"--write-meta-json",
|
"--write-meta-json",
|
||||||
"false",
|
"false",
|
||||||
|
|||||||
Reference in New Issue
Block a user