Skip to content

Commit

Permalink
Merge pull request #1 from rywko/master
Browse files Browse the repository at this point in the history
dailymotion auto stream quality fixed
  • Loading branch information
rywko authored Dec 31, 2019
2 parents 5c6faa6 + f5a3393 commit 12ad988
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<addon id="script.module.stream.resolver" name="Stream Resolver" provider-name="Libor Zoubek" version="1.6.61">
<addon id="script.module.stream.resolver" name="Stream Resolver" provider-name="Libor Zoubek" version="1.6.62">
<requires>
<import addon="xbmc.python" version="2.1.0" />
<import addon="script.common.plugin.cache" version="2.5.5"/>
Expand Down
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
11 changes: 11 additions & 0 deletions lib/server/dailymotionresolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 12ad988

Please sign in to comment.