Skip to content

Commit

Permalink
Merge pull request #4585 from eracknaphobia/plugin.video.nhlgcl@matrix
Browse files Browse the repository at this point in the history
[plugin.video.nhlgcl@matrix] 2024.10.17+matrix.1
  • Loading branch information
basrieter authored Oct 17, 2024
2 parents 23f93c8 + 6993a53 commit 73c05ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.video.nhlgcl/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.nhlgcl" name="NHL TV™" version="2024.4.18+matrix.1" provider-name="eracknaphobia">
<addon id="plugin.video.nhlgcl" name="NHL TV™" version="2024.10.17+matrix.1" provider-name="eracknaphobia">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.pytz" />
Expand Down
5 changes: 3 additions & 2 deletions plugin.video.nhlgcl/resources/lib/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,11 @@ def stream_to_listitem(stream_url):
else:
listitem.setProperty("inputstreamaddon", "inputstream.adaptive")
listitem.setProperty("inputstream.adaptive.manifest_type", "hls")
listitem.setProperty("inputstream.adaptive.stream_headers", 'User-Agent=%s' % UA_PC)
listitem.setProperty("inputstream.adaptive.stream_headers", 'User-Agent=%s' % UA_PC)
listitem.setProperty("inputstream.adaptive.manifest_headers", 'User-Agent=%s' % UA_PC)
listitem.setProperty("inputstream.adaptive.license_key", '|User-Agent=%s' % UA_PC)
else:
listitem = xbmcgui.ListItem(path=f"{stream_url}|{headers}")
listitem = xbmcgui.ListItem(path=f"{stream_url}|{'User-Agent=%s' % UA_PC}")

listitem.setMimeType("application/x-mpegURL")
return listitem

0 comments on commit 73c05ec

Please sign in to comment.