Beispiel #1
0
def alphabeticalSearch(url, channel, keyword=None):
    if keyword:
        searchDir(url, channel, page=None, alphabet=keyword)
    else:
        key_list = keys()
        for c, count in sorted(key_list.items()):
            name = '[COLOR deeppink]{}[/COLOR] [COLOR lightpink]({})[/COLOR]'.format(c, count)
            addDir(name, url, "utils.alphabeticalSearch", cum_image('cum-search.png'), '', channel, keyword=c)
        eod()
Beispiel #2
0
def alphabeticalSearch(url, channel, keyword=None):
    if keyword:
        searchDir(url, channel, page=None, alphabet=keyword)
    else:
        for c in string.ascii_uppercase:
            name = '[COLOR deeppink]' + c + '[/COLOR]'
            addDir(name,
                   url,
                   "utils.alphabeticalSearch",
                   cum_image('cum-search.png'),
                   '',
                   channel,
                   keyword=c)
        eod()
Beispiel #3
0
 def search_dir(self, url, mode, page=None):
     mode = self.get_full_mode(mode)
     searchDir(url, mode, page)