So, yesterday I managed to generate a link to the m3u8 master playlist for the live stream and parse it to get the different qualities.
However, when opening the stream with Kodi, it doesn't use the cookie saved earlier to open the stream.
It tries to use existing cookies like imdb, fanart.tv, etc but not the one used for login earlier.
From what I understand, there's a cookie.dat where Kodi stores cookies. Mine is saved in the plugin's userdata folder.
However, if I try to save it in cookie.dat (I assumed that removing the handling of cookies with a cookie_jar would save it in cookie.dat), login fails.
I don't really know what I can do to fix that. If anyone knows, help will be greatly appreciated
It seems to be the last stretch before content from the Network is playable. After that, all that's left to do is parsing the VOD content and generating menus.
Edit: Okay, I'm a moron. I forgot parts of the code from the NFL plugin to parse M3U8... It actually adds the cookie to the URL using "|".
Now the cookie is sent to the playlist, but it's incomplete. There are a few cookies generated after login: entpc, actionxCookie and mediaAuth_v2.
I'm currently trying to find what generates these.
Edit2: I got entpc, but I can't find what generates actionxCookie and mediaAuth_v2...
Edit3: Found how to get mediaAuth_v2. actionxCookie seems to be always the same, so I'll try generating it myself.
I'll implement all that tomorrow and we'll see where that gets us.