pigskin / kodi-gamepass

NFL Game Pass add-on for Kodi
Other
122 stars 83 forks source link

Cleanup from NeuLion -> WPP/Bruin conversion #294

Closed aqw closed 6 years ago

aqw commented 7 years ago

Thanks to @kailu's work in #292, we have a great starting point that works. Now, we just need to start moving through and clean up everything.

Number one priority is:

According to @kaileu, the following doesn't work:

My list:

kaileu commented 7 years ago

To a few Points of this:

aqw commented 7 years ago

I'll update the todo above.

---Alex

kaileu commented 7 years ago

Akamai returns HTTP/1.1 403 Forbidden. it seems that they parse the first part if we use "Firefox" as Useragent it will work so yes we can drop the os string. Kodi or python will not work.

aqw commented 7 years ago

@kaileu More likely that they sniff for the word Gecko. But good to hear they aren't using the OS string as far as we can tell.

kaileu commented 7 years ago

@aqw No i test it with Firefox and it works but the Word Gecko is not working.

aqw commented 7 years ago

Ok. We'll use Firefox then. :-)

emilsvennesson commented 7 years ago

A few suggestions right off the top of my head:

aqw commented 7 years ago

@emilsvennesson

---Alex

kaileu commented 7 years ago

@emilsvennesson as far as i understand we can't store the json in a dict. Dict is only a associative array as far as i understand and the json files are multiple nested. But i agree with the rest. @aqw the access_token is valid for an hour the refresh_token didn't have an expire_time

aqw commented 7 years ago

@kaileu Hmm. I assume we'll need both the access_token and the refresh_token when starting a new session. Yes? If so, I don't think caching the token is of much benefit.

kaileu commented 7 years ago

@aqw no we only need the refresh_token but evertime we renew the token a new refresh_token will be generated. But we have to calculate in every request if our token is expire.

emilsvennesson commented 7 years ago

I got a mail from NFL Game Pass a couple of days ago:

"We’re excited to announce that we’re rolling out a new NFL Game Pass platform for the 2017 season. It’s exclusively for European fans and will be brought to you by a new service provider."

kaileu commented 7 years ago

We will see if there will be a new GameRewind or something like this.

Mit freundlichen Grüßen Kai Leutner

Am 03.07.2017 um 19:50 schrieb emilsvennesson notifications@github.com:

I got a mail from NFL Game Pass a couple of days ago:

"We’re excited to announce that we’re rolling out a new NFL Game Pass platform for the 2017 season. It’s exclusively for European fans and will be brought to you by a new service provider."

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

aqw commented 7 years ago

@emilsvennesson Hrmm... well that's... unfortunate.

I think we should keep doing what we're currently doing. Worst case scenario, we'll ship both the new, updated pigskin.py and the old one. Then just add a setting to toggle between the two.

I imagine the NFL is just playing the two companies off of each other and will consolidate on one a year from now.

---Alex

kaileu commented 7 years ago

The other Solution is the US Version will be terminated. We have to see what happens on 01.08.

Mit freundlichen Grüßen Kai Leutner

Am 06.07.2017 um 15:07 schrieb Alex Waite notifications@github.com:

@emilsvennesson Hrmm... well that's... unfortunate.

I think we should keep doing what we're currently doing. Worst case scenario, we'll ship both the new, updated pigskin.py and the old one. Then just add a setting to toggle between the two.

I imagine the NFL is just playing the two companies off of each other and will consolidate on one a year from now.

---Alex

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

aqw commented 7 years ago

@kaileu Hmm. I didn't really consider that. It's possible, but I think less likely, as I assume the NFL likes having their own service for ostensible leverage during contracts with broadcasters.

In any case, as you said, we'll have to wait for August 1st and see.

---Alex

kaileu commented 7 years ago

I got a confirmation from Gamepass that there will be 2 diffrent Gamepass Services depending on the IP your comming from US and EU. Did we have any US Coder here ? Because the Subscription for EU will not work for US so there will be no Chance to Code for US if we are in EU.

