pigskin / kodi-gamepass

NFL Game Pass add-on for Kodi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when trying to start a stream

rschloeg opened this issue · comments

Like already commented in #397 by atduke and me:
Since Yesterday, I can not start a new stream and get an error message. The Kodi logfile shows the error message
20:37:39.150 T:1761604512 ERROR: could not find GP tokens to refresh
I have the latest version installed. The day before it worked fine.

kodi.log

Same here. Neither Jets vs. Browns nor NFL Network is working.

Same issue. My error says "Unexpected Error :( Please enable debugging for both the addon and Kodi and submit a bug report."

My guess is its related to pigskin/pigskin#23

@kaileu As far as I understand you mean we should try the newest version of the pigskin library. But how can we install that one? Up to now pigskin is part of the gamepass package, but the newest build of that is much older than the newest version of pigskin.

Hi Kai,

thanks for this, but unfortunately just combining your changes with the latest Github version if the Game Pass addon does not fix the issue (at least for me)

I am using still the old version which works for me:(
I didn‘t have time at the moment to review all the changes from alex maybe there is also something else wrong

So you are saying you are using the old release and combined it with your tweaks? Will test that right away

I can approve. Grabbing the old repo version or the master from Kaileu's github here: https://github.com/kaileu/xbmc-gamepass + editing the \resources\lib\pigskin.py in the zip archive
Line 349: vs_format = i.attrib['format'].lower() to vs_format = i.attrib['name'].lower() then installing it in Kodi via the install from zip will get the playback working again.

I can confirm that. It works for me, too. Thank you very much, @kaileu and @Ghoschdi !
The only difference for me was that in my pigskin.py the line to be changed was line 307. but luckily there is only one line in the script which fits to the description of @Ghoschdi

The above initially worked for me, however after exiting Kodi and re-entering I am continually receiving the below error. Please can you advise if there's anything I can try. Thanks

11:22:57.599 T:7804 ERROR: EXCEPTION: Dialog not created.
11:22:57.727 T:7804 ERROR: Login Failed.
11:22:57.727 T:7804 DEBUG: .

Ah.... after checking repo, master and older versions with and without the 'format' to 'name' fix and receiving the exact same ERROR: Login Failed on each.
Refreshed my IP address; and it's allowed me to login again, so possibly a timing issue or it is an IP ban maybe.

I too can confirm that after downgrading to 2018.08.23 and implementing the fix provided by @kaileu, I can stream games again.

I've tried editing the file on the old version, no luck, tried switching to the 9-8 version, no luck. I wish I had something more to offer than I'm running Kodi 17.6 on a fire TV v2. The add-on worked great on Sunday /Monday, Jets vs Browns was when it failed.

I would also like to extend a big thank you to the people that make this Add-on possible to exist. Been using it for 2 years now. I am not a programmer but have programmed enough to edit code.

I can approve. Grabbing the old repo version or the master from Kaileu's github here: https://github.com/kaileu/xbmc-gamepass + editing the \resources\lib\pigskin.py in the zip archive
Line 349: vs_format = i.attrib['format'].lower() to vs_format = i.attrib['name'].lower() then installing it in Kodi via the install from zip will get the playback working again.

Works here as well. Not sure what the line number was but found the said text and after installing the zip GamePass worked again on my Kodi.

Edited ZIP file can be found here https://ufile.io/puxho

@fritsie thanks I'll give it a try and report back

Ok I tried the master file and I get "failed_login" (the credentials are correct), when I update to 8/23 it logs on fine but when any video is selected it gives the "Unexpected error..." Message.
@fritsie what version of Kodi are you running?

I can approve. Grabbing the old repo version or the master from Kaileu's github here: https://github.com/kaileu/xbmc-gamepass + editing the \resources\lib\pigskin.py in the zip archive
Line 349: vs_format = i.attrib['format'].lower() to vs_format = i.attrib['name'].lower() then installing it in Kodi via the install from zip will get the playback working again.

Works here as well. Not sure what the line number was but found the said text and after installing the zip GamePass worked again on my Kodi.

Edited ZIP file can be found here https://ufile.io/puxho

@fritsie82 This zip file is perfect. Thanks for the help.

Are you guys doing anything other than, uninstalling game pass, then downloading the 8/23 zip, editing the pigskin.py file, re-zipping and installing the add-on via zipfile method? Could using Kodi 17.6 Android, ARM be affecting me? I'm at a loss.

@JimmyJones79
All I did was download the Edited ZIP file that @fritsie82 posted. Then I installed that add-on via ZIP. Then when I opened GamePass, full functionality had returned.

The failed login problems seems to occur when you logged in to the service on another device or multiple times on the same one. I think they found out that last season you could watch GP on 3 separate devices with 1 account. I believe some of the fixes that @aqw has done in the newer versions address this, but break the functionality of the playback. So i recommend to log out of all devices, do as SirScott said and try in about 15 mins.

Got mine working on 1st and 2nd Gen firesticks, so shouldn't be an android/arm issue. To circumvent the login error I was getting, I did have to reboot my router to force a refresh of my IP address as waiting/logging out of everything did not alleviate it.

I have a static IP address and can tell you, just logging out of everything and waiting long enough for all sessions to terminate does work.

That said, getting a new IP accelerates your efforts, sure

Fair enough, I must have just been impatient

Fair enough, I must have just been impatient

I know that one! :)

