From 00628a0bdb025e8df4515fb5f99a7cfec1f5e2a2 Mon Sep 17 00:00:00 2001 From: rywko <43437992+rywko@users.noreply.github.com> Date: Tue, 31 Dec 2019 13:26:36 +0100 Subject: [PATCH 1/2] Update dailymotionresolver.py --- lib/server/dailymotionresolver.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/server/dailymotionresolver.py b/lib/server/dailymotionresolver.py index a334232..4b356e6 100644 --- a/lib/server/dailymotionresolver.py +++ b/lib/server/dailymotionresolver.py @@ -77,4 +77,15 @@ def resolve(url): item['lang'] = '???' item['headers'] = headers result.append(newitem) + if not result and cc[0][0]=='auto': + json_source=cc[0][1] + m_url=json_source[0].get('url', None) + r = util.request(m_url) + streams = re.compile(r'RESOLUTION=\d+x(\d+).*\n([^\s]+)').findall(r) + for quality, url in streams: + item = {} + item['url'] = url + item['quality'] = quality + 'p' + item['title'] = 'video' + result.append(item) return result From f5a3393f2f9181210a45aa5ff0c29564cc2497fe Mon Sep 17 00:00:00 2001 From: rywko Date: Tue, 31 Dec 2019 13:49:41 +0100 Subject: [PATCH 2/2] dailymotion auto stream quality fixed --- addon.xml | 2 +- changelog.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index 87d24fc..090aa67 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/changelog.txt b/changelog.txt index ab79a57..b8e90ff 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,5 @@ +[B]1.6.62:[/B] +- fix dailymotion auto quality stream [B]1.6.61:[/B] - fix youtube signature [B]1.6.60:[/B]