zotify-dev / zotify

A fast and customizable music and podcast downloader.
zlib License
1.08k stars 83 forks source link

Error Message when Running Zotify #25

Open zesky18 opened 1 year ago

zesky18 commented 1 year ago

I keep on getting these long strings of code when running Zotify. This is what I typed into Powershell:

zotify -l --download-lyrics=True --download-quality=high --md-allgenres=True --skip-existing=true

Then, it showed the following as the download was going on.

`incomplete escape \U at position 3

Traceback (most recent call last): File "C:\Users\Tong\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\track.py", line 190, in downloadtrack c = len([file for file in Path(filedir).iterdir() if re.search(f'^{filename}', str(file))]) + 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tong\AppData\Local\Programs\Python\Python311\Lib\site-packages\zotify\track.py", line 190, in c = len([file for file in Path(filedir).iterdir() if re.search(f'^{filename}_', str(file))]) + 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tong\AppData\Local\Programs\Python\Python311\Lib\re__init__.py", line 176, in search return _compile(pattern, flags).search(string) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tong\AppData\Local\Programs\Python\Python311\Lib\re__init__.py", line 294, in _compile p = _compiler.compile(pattern, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tong\AppData\Local\Programs\Python\Python311\Lib\re_compiler.py", line 743, in compile p = _parser.parse(p, flags) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tong\AppData\Local\Programs\Python\Python311\Lib\re_parser.py", line 980, in parse p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tong\AppData\Local\Programs\Python\Python311\Lib\re_parser.py", line 455, in _parse_sub itemsappend(_parse(source, state, verbose, nested + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tong\AppData\Local\Programs\Python\Python311\Lib\re_parser.py", line 539, in _parse code = _escape(source, this, state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tong\AppData\Local\Programs\Python\Python311\Lib\re_parser.py", line 393, in _escape raise source.error("incomplete escape %s" % escape, len(escape)) re.error: incomplete escape \U at position 3`

Bwall95 commented 11 months ago

I get the same issue. Unsure of the cause or fix.