Exemple #1
0
def search(stream_type='VOD'):

    dialog = Dialog()
    search_term = dialog.input('Suche', type=INPUT_ALPHANUM)

    if len(search_term) > 0:
        request_params = {
            'search': search_term.lower(),
            'hasVodContent': 'true'
        }
        tvshows = libjoyn.get_json_by_type(path_type='TVSHOW',
                                           additional_params=request_params)
        if len(tvshows['data']) > 0:
            for tvshow in tvshows['data']:
                tv_show_id = str(tvshow['id'])
                if 'metadata' in tvshow.keys(
                ) and 'de' in tvshow['metadata'].keys():
                    extracted_metadata = libjoyn.extract_metadata(
                        metadata=tvshow['metadata']['de'],
                        selection_type='TVSHOW')
                    add_dir(mode='season',
                            tv_show_id=tv_show_id,
                            metadata=extracted_metadata,
                            parent_fanart=default_fanart)
            endOfDirectory(handle=pluginhandle)
        else:
            xbmc_helper.notification('Keine Ergebnisse',
                                     'für "' + search_term + '" gefunden',
                                     default_icon)
Exemple #2
0
def build_search():

    dlg = Dialog()
    d = dlg.input(loc(30029), type=INPUT_ALPHANUM)
    if d.strip() == "":
        return

    global menu
    menu.start_folder()

    results = bitchute_access.search(d)

    if 0 == len(results):
        menu.new_info_item(loc(30028))
    else:
        for n in results:

            menu.new_folder_item(item_name=n.title,
                                 func=play_now,
                                 item_val=n.video_id,
                                 description=n.channel_name + "\n" +
                                 n.description,
                                 iconURL=n.poster)

    menu.end_folder()
Exemple #3
0
def add_entry_dialog():
    dialog = Dialog()
    txt = dialog.input('Add new entry (subreddit)')
    if txt:
        log("Adding {} to favorites".format(txt))
        ss = StreamingSubreddits()
        ss.add_entry(txt, txt)
Exemple #4
0
def video_by_id():

    d = Dialog()
    v = d.input(loc(30030))
    if v.strip() == "":
        return

    play_video(v)
Exemple #5
0
                if cont == settings.max_magnets:  # limit magnets
                    break
            print('>>>>>>' + str(cont) + ' torrents sent to Pulsar<<<<<<<')
            return results
        except:
            print('>>>>>>>ERROR parsing data<<<<<<<')
            settings.dialog.notification(settings.name_provider, '>>>>>>>>ERROR parsing data<<<<<<<<', settings.icon,
                                         1000)
        else:
            print('>>>>>>>%s<<<<<<<' % browser.status)
            settings.dialog.notification(settings.name_provider, browser.status, settings.icon, 1000)


dialog = Dialog()
loop = True
query = dialog.input('Query:')
type = dialog.select('Type:', ['All', 'Movies', 'TV Shows'])
if type == 1:
    filters.use_movie()
if type == 2:
    filters.use_TV()
#search result in all sites
settings.dialog.notification(settings.name_provider, 'Searching in TorrentZ', settings.icon,
                             1000)
results = torrentz(query)
settings.dialog.notification(settings.name_provider, 'Searching in ThePirateBay', settings.icon,
                             1000)
results += thepiratebay(query)
settings.dialog.notification(settings.name_provider, 'Searching in BTjunkie', settings.icon,
                             1000)
results += btjunkie(query)