mcrapet / plowshare-modules-legacy

Plowshare legacy & unmaintained modules
GNU General Public License v3.0
122 stars 78 forks source link

Openload: Implement download file for free user through the API #131

Closed kidburglar closed 7 years ago

kidburglar commented 7 years ago

Implements download for free user. There is surely possibility to improve this PR but it's a first step.

Feel free to merge it and modify after. Cheers.

Edit: it fix issue #104

zodman commented 7 years ago

i upload a mkv video file plowdown https://openload.co/f/8uuQr5JhM1I/jellyfish-3-mbps-hd-h264.mkv -v 4

rep: === CURL END ===
dbg: FILE_ID: 8uuQr5JhM1I
rep: --insecure --compressed --speed-time 600 --connect-timeout 240 --user-agent Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0 --silent https://api.openload.co/1/file//dlticket?file=8uuQr5JhM1I
rep: Received 146 bytes. DRETVAL=0
rep: === CURL BEGIN ===
rep:{"status":509,"msg":"bandwidth usage too high (peak hours). out of capacity for non-browser downloads. please use browser download","result":null}
rep: === CURL END ===

not works

mcrapet commented 7 years ago

Applied. Thanks for contribution.

kidburglar commented 7 years ago

@zodman I tried again your download and it look working. Maybe it was an issue from openload (I think it will be corrected assume from the message status).