Closed Anon-Exploiter closed 3 years ago
Confirmed, this only happens when the directory has another directory with-in, the script fails.
Moved the directory outside, kept all the files, and tried uploading it, it worked. The issue isn't with the directory naming, it's because of subdirectories within the main directories inside the parent directory.
Only solution which works for me is to go inside the directory, and do tis:
Run gupload -D folder 2>| log 1>&2
send log file contents or just the file
Most probably it's just due to filenames i guess. Messing up the sub directory folder upload data.
Sure, here you go:
Paste: https://pastebin.com/t6sbHpaD Password: phXTPwNJAn
It'll burn itself after one read/open, hopefully no one else is tracking these issues XD, made sure to strip any tokens, but one never knows, used the following to do it:
for i in log; do
values="$(grep -oE "(CLIENT_ID|CLIENT_SECRET|REFRESH_TOKEN|ACCESS_TOKEN|ROOT_FOLDER|WORKSPACE_FOLDER_ID)=.*" "${i}")"
eval "${values}"
for j in CLIENT_ID CLIENT_SECRET REFRESH_TOKEN ACCESS_TOKEN ROOT_FOLDER WORKSPACE_FOLDER_ID; do
string="$(eval printf "%s" \"\$"${j}"\")"
sed "s|${string}|"*****"|g" -i "${i}"
done
done
Let me know if any other details are required.
Give below commands output
find folder -type f
find folder -type d
Replace folder with whatever your foldername is, make sure all the file/folder names are same as in the logs.
Sorry for the delay in reply, here are the results:
root@965db2b50e9f:~# find \[Judas\]\ Black\ Clover\ 001-090\ +\ Special\ \[BD\ 1080p\]\[HEVC\ x265\ 10bit\]\[Dual-Audio\]\[Multi-Subs\]/ -type d
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras
root@965db2b50e9f:~# find \[Judas\]\ Black\ Clover\ 001-090\ +\ Special\ \[BD\ 1080p\]\[HEVC\ x265\ 10bit\]\[Dual-Audio\]\[Multi-Subs\]/ -type f
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E30 (030).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E36 (036).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCOP 02c.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCED 02.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCED 04b.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCED 04a.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCED 07.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCOP 01.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCOP 07.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCOP 04.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCED 05.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCED 01.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCED 03.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - Jump Special Anime Festa 2018.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCOP 03.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCOP 02a.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCED 06.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCOP 06.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCOP 02b.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/Extras/[Judas] Black Clover - NCOP 05.mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E15 (015).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E07 (007).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E08 (059).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E10 (010).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E21 (072).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E01 (001).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E48 (048).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E18 (069).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E11 (011).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E16 (016).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E35 (086).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E47 (047).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E31 (031).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E19 (070).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E21 (021).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E01 (052).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E25 (076).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E13 (064).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E22 (073).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E49 (049).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E50 (050).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E44 (044).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E24 (024).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E04 (004).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E06 (006).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E26 (077).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E45 (045).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E11 (062).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E06 (057).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E20 (020).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E12 (012).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E17 (017).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E08 (008).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E16 (067).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E25 (025).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E12 (063).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E33 (084).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E13 (013).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E41 (041).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E05 (005).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E34 (085).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E42 (042).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E15 (066).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E27 (078).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E37 (088).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E22 (022).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E10 (061).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E23 (074).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E39 (039).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E19 (019).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E46 (046).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E17 (068).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E14 (014).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E34 (034).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E32 (032).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E23 (023).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E38 (038).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E02 (053).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E09 (009).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E09 (060).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E37 (037).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E24 (075).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E39 (090).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E03 (003).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E14 (065).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E33 (033).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E36 (087).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E29 (029).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E38 (089).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E32 (083).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E18 (018).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E43 (043).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E03 (054).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E02 (002).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E29 (080).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E28 (079).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E27 (027).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E31 (082).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E35 (035).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E26 (026).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E51 (051).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E30 (081).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E20 (071).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E28 (028).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E04 (055).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E07 (058).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S02E05 (056).mkv
[Judas] Black Clover 001-090 + Special [BD 1080p][HEVC x265 10bit][Dual-Audio][Multi-Subs]/[Judas] Black Clover - S01E40 (040).mkv
So, i have pushed some fixes.
Run below command to install the gupload command with fixes. Command name will be test_gupload
, use the same to test.
curl --compressed -Ls https://github.com/labbots/google-drive-upload/raw/master/install.sh | sh -s -- -r akianonymus/google-drive-upload -B master -c test_gupload
Different command name so the existing installation doesn't need to be touched.
If any problem, grab log and send.
Awesome, it's working fine now!
If you don't mind me asking, what was the issue? Was it with directory name? Or because of subdirectories?
It was because of the name of the folder. It have some patterns which are treated as regular expressions by grep ( which is used in script for grabbing sub folder drive id ). So, just changed that code for grep to use -F flag, which disables that behaviour.
In your case, it was the range of numbers which triggered that behaviour.
Whole commit: https://github.com/Akianonymus/google-drive-upload/commit/7db0b036cab6a8f7907226085d8b1d63bfa1d8ab
I see, thank you very much for fixing it. Totally works fine :man_dancing:
Closing the issue!
A new release has been created with this issue fix.
https://github.com/labbots/google-drive-upload/releases/tag/v3.4.2
Hi,
I was trying the script out on some Chinese named folder before, like 3-4 days, it failed but I didn't get time to report. Sadly I don't have that name anymore, here's another example that fails.
The directory has additional directories in it and then additional files in them, maybe that's the reason?
The main directory even though has errors gets created regardless, the incoming files fail.
Some POCs:
Text:
Going into that folder and doing
gupload *
uploads those 3 directories inside the parent directory easily.