diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2011-11-21 20:07:24 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2011-11-21 20:07:24 +0100 |
commit | e33e3045c6d3a4e6a8489074548e392e4f748615 (patch) | |
tree | 73dba07e1dec8d4d20966f19a73bdaa48c959817 /youtube-dl | |
parent | cb6568bf21e891143dab378d4a40988fc52b9f1d (diff) | |
download | hypervideo-pre-e33e3045c6d3a4e6a8489074548e392e4f748615.tar.lz hypervideo-pre-e33e3045c6d3a4e6a8489074548e392e4f748615.tar.xz hypervideo-pre-e33e3045c6d3a4e6a8489074548e392e4f748615.zip |
First tests
Diffstat (limited to 'youtube-dl')
-rwxr-xr-x | youtube-dl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube-dl b/youtube-dl index a5af555ff..8fc320cbf 100755 --- a/youtube-dl +++ b/youtube-dl @@ -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. |