Closed thgdorns closed 4 years ago
I need more context, including the command you ran, the output, and what potentially special characters you're talking about. I already try to sanitize filepaths for certain filesystems like Windows.
def sanitize_for_path(value, replace=' '):
"""Remove potentially illegal characters from a path."""
return re.sub(r'[<>\"\?\\\/\*:]', replace, value)
nndownload.exe -u username -p password -o "{uploader} - {id} - {title}.{ext}" https://www.nicovideo.jp/watch/sm35868592
Logging in...
Logged in.
Performing initial API request...
Performed initial API request.
Downloading sm35868592 to "けの人 - sm35868592 - 【東方MMD】PiNK CAT | ピンクキャット 【十六夜 咲夜】.mp4"...
Traceback (most recent call last):
File "nndownload\nndownload.py", line 1337, in
When using {title} on the file output, I get a 2544 error when the video title contains special characters. Could those be replaced with underscores?