2017-09-21, 12:48
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/0ffd135...2d9610d0c5
mnf and 1080p-mnfsnd: https://gist.github.com/MrKrabat/8782368...b95d1d0fc8
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...pi.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
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:
- Get the link to the main mnf-file* (m3u8) which contains one audio stream and multiple video streams (different resolution).
- Pass the link to Kodi with cookies
- Kodi retrieves the file
- Kodi decide to use the 1080p stream
- Kodi get the mnfsnd-file** (m3u8) (without cookies?)
- The file contains "Error code 000008"
- Failed to play video
** = link can be used multiple times, cookies are required
Full debug log of this process: https://gist.github.com/MrKrabat/0ffd135...2d9610d0c5
mnf and 1080p-mnfsnd: https://gist.github.com/MrKrabat/8782368...b95d1d0fc8
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...pi.py#L279 (links to old commit)
I am developing on Kodi 17.4 using the latest windows store build.
Some questions:
- Is Kodi not using the cookies at the second call? I looked at your bug tracker and this should be fixed since 17.0
- Is it possible to parse the m3u8 myself and pass audio and video m3u8 separate to Kodi like having an external audio source? Like this?
- Could the inputstream plugin be the solution? How do i implement this?
Greetings,
MrKrabat
PS: Even if i say "Kodi" everytime, i know that ffmpeg is doing most of this