Closed SCGabriel closed 2 years ago
Maybe a type hint issue, I think it should be:
from typing import Match
[...]
def process_url_mo(session, url_mo: Match):
AlexAplin added the bug label 23 days ago
...and?
Just faced the same error, and almost abandoned the program, thinking it probably requires too new python3 (which my distro still doesn't have). But after changing the code as suggested, it at least appears to launch without errors, did not test the operation yet.
--- nndownload.py.orig 2022-01-12 02:16:51.896783064 +0500
+++ nndownload.py 2022-01-12 02:17:26.073213438 +0500
@@ -17,7 +17,7 @@
import time
import traceback
import xml.dom.minidom
-from typing import AnyStr, List
+from typing import AnyStr, List, Match
import aiohttp
import requests
@@ -1665,7 +1665,7 @@
return session
-def process_url_mo(session, url_mo: re.Match[AnyStr]):
+def process_url_mo(session, url_mo: Match):
"""Dispatches URL to the appropriate function."""
url_id = url_mo.group(5)
I try to use nndownload.py v1.11.2 in Kubuntu 20.04,but it returns errors.
nndownload.py -u user -p password --proxy socks5://192.168.1.99:32233/ --force-high-quality --dump-metadata --download-thumbnail https://www.nicovideo.jp/watch/sm38318426