else
This commit is contained in:
parent
054b91b1c6
commit
feccd86511
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import traceback
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import totaldl
|
import totaldl
|
||||||
|
|
||||||
|
@ -22,6 +23,9 @@ while True:
|
||||||
title = title.replace(character, '')
|
title = title.replace(character, '')
|
||||||
if len(title) > 35:
|
if len(title) > 35:
|
||||||
title = title[:34] + '-'
|
title = title[:34] + '-'
|
||||||
|
try:
|
||||||
totaldl.handle_master(url, customname=title)
|
totaldl.handle_master(url, customname=title)
|
||||||
|
except:
|
||||||
|
traceback.print_exc()
|
||||||
cur2.execute('INSERT INTO totaldl_urls VALUES(?)', [url])
|
cur2.execute('INSERT INTO totaldl_urls VALUES(?)', [url])
|
||||||
sql.commit()
|
sql.commit()
|
Loading…
Reference in a new issue