First tests
This commit is contained in:
parent
cb6568bf21
commit
e33e3045c6
3 changed files with 25 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue