Ejemplo n.º 1
0
    "serverrapid": "RapidVideo",
    "servermycloud": "MyCloud",
    "serveropenload": "OpenLoad",
}

WATCHLIST_ITEMS = [(control.lang(30300), "watchlist_all"),
                   (control.lang(30301), "watchlist_watching"),
                   (control.lang(30302), "watchlist_completed"),
                   (control.lang(30303), "watchlist_onhold"),
                   (control.lang(30304), "watchlist_dropped"),
                   (control.lang(30305), "watchlist_planned")]

HISTORY_DELIM = ":_:"

_BROWSER = NineAnimeBrowser()
control.setContent('tvshows')


def isDirectoryStyle():
    style = control.getSetting('displaystyle')
    return "Directory" == style


def sortResultsByRes(fetched_urls):
    prefereResSetting = utils.parse_resolution_of_source(
        control.getSetting('prefres'))

    filtered_urls = filter(
        lambda x: utils.parse_resolution_of_source(x[0]) <= prefereResSetting,
        fetched_urls)
Ejemplo n.º 2
0
    "serveropenload": "OpenLoad",
}

WATCHLIST_ITEMS = [
    (control.lang(30300), "watchlist_all"),
    (control.lang(30301), "watchlist_watching"),
    (control.lang(30302), "watchlist_completed"),
    (control.lang(30303), "watchlist_onhold"),
    (control.lang(30304), "watchlist_dropped"),
    (control.lang(30305), "watchlist_planned")
]

HISTORY_DELIM = ":_:"

_BROWSER = NineAnimeBrowser()
control.setContent('tvshows');

def isDirectoryStyle():
    style = control.getSetting('displaystyle')
    return "Directory" == style

def sortResultsByRes(fetched_urls):
    prefereResSetting = utils.parse_resolution_of_source(control.getSetting('prefres'))

    filtered_urls = filter(lambda x: utils.parse_resolution_of_source(x[0]) <=
                           prefereResSetting, fetched_urls)

    return sorted(filtered_urls, key=lambda x:
                  utils.parse_resolution_of_source(x[0]),
                  reverse=True)