Skip to content

Commit

Permalink
added inputstream support for VIX TV
Browse files Browse the repository at this point in the history
fixed VIX TV "more items" icon / poster
  • Loading branch information
Olavo Castro committed May 22, 2022
1 parent 66abfaa commit a5aca76
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 29 deletions.
5 changes: 4 additions & 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" standalone="yes"?>
<addon id="plugin.video.brplay" version="2.2.0" name="BR play" provider-name="brplayer">
<addon id="plugin.video.brplay" version="2.2.1" name="BR play" provider-name="brplayer">
<requires>
<import addon="xbmc.python" version="3.0.0" />
<import addon="script.module.requests" version="0.13.2"/>
Expand Down Expand Up @@ -31,6 +31,9 @@
<screenshot>resources/screenshots/screenshot-03.jpg</screenshot>
</assets>
<news>
2.2.1
- added inputstream support for VIX TV
- fixed VIX TV "more items" icon / poster
2.2.0
- Added support for VIX TV Brazil
2.1.0
Expand Down
36 changes: 18 additions & 18 deletions resources/lib/modules/vix/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,24 @@ def playlive(self, media_key, season, episode, meta):
item.setProperty('IsPlayable', 'true')
item.setInfo(type='Video', infoLabels=control.filter_info_labels(meta))

# item.setContentLookup(False)

# if parsed_url.path.endswith(".mpd"):
# mime_type = 'application/dash+xml'
# item.setProperty('inputstream.adaptive.manifest_type', 'mpd')
# if self.isLive:
# item.setProperty('inputstream.adaptive.manifest_update_parameter', 'full')
#
# else:
# mime_type = 'application/vnd.apple.mpegurl'
# item.setProperty('inputstream.adaptive.manifest_type', 'hls')
#
# if mime_type:
# item.setMimeType(mime_type)
# control.log("MIME TYPE: %s" % repr(mime_type))
#
# if control.is_inputstream_available():
# item.setProperty('inputstream', 'inputstream.adaptive')
item.setContentLookup(False)

if parsed_url.path.endswith(".mpd"):
mime_type = 'application/dash+xml'
item.setProperty('inputstream.adaptive.manifest_type', 'mpd')
if self.isLive:
item.setProperty('inputstream.adaptive.manifest_update_parameter', 'full')

else:
mime_type = 'application/vnd.apple.mpegurl'
item.setProperty('inputstream.adaptive.manifest_type', 'hls')

if mime_type:
item.setMimeType(mime_type)
control.log("MIME TYPE: %s" % repr(mime_type))

if control.is_inputstream_available():
item.setProperty('inputstream', 'inputstream.adaptive')

control.resolve(int(sys.argv[1]), True, item)

Expand Down
15 changes: 5 additions & 10 deletions resources/lib/modules/vix/scraper_vod.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def get_carousel(channel='Brazil', platform='webdesktop', page=1, lang='pt'):
'lang': lang,
'page': page + 1,
'art': {
'icon': LOGO,
'thumb': LOGO,
'poster': control.addonNext(),
'fanart': FANART
},
'properties': {
Expand Down Expand Up @@ -160,8 +159,7 @@ def get_carousel_item(item_id, channel='Brazil', platform='webdesktop', lang='pt
'lang': lang,
'page': page + 1,
'art': {
'icon': LOGO,
'thumb': LOGO,
'poster': control.addonNext(),
'fanart': FANART
},
'properties': {
Expand Down Expand Up @@ -204,8 +202,7 @@ def get_categories(page=1, channel='Brazil', platform='webdesktop', lang='pt'):
'lang': lang,
'page': page + 1,
'art': {
'icon': LOGO,
'thumb': LOGO,
'poster': control.addonNext(),
'fanart': FANART
},
'properties': {
Expand Down Expand Up @@ -292,8 +289,7 @@ def get_category(item_id, channel, page=1, platform='webdesktop', lang='pt'):
'lang': lang,
'page': page + 1,
'art': {
'icon': LOGO,
'thumb': LOGO,
'poster': control.addonNext(),
'fanart': FANART
},
'properties': {
Expand Down Expand Up @@ -354,8 +350,7 @@ def get_home_highlights(page=1, channel='Brazil', platform='webdesktop', lang='p
'lang': lang,
'page': page + 1,
'art': {
'icon': LOGO,
'thumb': LOGO,
'poster': control.addonNext(),
'fanart': FANART
},
'properties': {
Expand Down

0 comments on commit a5aca76

Please sign in to comment.