plowshare-modules-legacy
plowshare-modules-legacy copied to clipboard
Rapidgator Broken again (Upload )
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
I've some sort of fix for upload. tested it with some small files. You can try it out if you want .
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 https://github.com/newmanifold/plowshare-modules-legacy/blob/master/rapidgator.sh
@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 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.
@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
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.
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 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.
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:
- Instead of
FILE_SIZE=$(wc -c < "$FILE")I used the internal functionFILE_SIZE=$(get_filesize $FILE) - Instead of
FILE_MD5=($(md5sum "$FILE"))I used the internal functionFILE_MD5=$(md5_file $FILE) RANDOM_UUID=$(cat /proc/sys/kernel/random/uuid)was changed to use the internal functionRANDOM_UUID=$(random h 32)as MacOS doesn't have that /proc file.- 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 . 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 ?
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.
hi again @newmanifold , i have update but still same result it show path in filename.
regards
hi again, its like sometime give real name lol or sometime rename with path.
regards.
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 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
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
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 made some changes . tested it and it should work now.
@newmanifold thanks man it worked now. btw may i have your skype id ? regards bye.
@rlsblogse live:newmanifold000 .
Is it broken again for you aswell? I'm getting error
curl: (3)
-v3 https://paste2.org/ddIkJGtw
-v4 https://paste2.org/eeIpkg7J
its working bro..
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
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]
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
I think you have a typo in your fix. It should be echo "$ENDPOINT" and not just echo "ENDPOINT"
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
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
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="
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 .
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 .
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 ===