2013-10-10, 02:05
I am disappoint. Oh well, was good while it lasted. Thanks carb0
(2013-10-10, 00:21)Hyperium Wrote: Carb0 try changing the User Agent for the XBMC player that it sends whenever trying to play the file. I believe they recently blocked the XBMC UA and VLC UA. I only tend to think this because these .m3u8 files work in mobile browsers. So I would suggest trying a mobile UA first, that or a Mac Quicktime UA since these .m3u8 links work on a Mac through Quicktime.
(2013-10-10, 03:06)Carb0 Wrote:(2013-10-10, 00:21)Hyperium Wrote: Carb0 try changing the User Agent for the XBMC player that it sends whenever trying to play the file. I believe they recently blocked the XBMC UA and VLC UA. I only tend to think this because these .m3u8 files work in mobile browsers. So I would suggest trying a mobile UA first, that or a Mac Quicktime UA since these .m3u8 links work on a Mac through Quicktime.
Very good find. Unfortunately appending "|User-Agent=" to the URL doesn't work. Is there a better way of changing the useragent?
(2013-10-10, 14:03)amd7674 Wrote: @Hyperium great job. Did you have to run this on Gotham XBMC build? I will try to install it tonight and play with it.
Not 100% sure, but It seems the NFL gamepass (neulion guys) addon (runs on Gotham release) uses UA "android".
headers = {'User-Agent' : 'Android'}
https://github.com/Alexqw/xbmc-gamepass/..._common.py
@Carb0/Hyperium plz let me know if you need any help with testing or something :-)
(2013-10-10, 17:42)Carb0 Wrote: XBMC uses the specified User-Agent only to get the m3u8 file but uses the normal XBMC UA to download the key an receives an 403 forbidden message (according to Wireshark). But how can we force XBMC to always use the specified User-Agent? I'll have a look how the NBA and NFL add-ons are doing this.
(2013-10-10, 18:31)Furner Wrote: Not sure if this makes any difference, but now today I added the add-on to a new system, and my login credentials are being rejected. Maybe NHL is doing some authentication based on the program trying to get into the content?
(2013-10-10, 18:34)Hyperium Wrote:Weird, that is not working for me. Pretty sure my account is ok, I can use it online.(2013-10-10, 18:31)Furner Wrote: Not sure if this makes any difference, but now today I added the add-on to a new system, and my login credentials are being rejected. Maybe NHL is doing some authentication based on the program trying to get into the content?
I just changed the UserAgent that requests the XML from Mozilla to just 'ipad' and it works fine. I did get a authentication error before that, which didn't happen before.
#Header for XML Request
headers = { 'Host' : 'gamecenter.nhl.com',
'User-Agent' : 'ipad',
(2013-10-10, 19:21)Carb0 Wrote: It still works for me without changing the user agent. Make sure that you use your username and not your email address. If you're using your username, try clicking on the "default" button in the add-on settings and enter your username and password again. If that doesn't help, try changing your username on https://account.nhl.com/registeredfanlogin.htm. If it still doesn't work post a debug log.