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] 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