aqw commented 7 years ago

Ok, so it looks like only Europe is getting the new service. Everyone else (not sure who that includes) gets the NeuLion service. Ugh.

As far as I'm aware, all of the current developers of this addon are in Europe. So, I suggest that we focus on the new service, get it working, and if/when users come along complaining about support for other regions, we'll help them resuscitate the old code and then have them test and maintain that functionality. Whether that functionality should be maintained in other library or folded into pigskin is another question.

Thoughts on that?

As FYI, I'm starting vacation soon, but I should be back a week or two into the preseason for the annual August-bug-squashing-fest. ;-)

---Alex

kaileu commented 7 years ago

Is it possible to deliver both Pigskins and dynamically import the right one based on location ? Another way would be to maintain 2 diffrent Addons a new One Called Gamepass International and an old one called Gamepass.

aqw commented 7 years ago

Their new FAQ is interesting. Including:

Q: Which Historical Games can I watch?
A: You can watch archived games since the 2016 season, including preseason and playoffs,
   as well as select Super Bowl games [...]"

---Alex

aqw commented 7 years ago

@kaileu I'd rather avoid supporting two addons. There'd be /a lot/ of duplicate code and functionality.

We should either choose which pigskin lib to load based on whether they're a Europe or non-Europe customer, or combine it into one all-knowing library.

First option is easier, the second option feels more "correct".

---Alex

Displayel commented 7 years ago

any update on this ?

aqw commented 7 years ago

@Displayel No update right now.

From what I can tell, most things are working right now. There's a lot of cleanup to do, testing, finding corner cases, but it's functional.

Supporting the old service is hard, as we can't test against it, and I'm /sure/ NeuLion is making changes, as they do every year. For this, I'm waiting for someone with access to come along whom we can help.

As for the rest, I'm going on a 4 day vacation today. But when I'm back, Preseason will be starting, and it's always good to test stuff when live games are going on.

---Alex

maddes-b commented 7 years ago

If you want to test the US services from Europe, just go for a VPN service like Shellfire (a German VPN). Hopefully your account will be valid for the US service.

kaileu commented 7 years ago

No Europe Accounts are not valid for US Services vice versa.

corro commented 7 years ago

A fellow European here. I just wanted to let you guys know that the current version from GitHub works fine so far! I will let you know if I find any bugs. Considering that the current version in the Kodi repo will no longer work, maybe it is time to release a new version?

Edit: Sorry, I did not read the last comments. Apparently you have yet to decide on how to support both services.

aqw commented 7 years ago

As FYI, Game Pass International Support will be handled in issue #313

---Alex

pyrocumulus commented 7 years ago

Completely offtopic... but can I sincerely thank you guys here? If I can't, please stop reading here or delete this message.

As you guys might know, because of the provider switch NFL also switched android apps and such. They have an 'official' NFL Game Pass Europe app but that piece of... work... is raking in 1-star reviews big time. It's pure garbage. Then I thought that my favourite Kodi add-on also did not survive, because I couldn't start it anymore. I figured it was because of the provider switch so all was lost, but so glad I checked here. The Jay C version is running like a charm, who would've thought :)

Thanks for your work guys, I've been enjoying NFL on my sofa for a couple of years now. Couldn't live without it! I don't know Kodi add-on programming, but perhaps I can contribute something in the future.

aqw commented 7 years ago

@pyrocumulus Thanks for the "Thanks." :-)

This offseason has been an.... interesting ride. And this year it lined up with an absolute minimum of free-time for me. The thanks should be especially directed at @kaileu who made this switch happen and @emilsvennesson who fixed a metric schload of the ugly.

I'm glad the addon is working well for you. And there's a lot of ways to help contribute. But simply using the addon and submitting quality bug reports when you run into a problem is a big help. :-)

---Alex

aqw commented 6 years ago

Closing. Most (all) issues are resolved, and any that are remaining should be opened in their own dedicated issues.