summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Wagner <rwagner@mythtv.org>2010-11-12 18:11:29 (GMT)
committer Raymond Wagner <rwagner@mythtv.org>2010-11-12 18:11:29 (GMT)
commitf2aa4c3566b7e8f8e03c8d232b12bbf66eec790d (patch)
tree4a710c76b2d1b278d74618c7304c6a41c3062b0e
parent49f258f20fdc2734064e8f2db7baf4408619d230 (diff)
Allow dashes ('-') in hostnames used for FileTransfer.
git-svn-id: http://svn.mythtv.org/svn/trunk@27200 7dbf422c-18fa-0310-86e9-fd20926502f2
-rw-r--r--mythtv/bindings/python/MythTV/mythproto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/bindings/python/MythTV/mythproto.py b/mythtv/bindings/python/MythTV/mythproto.py
index bcd06f6..3f5aeb2 100644
--- a/mythtv/bindings/python/MythTV/mythproto.py
+++ b/mythtv/bindings/python/MythTV/mythproto.py
@@ -184,7 +184,7 @@ def ftopen(file, mode, forceremote=False, nooverwrite=False, db=None, \
db = DBCache(db)
log = MythLog('Python File Transfer', db=db)
reuri = re.compile(\
- 'myth://((?P<group>.*)@)?(?P<host>[a-zA-Z0-9_\.]*)(:[0-9]*)?/(?P<file>.*)')
+ 'myth://((?P<group>.*)@)?(?P<host>[a-zA-Z0-9_\-\.]*)(:[0-9]*)?/(?P<file>.*)')
reip = re.compile('(?:\d{1,3}\.){3}\d{1,3}')
if mode not in ('r','w'):