wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.16k stars 345 forks source link

Error in code #141

Closed shobhitparvan closed 2 years ago

shobhitparvan commented 2 years ago

Traceback (most recent call last): File "/home/shobhit/.local/bin/gdown", line 8, in sys.exit(main()) File "/home/shobhit/.local/lib/python3.8/site-packages/gdown/cli.py", line 133, in main filenames = download_folder( File "/home/shobhit/.local/lib/python3.8/site-packages/gdown/download_folder.py", line 343, in download_folder filename = download( File "/home/shobhit/.local/lib/python3.8/site-packages/gdown/download.py", line 204, in download existing_tmp_files = glob.glob("{}*".format(output)) File "/usr/lib/python3.8/glob.py", line 21, in glob return list(iglob(pathname, recursive=recursive)) File "/usr/lib/python3.8/glob.py", line 74, in _iglob for name in glob_in_dir(dirname, basename, dironly): File "/usr/lib/python3.8/glob.py", line 85, in _glob1 return fnmatch.filter(names, pattern) File "/usr/lib/python3.8/fnmatch.py", line 52, in filter match = _compile_pattern(pat) File "/usr/lib/python3.8/fnmatch.py", line 46, in _compile_pattern return re.compile(res).match File "/usr/lib/python3.8/re.py", line 252, in compile return _compile(pattern, flags) File "/usr/lib/python3.8/re.py", line 304, in _compile p = sre_compile.compile(pattern, flags) File "/usr/lib/python3.8/sre_compile.py", line 764, in compile p = sre_parse.parse(p, flags) File "/usr/lib/python3.8/sre_parse.py", line 948, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) File "/usr/lib/python3.8/sre_parse.py", line 443, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, File "/usr/lib/python3.8/sre_parse.py", line 834, in _parse p = _parse_sub(source, state, sub_verbose, nested + 1) File "/usr/lib/python3.8/sre_parse.py", line 443, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, File "/usr/lib/python3.8/sre_parse.py", line 598, in _parse raise source.error(msg, len(this) + 1 + len(that)) re.error: bad character range g-S at position 88

wkentaro commented 2 years ago

Can you provide the command you run?

shobhitparvan commented 2 years ago

It seems the problem hasn't occurred for a while now.

shobhitparvan commented 2 years ago

12:11:50 shobhit@server anime → gdown --folder https://drive.google.com/drive/folders/1WFX6oHXPZR0zcmghYLfuU5Wp_4pcY923Retrieving folder list Processing file 1wXec-az-hlpQUZB2zkBWPF62VuDf5VqF [Kayoanime] World's End Harem - S01E01 [UNCENSORED 1080p][HEVC 10bit x265][Eng-Sub].mkv Processing file 1p5aPu0XszDXY3T3DzGc98vkmsTw__w5v [Kayoanime] World's End Harem - S01E02 [UNCENSORED 1080p][HEVC 10bit x265][Eng-Sub].mkv Processing file 1q9RW52EuCLUuY8hRByxnXDJggwW6_xNK [Kayoanime] World's End Harem - S01E03 [UNCENSORED 1080p][HEVC 10bit x265][Eng-Sub].mkv Processing file 1BmRSw_bFCyhBfSHczFiVHOpFny-A_KZo [Kayoanime] World's End Harem - S01E04 [UNCENSORED 1080p][HEVC 10bit x265][Eng-Sub].mkv Retrieving folder list completed Building directory structure Building directory structure completed Traceback (most recent call last): File "/home/shobhit/.local/bin/gdown", line 8, in sys.exit(main()) File "/home/shobhit/.local/lib/python3.8/site-packages/gdown/cli.py", line 133, in main filenames = download_folder( File "/home/shobhit/.local/lib/python3.8/site-packages/gdown/download_folder.py", line 343, in download_folder filename = download( File "/home/shobhit/.local/lib/python3.8/site-packages/gdown/download.py", line 204, in download existing_tmp_files = glob.glob("{}*".format(output)) File "/usr/lib/python3.8/glob.py", line 21, in glob return list(iglob(pathname, recursive=recursive)) File "/usr/lib/python3.8/glob.py", line 74, in _iglob for name in glob_in_dir(dirname, basename, dironly): File "/usr/lib/python3.8/glob.py", line 85, in _glob1 return fnmatch.filter(names, pattern) File "/usr/lib/python3.8/fnmatch.py", line 52, in filter match = _compile_pattern(pat) File "/usr/lib/python3.8/fnmatch.py", line 46, in _compile_pattern return re.compile(res).match File "/usr/lib/python3.8/re.py", line 252, in compile return _compile(pattern, flags) File "/usr/lib/python3.8/re.py", line 304, in _compile p = sre_compile.compile(pattern, flags) File "/usr/lib/python3.8/sre_compile.py", line 764, in compile p = sre_parse.parse(p, flags) File "/usr/lib/python3.8/sre_parse.py", line 948, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) File "/usr/lib/python3.8/sre_parse.py", line 443, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, File "/usr/lib/python3.8/sre_parse.py", line 834, in _parse p = _parse_sub(source, state, sub_verbose, nested + 1) File "/usr/lib/python3.8/sre_parse.py", line 443, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, File "/usr/lib/python3.8/sre_parse.py", line 598, in _parse raise source.error(msg, len(this) + 1 + len(that)) re.error: bad character range g-S at position 88 12:12:04 shobhit@server anime →

same error was generated again.Please look into it