plowshare-modules-legacy icon indicating copy to clipboard operation
plowshare-modules-legacy copied to clipboard

Rapidgator Broken again (Upload )

Open rlsblogse opened this issue 7 years ago • 33 comments

hi, again upload fail look like they again update http or https protocol

parse failed (sed): "/var form_url/ s/^.setProtocol("(.+)");.$/\1/p" (skip 0)

regards bye

rlsblogse avatar Nov 29 '18 03:11 rlsblogse

I've some sort of fix for upload. tested it with some small files. You can try it out if you want .

newmanifold avatar Dec 01 '18 09:12 newmanifold

I've some sort of fix for upload. tested it with some small files. You can try it out if you want .

Hi, where's the fix you made?

ohnoez avatar Dec 01 '18 14:12 ohnoez

@ohnoez https://github.com/newmanifold/plowshare-modules-legacy/blob/master/rapidgator.sh

newmanifold avatar Dec 01 '18 15:12 newmanifold

@ohnoez https://github.com/newmanifold/plowshare-modules-legacy/blob/master/rapidgator.sh

Thanks a lot, it works but only if plowup is ran twice :)

ohnoez avatar Dec 02 '18 18:12 ohnoez

@ohnoez i've updated it . now it should show download link in first try. before RG Api itself wasn't giving any download link for new files . now its working.

newmanifold avatar Dec 03 '18 02:12 newmanifold

@ohnoez i've updated it . now it should show download link in first try. before RG Api itself wasn't giving any download link for new files . now its working.

awesome, great work

ohnoez avatar Dec 03 '18 09:12 ohnoez

hi, still a small bug if i use a path then its auto rename file after upload lol , like that

plowup --max-retries=1 -a [email protected]:pw rapidgator /home/folder/public_html/tv/vikings.s05e11.720p.web.h264-convoy.mkv

file uploaded and in rapidgator file manager but not a real name , its auto rename uploaded file to that.

homefolderpublic_htmltvvikings.s05e11.720p.web.h264-convoy.mkv

can yo fix that please regards bye.

rlsblogse avatar Dec 05 '18 05:12 rlsblogse

and if i use without path like that all ok.

plowup --max-retries=1 -a [email protected]:pw rapidgator vikings.s05e11.720p.web.h264-convoy.mkv

file in my rpidgator file manager show same as real name,

rlsblogse avatar Dec 05 '18 05:12 rlsblogse

@rlsblogse use path in quote like this:

plowup --max-retries=1 -a [email protected]:pw rapidgator '/home/folder/public_html/tv/vikings.s05e11.720p.web.h264-convoy.mkv'


anyways. it should work without quotes now . but use quotes because if your filename has space because otherwise script won't find file.

newmanifold avatar Dec 05 '18 10:12 newmanifold

Many many thanks @newmanifold for getting this done. I had started on this but had to stop for a while. I got to upload successfully stage, but ran out of time getting the download URL. When I tried your working (yea!!) version on my Mac I found a few issues from the portability standpoint:

  1. Instead of FILE_SIZE=$(wc -c < "$FILE") I used the internal functionFILE_SIZE=$(get_filesize $FILE)
  2. Instead of FILE_MD5=($(md5sum "$FILE")) I used the internal function FILE_MD5=$(md5_file $FILE)
  3. RANDOM_UUID=$(cat /proc/sys/kernel/random/uuid) was changed to use the internal function RANDOM_UUID=$(random h 32) as MacOS doesn't have that /proc file.
  4. I also localised the new variables that are used by adding a new line below the local definitions: local END_POINT UPLOAD_STATE_URL RANDOM_UUID FILE_SIZE FILE_MD5 REQUEST_URL ENDPOINT

ghjimmy avatar Dec 05 '18 11:12 ghjimmy

@ghjimmy . Actually one friend of mine wanted a fix for it . when Rapidgator changed there api . but then i found this thread here so i thought to post it here. Intended to make some sort of fix quickly (hence you can very well see code cluttering in the plugin). But thanks for pointing it out. Apology from my side for problems in Mac.

Btw you got it working in Mac after all those changes ?

newmanifold avatar Dec 05 '18 13:12 newmanifold

Working great now. If I was more up to date on GitHub I would have provided a branch with my changes, but the salient ones were in the message and after put in place it works on my Mac now. Appreciate your work.

