mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
add udp to is_url to allow udp trackers
This commit is contained in:
parent
3b1e93bf88
commit
0661c70594
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ def ftime(seconds):
|
||||||
def is_url(url):
|
def is_url(url):
|
||||||
"""A simple regex test to check if the URL is valid."""
|
"""A simple regex test to check if the URL is valid."""
|
||||||
import re
|
import re
|
||||||
return bool(re.search('^(https?|ftp)://', url))
|
return bool(re.search('^(https?|ftp|udp)://', url))
|
||||||
|
|
||||||
def fetch_url(url):
|
def fetch_url(url):
|
||||||
"""Downloads a torrent file from a given
|
"""Downloads a torrent file from a given
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue