mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 03:36:16 +00:00
add udp to is_url to allow udp trackers
This commit is contained in:
parent
72aaef6191
commit
6d3acf6dca
@ -214,7 +214,7 @@ def ftime(seconds):
|
||||
def is_url(url):
|
||||
"""A simple regex test to check if the URL is valid."""
|
||||
import re
|
||||
return bool(re.search('^(https?|ftp)://', url))
|
||||
return bool(re.search('^(https?|ftp|udp)://', url))
|
||||
|
||||
def is_magnet(uri):
|
||||
"""Returns True if uri is a valid bittorrent magnet uri."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user