ghjimmy avatar Dec 05 '18 13:12 ghjimmy

hi again @newmanifold , i have update but still same result it show path in filename.

regards

rlsblogse avatar Dec 05 '18 13:12 rlsblogse

hi again, its like sometime give real name lol or sometime rename with path.

regards.

rlsblogse avatar Dec 05 '18 13:12 rlsblogse

well on first time upload file with path its give me real name , and if i upload same file again with path then it will rename with path.

ok defiantly its memory or cache or season id problem , i empty some variable like DEST_FILE="" and again i upload same file winch i already upload, and it upload and give me filename , but when i upload name file it give error = line 699: DEST_FILE: readonly variable.

btw i have 1 vps and 1 dedi , both have same problem, so i think its not on my side regards

rlsblogse avatar Dec 05 '18 14:12 rlsblogse

@rlsblogse can you tell me whats the exact filename and flags you using when you try to execute script. i will try to reproduce the problem

newmanifold avatar Dec 05 '18 16:12 newmanifold

hi, any filename bro.

First time

plowup -a [email protected]:pw rapidgator "/usr/share/plowshare/modules/nakido.sh"

result ok file uploaded as real name like that

https://rapidgator.net/file/487662a2e7ea42f8991f6442e29f3eba/nakido.sh.html

2nd time

plowup -a [email protected]:pw rapidgator "/usr/share/plowshare/modules/nakido.sh" file uploaded rename with path like that

https://rapidgator.net/file/40efafccbe9e90848eb5a0b32e819b81/usrshareplowsharemodulesnakido.sh.html

you can click on both file its uploaded and both are same file and same path , but first time upload it give me real name and 2nd time i upload same file it rename with path.

regards

rlsblogse avatar Dec 05 '18 18:12 rlsblogse

hi again, i found something interesting, these are the output on $COOKIE_FILE and $QQUUID variable /tmp/plowup.912.15963 912QQUUID

and those variable output is not changed if i upload same file. and if i upload different file then these output values changes

rlsblogse avatar Dec 06 '18 06:12 rlsblogse

@rlsblogse made some changes . tested it and it should work now.

newmanifold avatar Dec 08 '18 16:12 newmanifold

@newmanifold thanks man it worked now. btw may i have your skype id ? regards bye.

rlsblogse avatar Dec 11 '18 04:12 rlsblogse

@rlsblogse live:newmanifold000 .

newmanifold avatar Dec 13 '18 17:12 newmanifold

Is it broken again for you aswell? I'm getting error curl: (3) malformed curl: failed with exit code 3 Failed inside rapidgator_upload() [3]

-v3 https://paste2.org/ddIkJGtw

-v4 https://paste2.org/eeIpkg7J

ohnoez avatar Dec 19 '18 09:12 ohnoez

its working bro..

rlsblogse avatar Dec 19 '18 13:12 rlsblogse

hi, again

its interesting it could be a small bug , WORKING

var=filename.mkv plowup --max-retries=1 -a [email protected]:pw rapidgator $var

NOT WORKING

plowup --max-retries=1 -a [email protected]:pw rapidgator filename.mkv

when use direct filename it give us error curl: (3) malformed curl: failed with exit code 3 Failed inside rapidgator_upload() [3]

and when using filename in variable its working

regards

rlsblogse avatar Dec 20 '18 01:12 rlsblogse

hi again, weird , now suddenly its stop uploading , direct filename and using filename in variable,

UPDATE

now its working again , something is wrong , sometime file uploading is ok and sometime it give us that error

curl: (3) malformed curl: failed with exit code 3 Failed inside rapidgator_upload() [3]

rlsblogse avatar Dec 20 '18 15:12 rlsblogse

they changed JSON response that's why it was giving the error, made little changes try it now it should be working. https://github.com/newmanifold/plowshare-modules-legacy/blob/master/rapidgator.sh

newmanifold avatar Dec 27 '18 16:12 newmanifold

I think you have a typo in your fix. It should be echo "$ENDPOINT" and not just echo "ENDPOINT"

ghjimmy avatar Jan 23 '19 13:01 ghjimmy

i get an eror for about two weeks uploading a file:

"There was an error uploading the file. Output URL expected" The result is 109 Bytes if i get the failure. If its working, i receive 94 bytes

