else/TotalDL/timesearch_dl.py
Voussoir 8e8dcacb92 else
totaldl 1.1
2015-05-14 23:02:21 -07:00

13 lines
No EOL
261 B
Python

import sqlite3
import totaldl
sql = sqlite3.connect('!!testdata.db')
cur = sql.cursor()
cur.execute('SELECT * FROM posts WHERE self=0 AND url IS NOT NULL')
while True:
item = cur.fetchone()
if item is None:
break
url = item[7]
totaldl.handle_master(url)