Well I uninstalled, then installed the Master file again. Loaded up fine and is now streaming the Jets browns game with no issue, sometimes I think the thing just likes messing with me because I didn't do anything different other than 12hrs passed from the last attempt.
I'll keep my fingers crossed for kick off time today. Thanks for the help guys, it's appreciated.
@Ghoschdi ip address timing certainly may of been the issue for me

Live Eagles vs Colts streaming fine.

Hoping someone can assist. I am having many problems and have tried multiple solutions. I was using the Master branch from https://github.com/aqw/xbmc-gamepass and was able to login but got the errors anytime I would try to start a stream. I went ahead and followed this thread and downloaded the updated file https://ufile.io/puxho which had the edited pigskin.py from Kaileu's master branch.

When I installed that file I could not login to the app at all looks to be like the login issues from #397 What I tried next was applying the change vs_format = i.attrib['format'].lower() to vs_format = i.attrib['name'].lower() here into the aqw master, the login lines used different variables, first I only replaced the ['format'] to ['name'] but that didn't fix is to then next I replaced the entire For vs from aqe with the For I from the updated kaileu version and I still can't play streams

Just sign out of all apps, use the zip file and give the sessions time to terminate. Then try to login again. Until aqw is back or someone from the team can figure out all the clashing changes, there is nothing else you can do (unless you are familiar with python yourself and debug/merge the versions)

@fritsie82 zip file worked as a charm! Thank you very much! Also big thanks to people who develop and maintain this NFL game pass addon!

What about people like me with Android TV? nothing works on Kodi with my Android TV device. Get an error: "Unexpected Error :( Please enable debugging for both the addon and Kodi and submit a bug report."

Actually I'm using Android TV , too. The only challenge I had, was to figure out how to load the modified zip -file to my Android TV system. My solution was to use my WLAN, which has network hardrive connected. From there it was easy, just install addon from zip file (Kodi showed automatically my network harddrive) and it started work.

@jpieti I don't get an error message now, but when I try to start NFL network or a game, I choose the quality of the stream but nothing happens.

