def search(): log('search start') search_string = None keyboard = xbmc.Keyboard('', plugin.get_string(30003)) keyboard.doModal() if keyboard.isConfirmed() and keyboard.getText(): search_string = keyboard.getText() log('search gots a string: "%s"' % search_string) videos = scraper.get_search_result(search_string) return __add_videos(videos)
def search(): log('search start') search_string = None keyboard = xbmc.Keyboard('', plugin.get_string(30003)) keyboard.doModal() if keyboard.isConfirmed() and keyboard.getText(): search_string = keyboard.getText() log('search gots a string: "%s"' % search_string) videos = scraper.get_search_result(search_string) return __add_videos(videos)
def video_search_result(search_string): items = scraper.get_search_result(search_string) return __add_items(items)
def video_search_result(search_string): __log('video_search_result started with string=%s' % search_string) entries = scraper.get_search_result(search_string) __log('search end') return __add_items(entries)
def search_result(search_string): videos = scraper.get_search_result(search_string) return __add_videos(videos)