def search_cb(page, data): # Movie result = list_links(page, '/subject/') result += list_links(page, '/vplay/m-') result += list_links(page, '/vplay/g-') result += list_links(page, '/vplay/v-') moonplayer.show_list(result)
def search_cb(content, data): result = list_links(content, 'http://www.soku.com/u?url=') for i in xrange(1, len(result), 2): result[i] = result[i].replace('http://www.soku.com/u?url=', '') provider = result[i].split('.')[1] result[i - 1] += ' (' + provider + ')' moonplayer.show_list(result)
def search_cb(content, data): result = list_links(content, 'http://www.soku.com/u?url=') for i in xrange(1, len(result), 2): result[i] = result[i].replace('http://www.soku.com/u?url=', '') provider = result[i].split('.')[1] result[i-1] += ' (' + provider + ')' moonplayer.show_list(result)
def search_cb(content, data): root = ET.fromstring(content) result = [] for item in root.iter('list'): result.append(item.find('title').text) result.append(item.find('AW').text) moonplayer.show_list(result)
def search_cb(content, data): root = ET.fromstring(content) result = [] for item in root.iter("list"): result.append(item.find("title").text) result.append(item.find("AW").text) moonplayer.show_list(result)
def search_cb(content, data): #movies, TV series and details movies = list_links(content, 'http://www.youku.com/show_page/id_') details = list_links(content, '/detail/show/') n = (len(movies) + len(details)) >> 1 #videos links = movies + details + list_links(content, 'http://v.youku.com/v_show/') moonplayer.show_list(links) for i in xrange(n): moonplayer.set_list_item_color(i, '#0000ff')
def search_cb(content, keyword): #movies and tv series result = list_links(content, 'http://www.iqiyi.com/lib/m_') n = len(result) / 2 #album result += list_links(content, 'http://www.iqiyi.com/a_') n2 = len(result) / 2 #single video result += list_links(content, 'http://www.iqiyi.com/w_', keyword) result += list_links(content, 'http://www.iqiyi.com/v_', keyword) moonplayer.show_list(result) for i in xrange(n): moonplayer.set_list_item_color(i, '#0000ff') for i in xrange(n, n2): moonplayer.set_list_item_color(i, '#ff00ff')
def search_cb(page, kw): page = convert_to_utf8(page) #tv series links = list_links(page, 'http://so.tv.sohu.com/show/', kw) links += list_links(page, 'http://tv.sohu.com/item/', kw) n_series = len(links) / 2 #movies links += list_links(page, 'http://tv.sohu.com/2', kw) n = len(links) / 2 #others links += list_links(page, 'http://my.tv.sohu.com/us/', kw) #show moonplayer.show_list(links) for i in xrange(n_series): moonplayer.set_list_item_color(i, '#0000ff') for i in xrange(n_series, n): moonplayer.set_list_item_color(i, '#6a4100')
def library_cb(content, data): links = list_links(content, 'http://www.youku.com/show_page/id_') moonplayer.show_list(links)
def search_album_cb(content, data): links = list_links(content, 'http://www.youku.com/playlist_show/') moonplayer.show_list(links)
def search_cb(content, data): result = list_links(content, '//v.youku.com/v_show') result = [ 'http:' + item if item.startswith('//') else item for item in result ] moonplayer.show_list(result)
def search_album_cb(content, data): links = list_links(content, "/search_playlistdetail?") links += list_links(content, "http://www.youku.com/playlist_show/") moonplayer.show_list(links)
def search_album_cb(page, keyword): page = convert_to_utf8(page) links = list_links(page, 'http://www.tudou.com/playlist/id/', keyword) moonplayer.show_list(links)
def search_cb(content, data): links = list_links(content, 'http://www.tudou.com/programs/view/') moonplayer.show_list(links)
def search_album_cb(page, data): result = list_links(page, 'http://www.56.com/w') moonplayer.show_list(result)
def search_album_cb(content, data): links = list_links(content, 'http://you.video.sina.com.cn/a/') moonplayer.show_list(links)
def search_cb(content, data): links = list_links(content, 'http://video.sina.com.cn/v/b/') moonplayer.show_list(links)