aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/__init__.py')
-rwxr-xr-xyoutube_dl/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index a5af555ff..8fc320cbf 100755
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -279,6 +279,8 @@ def timeconvert(timestr):
timestamp = email.utils.mktime_tz(timetuple)
return timestamp
+def _simplify_title(title):
+ return re.sub(ur'[^\w\d_\-]+', u'_', title)
class DownloadError(Exception):
"""Download Error exception.