docgonzo2015 avatar Feb 15 '20 10:02 docgonzo2015

they changed JSON response that's why it was giving the error, made little changes try it now it should be working. https://github.com/newmanifold/plowshare-modules-legacy/blob/master/rapidgator.sh

Quick and dirty fix for recent changes they made. It seems that they changed JSON response again (added "type: 1" into it). Now it looks like this

rep:{"endpoint":"http://s17.rapidgator.net/multipart-upload/6d12ca5b-ea47-4507-95db-c1075ff01c5b","type":"1","uuid":"r6J3KG6f6128qfA01g3w913h87b4044k"}

so after parsing the final endpoint looked like http://s17.rapidgator.net/multipart-upload/6d12ca5b-ea47-4507-95db-c1075ff01c5b,type:1 which of course resulted in an error response.

Anyway the solution which worked for was to add this ENDPOINT=$( echo "$ENDPOINT" | cut -d',' -f1 ) to the line #675

ohnoez avatar Mar 09 '20 08:03 ohnoez

Upload is also not working. i cheek its Rapidgator login problem , Rapidgator is now added new value for login. &g-recaptcha-response=

LoginForm%5BtwoStepAuthCode%5D=&LoginForm%5BrememberMe%5D=0&LoginForm%5BrememberMe%5D=1&g-recaptcha-response="

rlsblogse avatar Sep 04 '20 18:09 rlsblogse

Looks like rapidgator also needs an addition -H "Referer: https://rapidgator.net/auth/login" when curl logs in. I'll be seeing if I can put the full, correct, change in place and I'll mail this group about the changes required when I get it all working.

On Fri, Sep 4, 2020 at 7:18 PM rlsblogse [email protected] wrote:

Upload is also not working. i cheek its Rapidgator login problem , Rapidgator is now added new value for login. &g-recaptcha-response=

LoginForm%5BtwoStepAuthCode%5D=&LoginForm%5BrememberMe%5D=0&LoginForm%5BrememberMe%5D=1&g-recaptcha-response="

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mcrapet/plowshare-modules-legacy/issues/221#issuecomment-687306737, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOHVGTUTOGLCOLQSZTQES3SEEVPJANCNFSM4GHDOX6A .

ghjimmy avatar Sep 09 '20 10:09 ghjimmy

I've done the change now, but all that needs to be done is in the file rapidgator.sh. Change so that the following lines are in the function 'rapidgator_login'

LOGIN_DATA='LoginForm[email]=$USER&LoginForm[password]=$PASSWORD&

&LoginForm[rememberMe]=0&LoginForm[rememberMe]=1&g-recaptcha-response='

HTML=$(post_login "$AUTH" "$COOKIE_FILE" "$LOGIN_DATA" \

    "$BASE_URL/auth/login" -L -b "$COOKIE_FILE" -H "Referer:

https://rapidgator.net/auth/login" ) || return

Jimmy

On Wed, Sep 9, 2020 at 11:41 AM Jimmy Aitken [email protected] wrote:

Looks like rapidgator also needs an addition -H "Referer: https://rapidgator.net/auth/login" when curl logs in. I'll be seeing if I can put the full, correct, change in place and I'll mail this group about the changes required when I get it all working.

On Fri, Sep 4, 2020 at 7:18 PM rlsblogse [email protected] wrote:

Upload is also not working. i cheek its Rapidgator login problem , Rapidgator is now added new value for login. &g-recaptcha-response=

LoginForm%5BtwoStepAuthCode%5D=&LoginForm%5BrememberMe%5D=0&LoginForm%5BrememberMe%5D=1&g-recaptcha-response="

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mcrapet/plowshare-modules-legacy/issues/221#issuecomment-687306737, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOHVGTUTOGLCOLQSZTQES3SEEVPJANCNFSM4GHDOX6A .

ghjimmy avatar Sep 09 '20 12:09 ghjimmy

they changed the "type"

rep: === CURL BEGIN === rep:{"endpoint":"https://s2.rapidgator.net/multipart-upload/e8c8a79d-0eca-4308-b783-f2a0616d31a4","type":1,"uuid":"rdEfXb3WP6bltlW0dp2f6cskoagwgs4k"} rep: === CURL END ===

docgonzo2015 avatar Feb 23 '21 19:02 docgonzo2015