def mobile_search_results(site, category='0', maxage='0', term=''): if site: site = int(site) url = NewznabSite.query.filter(NewznabSite.id == site).first().url categories = cat_newznab(url) results = newznab(site=site, category=category, maxage=maxage, term=term, mobile=True) return render_template('mobile/search.html', query=term, site=site, categories=categories, newznab_sites=get_newznab_sites(), category=category, results=results )
def mobile_search_results(site, category='0', maxage='0', term=''): if site: site = int(site) url = NewznabSite.query.filter(NewznabSite.id == site).first().url categories = cat_newznab(url) results = newznab(site=site, category=category, maxage=maxage, term=term, mobile=True) return render_template('mobile/search.html', query=term, site=site, categories=categories, newznab_sites=get_newznab_sites(), category=category, results=results )