Solved m3u8 stream cookie issue? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Solved m3u8 stream cookie issue? (/showthread.php?tid=321820) |
m3u8 stream cookie issue? - User 395955 - 2017-09-21 Hello guys, i am currently developing an addon for akibapass.de, a legal german anime streaming site and the last without kodi plugin. they offering two things: 1. you can buy anime and download them 2. you can have a premium subscription and stream anime Since point 1 is easy, this is currently working. But point 2 is a little bit more difficulty. i am at this point:
** = link can be used multiple times, cookies are required Full debug log of this process: https://gist.github.com/MrKrabat/0ffd13521a80ef792cafc32d9610d0c5 mnf and 1080p-mnfsnd: https://gist.github.com/MrKrabat/87823689fcd5545c90fb89b95d1d0fc8 Now comes the clue: When i directly give kodi the link (with cookies) to the mnfsnd-file (audio or video) it plays successful. Plugin source: https://github.com/MrKrabat/plugin.video.akibapass Here is the streaming part https://github.com/MrKrabat/plugin.video.akibapass/blob/1985abc49359f139ef46dee755750602bd2e0a8c/resources/lib/netapi.py#L279 (links to old commit) I am developing on Kodi 17.4 using the latest windows store build. Some questions:
Greetings, MrKrabat PS: Even if i say "Kodi" everytime, i know that ffmpeg is doing most of this RE: m3u8 stream cookie issue? - User 395955 - 2017-09-22 At first sorry for the double post, i found the reason why this is not working and how to fix it. The problem is, that the first manifest file is a one-use link but kodi access it two times! Kodi downloads the file --> check how to handle it ffmpeg downloads the file --> Error 00008 link already used Solution: Download the file, start a local server providing it for kodi, SUCCESSFUL. (passing it to kodi as local file did not work, since it requires cookies but you can't set cookies for a local file) EDIT: Kodi actually access the file 4 times. wow. EDIT 2: Solution 2: Code: item = xbmcgui.ListItem(...) |