Spaces:
Running
Running
Remove stale filename regex reference after syntax fix
Browse files
app/services/downloader.py
CHANGED
|
@@ -164,8 +164,6 @@ class Downloader:
|
|
| 164 |
return unquote(extended.group(1).strip().strip('"'))
|
| 165 |
if ordinary:
|
| 166 |
return unquote((ordinary.group(1) or ordinary.group(2) or "").strip())
|
| 167 |
-
if match:
|
| 168 |
-
return unquote(match.group(1).strip())
|
| 169 |
path_name = Path(unquote(urlparse(url).path)).name
|
| 170 |
return path_name or "download.bin"
|
| 171 |
|
|
|
|
| 164 |
return unquote(extended.group(1).strip().strip('"'))
|
| 165 |
if ordinary:
|
| 166 |
return unquote((ordinary.group(1) or ordinary.group(2) or "").strip())
|
|
|
|
|
|
|
| 167 |
path_name = Path(unquote(urlparse(url).path)).name
|
| 168 |
return path_name or "download.bin"
|
| 169 |
|