Skip to content

Commit

Permalink
v1.2.1 fixed the addon after website changes
Browse files Browse the repository at this point in the history
  • Loading branch information
phate89 committed Mar 19, 2017
1 parent e221fbb commit b7f2b8f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 3 additions & 5 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.videomediaset" name="Video Mediaset" provider-name="phate89, aracnoz" version="1.2.0">
<addon id="plugin.video.videomediaset" name="Video Mediaset" provider-name="phate89, aracnoz" version="1.2.1">
<requires>
<import addon="xbmc.python" version="2.24.0" />
<import addon="script.module.phate89" version="1.0.0"/>
Expand All @@ -17,9 +17,7 @@
<license>GNU GENERAL PUBLIC LICENSE. Version 2, June 1991</license>
<forum>http://forum.kodi.tv/showthread.php?tid=292876</forum>
<source>https://github.com/phate89/plugin.video.videomediaset</source>
<news>v1.2.0
- fixed the addon after website changes
- added images to program lists
- refactored the code</news>
<news>v1.2.1
- fixed the addon after website changes</news>
</extension>
</addon>
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[B]1.2.1[/B]
- fixed the addon after website changes

[B]1.2.0[/B]
- fixed the addon after website changes
- added images to program lists
Expand Down
10 changes: 5 additions & 5 deletions resources/lib/mediaset.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_canali_live(self):
def get_stream(self, id):
self.log('Trying to get the stream with id ' + str(id), 4)

url = "http://cdnselector.xuniplay.fdnames.com/GetCDN.aspx?streamid={id}&format=json".format(id=id)
url = "http://cdnsel01.mediaset.net/GetCdn.aspx?streamid={id}&format=json".format(id=id)

jsn = self.getJson(url)

Expand All @@ -126,9 +126,9 @@ def get_stream(self, id):
stream = {}
for vlist in jsn["videoList"]:
self.log( "videomediaset: streams {url}".format(url=vlist))
if ( vlist.find("/wmv2/") > 0): stream["wmv"] = vlist
if ( vlist.find("/mp4/") > 0): stream["mp4"] = vlist
if ( vlist.find("/mp4/") > 0): stream["f4v"] = vlist
if ( vlist.find("/mp4/") > 0): stream["smoothstream"] = vlist
if ( vlist.find(".wmv") > 0): stream["wmv"] = vlist
if ( vlist.find(".mp4") > 0): stream["mp4"] = vlist
if ( vlist.find(".f4v") > 0): stream["f4v"] = vlist
if ( vlist.find(".ism") > 0): stream["smoothstream"] = vlist
return stream
return False

0 comments on commit b7f2b8f

Please sign in to comment.