Esempio n. 1
0
def showname_helper():
    if not request.vars.show_name:
        return ''
    if not request.vars.what in ('ShowRSS_feed', 'Eztvit_feed'):
        return ''
    t = w2p_tvseries_feed_loader(request.vars.what)
    mapping = t.series_helper(request.vars.show_name)
    return mapping
Esempio n. 2
0
def preview_torrents():
    vars = Storage()
    for k,v in request.vars.iteritems():
        vars[k.replace('tor_','',1)] = v
    try:
        vars.minsize = vars.minsize and int(vars.minsize) or 20
        vars.maxsize = vars.maxsize and int(vars.maxsize) or 4780
        vars.regex = vars.regex and vars.regex == '' and None or vars.regex
    except:
        return ''
    if vars.season <> 'ALL':
        try:
            vars.season = int(vars.season)
        except:
            return ''
    ez = w2p_tvseries_feed_loader(vars.feed)
    res = ez.search(vars.show_name, vars.season, vars.quality, vars.minsize, vars.maxsize, vars.regex, vars.lower_attention)
    error = ez.errors
    return dict(res=res, error=error)