mirror of
https://github.com/glomatico/votify.git
synced 2026-09-26 19:12:27 +02:00
Rename encryption_data_widevine to widevine_pssh
This commit is contained in:
@@ -58,7 +58,7 @@ class DownloaderEpisodeVideo(DownloaderVideo):
|
||||
logger.warning("Episode has no video, skipping")
|
||||
return
|
||||
stream_info = self.get_stream_info(video_gid)
|
||||
if stream_info.encryption_data_widevine and self.downloader.cdm is None:
|
||||
if stream_info.widevine_pssh and self.downloader.cdm is None:
|
||||
logger.warning(
|
||||
"Podcast video has Widevine encryption, "
|
||||
"but Widevine decryption is disabled, skipping"
|
||||
@@ -89,10 +89,10 @@ class DownloaderEpisodeVideo(DownloaderVideo):
|
||||
else:
|
||||
key_id, decryption_key = (
|
||||
self.downloader.get_widevine_decryption_key(
|
||||
stream_info.encryption_data_widevine,
|
||||
stream_info.widevine_pssh,
|
||||
"video",
|
||||
)
|
||||
if stream_info.encryption_data_widevine
|
||||
if stream_info.widevine_pssh
|
||||
else (None, None)
|
||||
)
|
||||
encrypted_path_video = self.downloader.get_file_temp_path(
|
||||
@@ -126,7 +126,7 @@ class DownloaderEpisodeVideo(DownloaderVideo):
|
||||
self.download_segments(stream_info.segment_urls_video, temp_path_video)
|
||||
logger.debug(f'Downloading audio to "{temp_path_audio}"')
|
||||
self.download_segments(stream_info.segment_urls_audio, temp_path_audio)
|
||||
if stream_info.encryption_data_widevine:
|
||||
if stream_info.widevine_pssh:
|
||||
logger.debug(
|
||||
f'Decryping video/audio to "{decrypted_path_video}"/"{decrypted_path_audio}" '
|
||||
f'and remuxing to "{remuxed_path}"'
|
||||
|
||||
@@ -200,7 +200,7 @@ class DownloaderMusicVideo(DownloaderVideo):
|
||||
return
|
||||
else:
|
||||
key_id, decryption_key = self.downloader.get_widevine_decryption_key(
|
||||
stream_info.encryption_data_widevine,
|
||||
stream_info.widevine_pssh,
|
||||
"video",
|
||||
)
|
||||
encrypted_path_video = self.downloader.get_file_temp_path(
|
||||
|
||||
@@ -68,7 +68,7 @@ class DownloaderVideo:
|
||||
manifest["contents"][0]["encryption_infos"],
|
||||
"widevine",
|
||||
)
|
||||
stream_info.encryption_data_widevine = encryption_info["encryption_data"]
|
||||
stream_info.widevine_pssh = encryption_info["encryption_data"]
|
||||
video_profiles = list(
|
||||
filter(
|
||||
lambda x: x["mime_type"].startswith("video")
|
||||
|
||||
+1
-1
@@ -39,4 +39,4 @@ class StreamInfoVideo:
|
||||
segment_urls_audio: list[str] = None
|
||||
file_type_video: str = None
|
||||
file_type_audio: str = None
|
||||
encryption_data_widevine: str = None
|
||||
widevine_pssh: str = None
|
||||
|
||||
Reference in New Issue
Block a user