forked from kenzuya/unshackle
Update unshackle config
This commit is contained in:
@@ -478,7 +478,7 @@ class Netflix(Service):
|
||||
"url": "manifest",
|
||||
"id": int(time.time()),
|
||||
"esn": self.esn.data,
|
||||
"languages": ["en-US"],
|
||||
"languages": ["en-US", "ko"],
|
||||
"clientVersion": "6.0026.291.011",
|
||||
"params": {
|
||||
"clientVersion": "6.0051.090.911",
|
||||
@@ -486,7 +486,7 @@ class Netflix(Service):
|
||||
"challanges": {
|
||||
"default": self.config["payload_challenge_pr"] if self.drm_system == 'playready' else self.config["payload_challenge"]
|
||||
},
|
||||
"contentPlaygraph": ["v2"],
|
||||
"contentPlaygraph": ["v1"],
|
||||
"deviceSecurityLevel": "3000",
|
||||
"drmVersion": 25,
|
||||
"desiredVmaf": "plus_lts",
|
||||
@@ -500,7 +500,7 @@ class Netflix(Service):
|
||||
"licenseType": "standard",
|
||||
"liveAdsCapability": "replace",
|
||||
"liveMetadataFormat": "INDEXED_SEGMENT_TEMPLATE",
|
||||
"manifestVersion": "v2",
|
||||
"manifestVersion": "v1",
|
||||
"osName": "windows",
|
||||
"osVersion": "10.0",
|
||||
"platform": "138.0.0.0",
|
||||
@@ -679,9 +679,15 @@ class Netflix(Service):
|
||||
return tracks
|
||||
# Hydrate missing tracks
|
||||
self.log.info(f"Getting all missing audio and subtitle tracks")
|
||||
last_hydrated_audio = ""
|
||||
last_hydrated_subtitle = ""
|
||||
for audio_hydration, subtitle_hydration in zip_longest(unavailable_audio_tracks, unavailable_subtitle, fillvalue=("N/A", "N/A")):
|
||||
# self.log.info(f"Audio hydration: {audio_hydration}")
|
||||
manifest = self.get_manifest(title, self.profiles, subtitle_hydration[0], audio_hydration[0])
|
||||
self.log.info(f"Audio hydration: {audio_hydration}")
|
||||
try:
|
||||
manifest = self.get_manifest(title, self.profiles, subtitle_hydration[0] if subtitle_hydration[0] != 'N/A' else last_hydrated_subtitle, audio_hydration[0] if audio_hydration[0] != 'N/A' else last_hydrated_audio)
|
||||
except Exception as e:
|
||||
self.log.error(f"Error getting manifest: {e}")
|
||||
continue
|
||||
|
||||
audios = next(item for item in manifest["audio_tracks"] if 'id' in item and item["id"] == audio_hydration[1])
|
||||
subtitles = next(item for item in manifest["timedtexttracks"] if 'id' in item and item["id"] == subtitle_hydration[1])
|
||||
@@ -703,7 +709,7 @@ class Netflix(Service):
|
||||
joc=6 if "atmos" in stream["content_profile"] else None
|
||||
)
|
||||
)
|
||||
|
||||
last_hydrated_audio = audio_hydration[0]
|
||||
# self.log.info(jsonpickle.encode(subtitles, indent=2))
|
||||
# sel
|
||||
|
||||
@@ -727,6 +733,7 @@ class Netflix(Service):
|
||||
name=("[Original]" if language.language == original_language.language else None or "[Dubbing]" if "trackVariant" in subtitle and subtitle["trackVariant"] == "DUBTITLE" else None),
|
||||
)
|
||||
)
|
||||
last_hydrated_subtitle = subtitle_hydration[0]
|
||||
|
||||
return tracks
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ curl_impersonate:
|
||||
dl:
|
||||
best: true
|
||||
sub_format: srt
|
||||
downloads: 1
|
||||
downloads: 4
|
||||
workers: 16
|
||||
lang:
|
||||
- orig
|
||||
@@ -166,7 +166,10 @@ nordvpn:
|
||||
servers:
|
||||
- us: 12
|
||||
# External proxy provider services
|
||||
# proxy_providers:
|
||||
proxy_providers:
|
||||
surfsharkvpn:
|
||||
username: wqKD6vru8vXxUtkXJbvx4HAL # Service credentials from https://my.surfshark.com/vpn/manual-setup/main/openvpn
|
||||
password: zyFnwsYFMNxqbzpf3asu36m6 # Service credentials (not your login password)
|
||||
# nordvpn:
|
||||
# username: username_from_service_credentials
|
||||
# password: password_from_service_credentials
|
||||
@@ -181,9 +184,6 @@ nordvpn:
|
||||
# - "https://username:password@au-syd.prod.surfshark.com" # 2 (Sydney)
|
||||
# - "https://username:password@au-bne.prod.surfshark.com" # 3 (Brisbane)
|
||||
# BG: "https://username:password@bg-sof.prod.surfshark.com"
|
||||
# surfsharkvpn:
|
||||
# username: your_surfshark_service_username # Service credentials from https://my.surfshark.com/vpn/manual-setup/main/openvpn
|
||||
# password: your_surfshark_service_password # Service credentials (not your login password)
|
||||
# servers:
|
||||
# - us: 3844 # force US server #3844 for US proxies
|
||||
# - gb: 2697 # force GB server #2697 for GB proxies
|
||||
|
||||
Reference in New Issue
Block a user