One more update: I managed to start Highlights & Condensed games. The rest (NFL Network, full games, coache's film & NFL network archive) dont work.

@laufgas In my installation everything works: at least the stuff I need: the games and NFL Network live. Sorry, but I have no clue, why they don't work in your system.

@laufgas I don't know, if this has something to do with this... probably not... but I have followed this tip, which helped me earlier:

  1. go to add-ons-my Addons
  2. VideoPlayer Input Stream
  3. Enable input Stream Adaptive
  4. Go to gamepass Settings-->display/Video
  5. Activate Input Stream Adaptive.
    This was because of this: https://forum.kodi.tv/showthread.php?tid=320450&pid=2768126#pid2768126

But like I said, I don't know, if this has anything to do with this.

The fix worked for me one time, but after logging out(after a few days) i can't seen to log in again. Reinstalling doesn't seen to help either.. probably because the user settings are saved.

Now I'm getting the 'login failed' error. In the log there's an error which says something like this: you're not allowed to login in from this server. I give up. I started to use built-in chromecast and NFL game pass App from my phone.

I never wrote a xbmc addon, but I could not accept that I am not able to watch Drew shredding the record or the shootout between Bortels and the new Uber-QB. So I used my limited knowledge of Python and the Debug Console of Chrome to fix this.

I don't know how robust this is, but it's working for me...

Changes:
tommmlij@f3cb73a

The zip can be found here:
https://github.com/tommmlij/xbmc-gamepass/releases

Have fun and happy gameday.

@tommmlij Glad you got this working. I've left a few comments in your repo. If you can do some additional testing, I'll include your changes.

If thats your opinion than please make a pull request instead of release an own version.

@kaileu
That is not my opinion, but what I did to make that work for me.
The changes are not tested thoroughly, so I made no pull request. But since the next game is in 11h I made a fork and wanted people to know and potentially make it work. Geeze...

@tommmlij Thank you very much! Works great at least in my system!

I've pushed a version that ports over the latest auth code form pigskin, includes your changes to the post data for gigya auth, adds further guards against exceptions, and includes @kaileu's videoSource fix.

This /should/ work, though no guarantees.

Testing is most welcome.

Yup, I'm back in business. I installed master and can log-in and stream games again. Thanks to all who contributed!

Cheers!

Master works great now. Thanks guys!

Sorry but I'm abit confused. Which file should I download to test and see if it's working now?

Sorry but I'm abit confused. Which file should I download to test and see if it's working now?

I think @aqw means the content of the Master branch. You can easily download the Zip file for installation by choosing the master branch and download the Zip file from the "clone or download" button.

I can also confirm that Master is working smoothly. And I'm pretty sure that games are loading a lot faster now (1-2 seconds compared to felt 5+ seconds in the last versions).

This worked for me too on multiple machines last night but this morning I had the same old "debugging" message when running a stream.

I cleared my cache in Kodi and now it is working again. So try clearing your cache if you are still having problems with the updated Master. Hope this helps someone.

Hi,

I loaded the current master branch and I'm able to login and start condensed and the highlight videos, but unfortunately not the actual game video. I'm allowed to select the bitrate and then nothing happens. In the log there is the following message:

kodi_short.txt

Working flawless for me on both live and replay.
@hrym55: Can you switch to inputstream adaptive? Look at #410 (comment) for instructions

Oh, I didn't realize this still needs to be done. Now it works. Thank you!

@tommmlij thank you. I had it working, then last Sunday it stopped again I was getting the "failed_login" error even though I knew the credentials were correct. So I hooked up my laptop to the TV and watched it that way. Tried again today and still got the failed_login error. Just read that you posted a link to a new file you created and figured give it a try. First time I got a add-on error but I tried again and it works. Thank you.

Just wanted to thank you all. Working now. Btw, we can't watch the red zone channel there?

, we can't watch the red zone channel there?

Sure, i always watch red zone whenever my team is not playing, works smoothly

I know its a while, but I can confirm that current master still works, while none of the last two releases does.
How much effort is it to put a new release out there, just to avoid the search for this topic here?

The latest master works flawlessly with the last Kodi 17. release. Cutting a new release is sth the maintainers have to do and since @aqw is very busy with an hefty workload, it might take a while. My gut feeling also says that the next release might bring also compatibility for v18 but that will mean even longer waiting time.

Doing some clean-up and this issue report is really old, so I'm closing it.