예제 #1
0
def download_all():
    torrents = database.row_fetch(
        'select * from torrents where downloaded = 0')
    for t in torrents:
        download_torrent(t[0])
        print 'Downloaded ' + t[0] + '.torrent -- ' + t[1] + ' - ' + t[
            2] + ' / ' + t[3] + ' / ' + t[4]
        discord.send('Downloaded ' + t[1] + ' - ' + t[2] + ' / ' + t[3] +
                     ' / ' + t[4])
예제 #2
0
파일: settings.py 프로젝트: bhavikat/WhatUI
def get_all():
  s_list = database.row_fetch('select * from settings')
  s_dict = {}
  for setting in s_list:
    s_dict[setting['key']] = setting
  return s_dict
예제 #3
0
def get_all():
    return database.row_fetch('select * from torrents order by added desc')
예제 #4
0
def get_recent():
    return database.row_fetch(
        'select * from torrents order by added desc limit 10')
예제 #5
0
파일: torrent.py 프로젝트: xrTor/GazelleUI
def download_all():
    torrents = database.row_fetch(
        'select * from torrents where downloaded = 0')
    for t in torrents:
        download_torrent(t[0])
예제 #6
0
def get_all():
    s_list = database.row_fetch('select * from settings')
    s_dict = {}
    for setting in s_list:
        s_dict[setting['key']] = setting
    return s_dict
예제 #7
0
파일: torrent.py 프로젝트: bhavikat/WhatUI
def get_recent():
  return database.row_fetch('select * from torrents order by added desc limit 20')
예제 #8
0
파일: torrent.py 프로젝트: bhavikat/WhatUI
def download_all():
  torrents = database.row_fetch('select * from torrents where downloaded = 0')
  for t in torrents:
    download_torrent(t[0])