beeequeue / yuna

ツ An anime player.
https://yuna.moe
GNU Affero General Public License v3.0
571 stars 43 forks source link

Funimation support #70

Closed SpaceCowboy321 closed 7 months ago

SpaceCowboy321 commented 5 years ago

Would it be possible to add Funimation support at some point? I know it's not available in Europe, but it is available in the US, UK, and several other places.

BitForger commented 5 years ago

There is no external facing API for this. I beginning to see a pattern here and it's mostly the anime streaming services being garbage at providing stuff for the community. That and they're run by people hellbent on keeping the status quo and the companies have no direction or plan to get better....

Funimation support? Questionable at best. It would require porting a library, that may or may not work, from python.

beeequeue commented 5 years ago

If there's a reference implementation it should be very possible to do!

beeequeue commented 5 years ago

I found a Kodi plugin that uses Funimation to stream episodes.

SpaceCowboy321 commented 5 years ago

I tried using Streamlink before, which has a plugin for Funimation, but it didn't work for me. There is apparently an issue with Incapsula protection that they provided a workaround for, but I wasn't able to get it to work. I don't know if there is a different/better solution, but it is something to consider.

kbjr commented 4 years ago

So, I'm actually doing some digging into funimation's API right now. Most of it seems fairly straight forward to navigate, I can let you know what I find, if you're interested.

kbjr commented 4 years ago

Okay, I've managed to walk all the way down their API to reach an .m3u8 file that should be playable (haven't completely verified that just yet, but I don't see any reason it wouldn't work). I'm putting together a basic library for interacting with their APIs, I will link it here when it's built out enough to be a useful tool and/or reference point.

kbjr commented 4 years ago

I've started detailing out my findings in the readme here: https://github.com/kbjr/funimationnow

More to come, there's a lot to document....

kbjr commented 4 years ago

Okay, all the APIs needed to get to a video stream are documented now.

beeequeue commented 4 years ago

I'm going to write a plugin system for stream fetching so it'll be easier to work with the stream sources, then I'll add this as a new plugin.

I'm currently focusing on another project so I don't know when I'll start

kbjr commented 4 years ago

Also, yes, I have now verified that the video works like I assumed it would

(The subtitle track, on the other hand, is harder to test because chrome apparently forces those to follow same-origin policy)

image