mirror of
https://github.com/vinefeeder/TwinVine.git
synced 2026-07-15 18:10:04 +02:00
upstream updates
This commit is contained in:
@@ -21,7 +21,7 @@ class CRAV(Service):
|
|||||||
Service code for Bell Media's Crave streaming service (https://crave.ca).
|
Service code for Bell Media's Crave streaming service (https://crave.ca).
|
||||||
|
|
||||||
\b
|
\b
|
||||||
Version: 1.0.0
|
Version: 1.0.1
|
||||||
Author: stabbedbybrick
|
Author: stabbedbybrick
|
||||||
Authorization: Credentials
|
Authorization: Credentials
|
||||||
Geofence: CA (API and downloads)
|
Geofence: CA (API and downloads)
|
||||||
@@ -275,10 +275,7 @@ class CRAV(Service):
|
|||||||
return sorted(chapters, key=lambda x: x.timestamp)
|
return sorted(chapters, key=lambda x: x.timestamp)
|
||||||
|
|
||||||
def get_widevine_service_certificate(self, challenge: bytes, **_: Any) -> bytes | None:
|
def get_widevine_service_certificate(self, challenge: bytes, **_: Any) -> bytes | None:
|
||||||
if self.drm_system == "widevine":
|
return self.session.post(url=self.config["endpoints"]["widevine"], data=challenge).content
|
||||||
return self.session.post(url=self.license_url, data=challenge).content
|
|
||||||
|
|
||||||
return None
|
|
||||||
|
|
||||||
def get_widevine_license(self, *, challenge: bytes, title: Episode | Movie, track: Any, **kwargs) -> bytes | str | None:
|
def get_widevine_license(self, *, challenge: bytes, title: Episode | Movie, track: Any, **kwargs) -> bytes | str | None:
|
||||||
headers = {
|
headers = {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class KNPY(Service):
|
|||||||
Service code for Kanopy streaming service (https://www.kanopy.com/).
|
Service code for Kanopy streaming service (https://www.kanopy.com/).
|
||||||
|
|
||||||
\b
|
\b
|
||||||
Version: 1.0.1
|
Version: 1.0.2
|
||||||
Author: stabbedbybrick
|
Author: stabbedbybrick
|
||||||
Authorization: Credentials
|
Authorization: Credentials
|
||||||
Geofence: None
|
Geofence: None
|
||||||
@@ -230,6 +230,7 @@ class KNPY(Service):
|
|||||||
codec=Subtitle.Codec.from_codecs(sub.get("url").split(".")[-1]),
|
codec=Subtitle.Codec.from_codecs(sub.get("url").split(".")[-1]),
|
||||||
language=language,
|
language=language,
|
||||||
url=sub.get("url"),
|
url=sub.get("url"),
|
||||||
|
sdh="CC" in caption.get("label", ""),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user