예제 #1
0
def yify_search():
    query = plugin.request.args.get("query")
    if query:
        query = query[0]
    else:
        query = plugin.keyboard("", "koditorrent - YIFY - Search")
    if query:
        plugin.redirect(plugin.url_for("yify_search_query", keywords=query, quality="all", set=1, limit=MOVIES_PER_PAGE))
예제 #2
0
def yify_search():
    query = plugin.request.args.get("query")
    if query:
        query = query[0]
    else:
        query = plugin.keyboard("", "koditorrent - YIFY - Search")
    if query:
        plugin.redirect(plugin.url_for("yify_search_query", keywords=query, quality="all", set=1, limit=MOVIES_PER_PAGE))
예제 #3
0
def kat_search():
    import urllib
    query = plugin.request.args_dict.pop("query", None)
    suffix = plugin.request.args_dict.pop("query_suffix", "")
    if not query:
        query = plugin.keyboard("", "koditorrent - Kickass Torrent - Search")
    if query:
        plugin.redirect(plugin.url_for("kat_page", root="usearch/%s" % urllib.quote("%s %s verified:1" % (query, suffix), safe=""), page=1, **plugin.request.args_dict))
예제 #4
0
def nyaa_search():
    query = plugin.request.args.get("query")
    if query:
        query = query[0]
    else:
        query = plugin.keyboard("", "koditorrent - NyaaTorrents - Search")
    if query:
        plugin.redirect(plugin.url_for("search_result_page", page="search", cats="0_0", filter=0, term=query, offset=1, sort=SORT_DATE, order=SORT_DESCENDING))
예제 #5
0
def bitsnoop_search():
    import urllib
    from koditorrent.utils import first

    query = plugin.request.args_dict.pop("query", None)
    if not query:
        query = plugin.keyboard("", "koditorrent - Bitsnoop - Search")
    if query:
        plugin.redirect(plugin.url_for("bitsnoop_page", root="/search/video/%s/c/d/" % urllib.quote("%s safe:no" % query, safe=""), page=1, **plugin.request.args_dict))
예제 #6
0
파일: tpb.py 프로젝트: pilot006/KODItorrent
def piratebay_search():
    import urllib

    query = plugin.request.args.get("query")
    if query:
        query = query[0]
    else:
        query = plugin.keyboard("", "koditorrent - The Pirate Bay - Search")
    if query:
        plugin.redirect(plugin.url_for("piratebay_page", root="/search/%s" % urllib.quote(query, safe=""), page=0))
예제 #7
0
def zelka_search():
    cat = plugin.request.args_dict.pop('cat', '0')
    query = plugin.keyboard('', "XBMCtorrent - Zelka.org - Search")
    if query:
        plugin.redirect(
            plugin.url_for("zelka_page",
                           query=query,
                           cat=cat,
                           page=0,
                           **plugin.request.args_dict))
예제 #8
0
def btdigg_search():
    query = plugin.request.args_dict.pop("query", None)
    if not query:
        query = plugin.keyboard("", "koditorrent - BTDigg - Search")
    if query:
        plugin.redirect(
            plugin.url_for("btdigg_page",
                           query=query,
                           sort=SORT_POPULARITY,
                           page=0,
                           **plugin.request.args_dict))
예제 #9
0
def piratebay_search():
    import urllib

    query = plugin.request.args.get("query")
    if query:
        query = query[0]
    else:
        query = plugin.keyboard("", "koditorrent - The Pirate Bay - Search")
    if query:
        plugin.redirect(
            plugin.url_for("piratebay_page",
                           root="/search/%s" % urllib.quote(query, safe=""),
                           page=0))
예제 #10
0
def bitsnoop_search():
    import urllib
    from koditorrent.utils import first

    query = plugin.request.args_dict.pop("query", None)
    if not query:
        query = plugin.keyboard("", "koditorrent - Bitsnoop - Search")
    if query:
        plugin.redirect(
            plugin.url_for("bitsnoop_page",
                           root="/search/video/%s/c/d/" %
                           urllib.quote("%s safe:no" % query, safe=""),
                           page=1,
                           **plugin.request.args_dict))
예제 #11
0
def nyaa_search():
    query = plugin.request.args.get("query")
    if query:
        query = query[0]
    else:
        query = plugin.keyboard("", "koditorrent - NyaaTorrents - Search")
    if query:
        plugin.redirect(
            plugin.url_for("search_result_page",
                           page="search",
                           cats="0_0",
                           filter=0,
                           term=query,
                           offset=1,
                           sort=SORT_DATE,
                           order=SORT_DESCENDING))
예제 #12
0
def extratorrent_search():
    query = plugin.request.args_dict.pop("query", None)
    if not query:
        query = plugin.keyboard("", "koditorrent - ExtraTorrent - Search")
    if query:
        plugin.redirect(plugin.url_for("extratorrent_page_search", type="search", search=query, **plugin.request.args_dict))
예제 #13
0
def btdigg_search():
    query = plugin.request.args_dict.pop("query", None)
    if not query:
        query = plugin.keyboard("", "koditorrent - BTDigg - Search")
    if query:
        plugin.redirect(plugin.url_for("btdigg_page", query=query, sort=SORT_POPULARITY, page=0, **plugin.request.args_dict))