Version 0.10.3

This commit is contained in:
Paco8 committed 2024-12-18 14:58:38 +01:00
1 parent c01bdf30b6
commit 5ad288ddf6
4 files changed
+11 -1

No files matched your search

+2
View File
@@ -827,6 +827,8 @@ class Movistar(object):
video = data['Pases'][0]
t['subscribed'] = self.is_subscribed_vod(video.get('tvProducts', []))
if 'ShowId' in video: t['show_id'] = video['ShowId']
if 'Canal' in video and 'CasId' in video['Canal']:
t['cas_id'] = video['Canal']['CasId']
stype = None
if 'catalog=catchup' in ed['Ficha']:
stype = 'catch-up'
+7
View File
@@ -116,6 +116,13 @@ class RequestHandler(BaseHTTPRequestHandler):
content = content.replace('lang="{}"'.format(key), 'lang="{}"'.format(value))
content = re.sub(r'lang="q([^"]*)"', r'lang="es-[q\1]"', content)
if addon.getSettingBool('delete_ec3_audio'):
pattern = re.compile(r'<AdaptationSet[^>]*contentType="audio"[^>]*>.*?</AdaptationSet>', re.DOTALL)
matches = pattern.findall(content)
for match in matches:
if 'codecs="ec-3"' in match:
content = content.replace(match, "<!-- Deleted ec-3 audio track -->\n")
# For U7D
content = content.replace('timeShiftBufferDepth="PT3600S"', 'timeShiftBufferDepth="PT10800S"')