meta-boy / Anime-Twist

Anime Twist (http://twist.moe/) app written in flutter. Discontinued untill further notice
MIT License
39 stars 8 forks source link

Question about anime streaming #11

Closed hbacelar8 closed 3 years ago

hbacelar8 commented 3 years ago

Hey mate, I just wanted to ask you how do you manage to stream the videos from Twist since I haven't found any API.

meta-boy commented 3 years ago

Their web app uses an API for fetching available anime and it's video links, so I just use those. It's there in the source code you can take a look here:

https://github.com/meta-boy/Anime-Twist/blob/d05e3dce1b644e68d367740e2e9a863fc2bd7e19/lib/src/services/anime_twist.dart#L69

hbacelar8 commented 3 years ago

I see, I got to get the anime sources, but you need a password to decrypt them anyway, don't you?

meta-boy commented 3 years ago

I see, I got to get the anime sources, but you need a password to decrypt them anyway, don't you?

Yep, you do need a password. I run this to retrieve the password from my env vars and load it when compiling the app

https://github.com/meta-boy/Anime-Twist/blob/1c0ecbdc83f6839525e09d40b2ec791ccce45145/tools/env.dart#L6

hbacelar8 commented 3 years ago

Did you get I password from them? Do they usually share that with someone developing an app?

meta-boy commented 3 years ago

Did you get I password from them? Do they usually share that with someone developing an app?

Nop, they don't give it out voluntarily but what you can do is reverse engineering the website to get it, it's somewhere in the source code.

That's what I did, rather than website, just decompiled the APK and found out the key.

hbacelar8 commented 3 years ago

I just got it from another project that led it open. Thanks mate!

meta-boy commented 3 years ago

Alrighty, closing this one!