LivingWithHippos / unchained-android

App to interact with real-debrid API
GNU General Public License v3.0
393 stars 50 forks source link

Add MEGA folder support #92

Closed Invictaz closed 3 years ago

Invictaz commented 3 years ago

Right now adding a folder from MEGA gives

"Unsupported hoster"

Error. However if I add the folder on the real debrid website all the files in the folder are parsed and added to the Unchained app. Even the non mkv and non mp4 files. So hard to digest which are what. Maybe filter those out?

Point is that this app does not like MEGA folders.

Adding individual MEGA files with their respective urls from that same folder works strangely enough.

LivingWithHippos commented 3 years ago

Thanks for the report, I've found the bug.

Folders link needs to be sent to the unrestrict/folder endpoint and not the unrestrict/link endpoint. To fix this I need to:

It shouldn't be too hard

LivingWithHippos commented 3 years ago

Closed with the latest commit set, from 8abfee70ac2bdd6ff70bd1e32fb76f9bd8456816 to 74d6a101a8fa00d8aacdb095a6b7b09257377935

Had to create a new folder fragment which is also useful for #31

Invictaz commented 3 years ago

Thanks a lot for the very fast response and fix. Going to test it as a new release is out :)

LivingWithHippos commented 3 years ago

Thanks a lot for the very fast response and fix. Going to test it as a new release is out :)

In the meanwhile you can preview it on the latest build