def UpdateCheck():
	oc = ObjectContainer(title2='Update')
	if VerifyAccess():
		if updater.update_available()[0]:
			oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (New Available)', thumb = R(ICON_UPDATE_NEW)))
		else:
			oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (Running Latest)', thumb = R(ICON_UPDATE)))
	else:
		if updater.update_available()[0]:
			oc.add(DirectoryObject(key = Callback(NoAccess), title = 'Update (New Available)', thumb = R(ICON_UPDATE_NEW)))
		else:
			oc.add(DirectoryObject(key = Callback(NoAccess), title = 'Update (Running Latest)', thumb = R(ICON_UPDATE)))
	return oc
Beispiel #2
0
def Main():
    Log.Info('============================================')
    Log.Info('Client:')
    Log.Info(' - Product:  {0}'.format(Client.Product))
    Log.Info(' - Platform: {0}'.format(Client.Platform))
    Log.Info('============================================')

    object_container = ObjectContainer(title2=TITLE)

    if updater.update_available():
        object_container.add(updater.create_button())

    object_container.add(
        DirectoryObject(key=Callback(movies_menu.menu),
                        title='Movies',
                        summary='Browse movies.'))
    object_container.add(
        DirectoryObject(key=Callback(tvshows_menu.menu),
                        title='TV Shows',
                        summary="Browse TV shows."))
    object_container.add(
        PrefsObject(title='Preferences',
                    summary='Preferences for BitTorrent channel.'))
    object_container.add(
        DirectoryObject(key=Callback(about_menu, title='About'),
                        title='About',
                        summary='About BitTorrent channel.',
                        thumb=R('about.png')))

    return object_container
def MainMenu():

	if len(SLIMERJS_INIT) == 0:
		# Initialize SlimerJS module once for faster load times
		Thread.Create(initSlimerJS)
		SLIMERJS_INIT.append('True')
	
	defaultLang = Prefs['langPref']
	
	oc = ObjectContainer(title2=TITLE)

	oc.add(DirectoryObject(key = Callback(SortMenu, lang = defaultLang), title = defaultLang.title() + ' Movies', thumb = R(ICON_MOVIES)))
	oc.add(DirectoryObject(key = Callback(SetLanguage), title = 'Movies (Language Menu)', thumb = R(ICON_LANG)))
	
	oc.add(DirectoryObject(key = Callback(Bookmarks, title="My Movie Bookmarks"), title = "Bookmarks", thumb = R(ICON_QUEUE)))
	
	oc.add(InputDirectoryObject(key = Callback(Search, lang = defaultLang, page_count=1), title='Search', summary='Search Movies', prompt='Search for...', thumb = R(ICON_SEARCH)))
	oc.add(DirectoryObject(key = Callback(SearchQueueMenu, title = 'Search Queue'), title = 'Search Queue', summary='Search using saved search terms', thumb = R(ICON_SEARCH_QUEUE)))
	oc.add(PrefsObject(title = 'Preferences', thumb = R(ICON_PREFS)))
	if updater.update_available()[0]:
		oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (New Available)', thumb = R(ICON_UPDATE_NEW)))
	else:
		oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (Running Latest)', thumb = R(ICON_UPDATE)))
	
	return oc
def MainMenu():
    oc = ObjectContainer()
    oc.add(
        DirectoryObject(key=Callback(desitvbox.ChannelsMenu,
                                     url=desitvbox.SITEURL),
                        title=desitvbox.SITETITLE,
                        thumb=R(desitvbox.SITETHUMB)))
    oc.add(
        DirectoryObject(key=Callback(desitashan.ChannelsMenu,
                                     url=desitashan.SITEURL),
                        title=desitashan.SITETITLE,
                        thumb=R(desitashan.SITETHUMB)))
    #  oc.add(DirectoryObject(key=Callback(desirulez.TypeMenu, url=desirulez.SITEURL), title=desirulez.SITETITLE, thumb=R(desirulez.SITETHUMB)))
    #oc.add(DirectoryObject(key=Callback(apnitv.ChannelsMenu, url=apnitv.SITEURL), title=apnitv.SITETITLE, thumb=R(apnitv.SITETHUMB)))
    #oc.add(DirectoryObject(key=Callback(desitvforum.TypeMenu, url=desitvforum.SITEURL), title=desitvforum.SITETITLE, thumb=R(desitvforum.SITETHUMB)))

    if updater.update_available()[0]:
        oc.add(
            DirectoryObject(key=Callback(updater.menu, title='Update Plugin'),
                            title='Update (New Available)',
                            thumb=R(ICON_UPDATE_NEW)))
    else:
        oc.add(
            DirectoryObject(key=Callback(updater.menu, title='Update Plugin'),
                            title='Update (Running Latest)',
                            thumb=R(ICON_UPDATE)))

    #oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update Plugin', thumb = R(ICON_UPDATE)))
    oc.add(PrefsObject(title='Preferences', thumb=R(ICON_PREFS)))
    return oc
def test_version():
    update_available, latest_version = updater.update_available()
    if not update_available:
        result         = True
        result_str     = SharedCodeService.common.VERSION
        result_summary = 'Running latest version.'
    else:
        result         = 'Update'
        result_str     = SharedCodeService.common.VERSION + ' ({0} available)'.format(latest_version)
        result_summary = 'Click to update to latest version.'
    return (result, result_str, result_summary)
def test_version():
    update_available, latest_version = updater.update_available()
    if not update_available:
        result         = True
        result_str     = SharedCodeService.common.VERSION
        result_summary = 'Running latest version.'
    else:
        result         = 'Update'
        result_str     = SharedCodeService.common.VERSION + ' ({0} available)'.format(latest_version)
        result_summary = 'Click to update to latest version.'
    return (result, result_str, result_summary)
def Main():
	Log('Funktion Main'); Log(PREFIX); Log(VERSION); Log(VDATE)
	Log('Client: '); Log(Client.Platform)
	oc = ObjectContainer(view_group="InfoList", title1=NAME, art=ObjectContainer.art)	
																			
	# folgendes DirectoryObject ist Deko für das nicht sichtbare InputDirectoryObject dahinter:
	summ = 'Suche in aktuellen Beiträgen'.decode(encoding="utf-8", errors="ignore")	
	oc.add(DirectoryObject(key=Callback(Main),title='Suche: im Suchfeld eingeben', 
		summary=summ, tagline='Mediathek', thumb=R(ICON_SEARCH)))
	oc.add(InputDirectoryObject(key=Callback(Search, first=True, path=DreiSat_Suche, s_type='video', 
		title=u'%s' % L('Search Video')), title=u'%s' % L('Suche'), prompt=u'%s' % L('Search Video'), 
		thumb=R(ICON_SEARCH)))
		
	summ=''
	epg = get_epg()
	if epg:
		summ = 'Jetzt in 3sat: %s' % epg	
	summ = summ.decode(encoding="utf-8", errors="ignore")	
	oc.add(DirectoryObject(key=Callback(Live, name='3Sat-Livestream'), title='3Sat-Livestream',
		summary=summ, tagline='TV', thumb=R(ICON_MAIN_TVLIVE)))
		
	title = "Verpasst".decode(encoding="utf-8", errors="ignore")	
	summ = "aktuelle Beiträge eines Monats - nach Datum geordnet".decode(encoding="utf-8", errors="ignore")	
	oc.add(DirectoryObject(key=Callback(Verpasst, name=NAME), title=title,
		summary=summ, tagline='TV', thumb=R(ICON_CAL)))
	title = "Sendungen A-Z".decode(encoding="utf-8", errors="ignore")	
	summ = "Sendereihen - alphabetisch geordnet".decode(encoding="utf-8", errors="ignore")	
	oc.add(DirectoryObject(key=Callback(SendungenAZ, name='Sendungen 0-9 | A-Z', path=DreiSat_AZ), title=title,
		summary=summ, tagline='TV', thumb=R(ICON_AZ)))
		
	repo_url = 'https://github.com/{0}/releases/'.format(GITHUB_REPOSITORY)
	call_update = False
	if Prefs['pref_info_update'] == True:				# Hinweis auf neues Update beim Start des Plugins 
		ret = updater.update_available(VERSION)
		int_lv = ret[0]			# Version Github
		int_lc = ret[1]			# Version aktuell
		latest_version = ret[2]	# Version Github, Format 1.4.1
		
		if int_lv > int_lc:								# Update-Button "installieren" zeigen
			call_update = True
			title = 'neues Update vorhanden - jetzt installieren'
			summary = 'Plugin aktuell: ' + VERSION + ', neu auf Github: ' + latest_version
			url = 'https://github.com/{0}/releases/download/{1}/{2}.bundle.zip'.format(GITHUB_REPOSITORY, latest_version, REPO_NAME)
			oc.add(DirectoryObject(key=Callback(updater.update, url=url , ver=latest_version), 
				title=title, summary=summary, tagline=cleanhtml(summary), thumb=R(ICON_UPDATER_NEW)))
	if call_update == False:							# Update-Button "Suche" zeigen	
		title = 'Plugin-Update | akt. Version: ' + VERSION + ' vom ' + VDATE	
		summary='Suche nach neuen Updates starten'
		tagline='Bezugsquelle: ' + repo_url			
		oc.add(DirectoryObject(key=Callback(SearchUpdate, title='Plugin-Update'), 
			title=title, summary=summary, tagline=tagline, thumb=R(ICON_MAIN_UPDATER)))
		
	return oc
def MainMenu():

	oc = ObjectContainer(title2=TITLE)
	oc.add(DirectoryObject(key = Callback(ShowMenu, title = 'Movies'), title = 'Movies', thumb = R(ICON_MOVIES)))
	oc.add(DirectoryObject(key = Callback(Bookmarks, title="Bookmarks"), title = "Bookmarks", thumb = R(ICON_QUEUE)))
	oc.add(DirectoryObject(key = Callback(SearchQueueMenu, title = 'Search Queue'), title = 'Search Queue', summary='Search using saved search terms', thumb = R(ICON_SEARCH_QUE)))
	oc.add(InputDirectoryObject(key = Callback(Search, page_count=1), title='Search', summary='Search Movies', prompt='Search for...', thumb=R(ICON_SEARCH)))
	try:
		if updater.update_available()[0]:
			oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (New Available)', thumb = R(ICON_UPDATE_NEW)))
		else:
			oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (Running Latest)', thumb = R(ICON_UPDATE)))
	except:
		pass
		
	return oc
def MainMenu():

    defaultLang = Prefs['langPref']

    oc = ObjectContainer(title2=TITLE)

    oc.add(
        DirectoryObject(key=Callback(ShowMenu, lang=defaultLang),
                        title=defaultLang.title() + ' Movies',
                        thumb=R(ICON_MOVIES)))
    oc.add(
        DirectoryObject(key=Callback(SetLanguage),
                        title='Movies (Language Menu)',
                        thumb=R(ICON_LANG)))

    oc.add(
        DirectoryObject(key=Callback(Bookmarks, title="My Movie Bookmarks"),
                        title="My Movie Bookmarks",
                        thumb=R(ICON_QUEUE)))

    oc.add(
        InputDirectoryObject(key=Callback(Search,
                                          lang=defaultLang,
                                          page_count=1),
                             title='Search',
                             summary='Search Movies',
                             prompt='Search for...',
                             thumb=R(ICON_SEARCH)))
    oc.add(
        DirectoryObject(key=Callback(SearchQueueMenu, title='Search Queue'),
                        title='Search Queue',
                        summary='Search using saved search terms',
                        thumb=R(ICON_SEARCH_QUEUE)))
    oc.add(PrefsObject(title='Preferences', thumb=R(ICON_PREFS)))
    if updater.update_available()[0]:
        oc.add(
            DirectoryObject(key=Callback(updater.menu, title='Update Plugin'),
                            title='Update (New Available)',
                            thumb=R(ICON_UPDATE_NEW)))
    else:
        oc.add(
            DirectoryObject(key=Callback(updater.menu, title='Update Plugin'),
                            title='Update (Running Latest)',
                            thumb=R(ICON_UPDATE)))

    return oc
Beispiel #10
0
def MainMenu():

	SetupCache()

	oc = ObjectContainer(title2=TITLE)
	oc.add(DirectoryObject(key = Callback(ShowMenu, title = 'Movies / TV Shows'), title = 'Movies / TV Shows', thumb = R(ICON_MOVIES)))
	oc.add(DirectoryObject(key = Callback(Bookmarks, title="My Movie Bookmarks"), title = "My Movie Bookmarks", thumb = R(ICON_QUEUE)))
	oc.add(DirectoryObject(key = Callback(SearchQueueMenu, title = 'Search Queue'), title = 'Search Queue', summary='Search using saved search terms', thumb = R(ICON_SEARCH)))
	oc.add(InputDirectoryObject(key = Callback(Search, page_count=1), title='Search', summary='Search Movies', prompt='Search for...', thumb=R(ICON_PLEX_SEARCH)))
	#oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update Plugin', thumb = R(ICON_UPDATE)))
	oc.add(DirectoryObject(key = Callback(DeleteDownloadThumb), title = 'Delete Thumbnails', summary = 'Deletes all Cached Thumbnail images from the disk', thumb = R(ICON_DEL)))
	#oc.add(PrefsObject(title = 'Preferences', thumb = R(ICON_PREFS)))
	if updater.update_available()[0]:
		oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (New Available)', thumb = R(ICON_UPDATE_NEW)))
	else:
		oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (Running Latest)', thumb = R(ICON_UPDATE)))

	return oc
Beispiel #11
0
def Main():
    Log.Info('============================================')
    Log.Info('Client:')
    Log.Info(' - Product:  {0}'.format(Client.Product))
    Log.Info(' - Platform: {0}'.format(Client.Platform))
    Log.Info('============================================')

    object_container = ObjectContainer(title2=TITLE)

    if updater.update_available():
        object_container.add(updater.create_button())

    object_container.add(DirectoryObject(key=Callback(movies_menu.menu), title='Movies', summary='Browse movies.'))
    object_container.add(DirectoryObject(key=Callback(tvshows_menu.menu), title='TV Shows', summary="Browse TV shows."))
    object_container.add(PrefsObject(title='Preferences', summary='Preferences for BitTorrent channel.'))
    object_container.add(DirectoryObject(key=Callback(about_menu, title='About'), title='About', summary='About BitTorrent channel.', thumb=R('about.png')))

    return object_container
def SearchUpdate(title):		#
	oc = ObjectContainer(view_group="InfoList", art=ObjectContainer.art)	

	ret = updater.update_available(VERSION)	
	Log(ret)
	if ret[0] == False:		
		msg = 'Updater: Github-Problem'
		msgH = 'update_available: False'
		Log(msg)
		return ObjectContainer(header=msgH, message=msg)

	int_lv = ret[0]			# Version Github
	int_lc = ret[1]			# Version aktuell
	latest_version = ret[2]	# Version Github, Format 1.4.1
	summ = ret[3]			# Plugin-Name
	tag = ret[4]			# History (last change) )
	
	url = 'https://github.com/{0}/releases/download/{1}/{2}.bundle.zip'.format(GITHUB_REPOSITORY, latest_version, REPO_NAME)
	Log(latest_version); Log(int_lv); Log(int_lc); Log(url); 
	
	if int_lv > int_lc:		# zum Testen drehen (akt. Plugin vorher sichern!)
		oc.add(DirectoryObject(
			key = Callback(updater.update, url=url , ver=latest_version), 
			title = 'Update vorhanden - jetzt installieren',
			summary = 'Plugin aktuell: ' + VERSION + ', neu auf Github: ' + latest_version,
			tagline = cleanhtml(summ),
			thumb = R(ICON_UPDATER_NEW)))
			
		oc.add(DirectoryObject(
			key = Callback(Main), 
			title = 'Update abbrechen',
			summary = 'weiter im aktuellen Plugin',
			thumb = R(ICON_UPDATER_NEW)))
	else:	
		oc.add(DirectoryObject(
			#key = Callback(updater.menu, title='Update Plugin'), 
			key = Callback(Main), 
			title = 'Plugin ist aktuell | weiter zum aktuellen Plugin',
			summary = 'Plugin Version ' + VERSION + ' ist aktuell (kein Update vorhanden)',
			tagline = cleanhtml(summ),
			thumb = R(ICON_OK)))
			
	return oc
Beispiel #13
0
def MainMenu():
	oc = ObjectContainer()
	oc.add(DirectoryObject(key=Callback(desitvbox.ChannelsMenu, url=desitvbox.SITEURL), title=desitvbox.SITETITLE, thumb=R(desitvbox.SITETHUMB)))
	oc.add(DirectoryObject(key=Callback(desitashan.ChannelsMenu, url=desitashan.SITEURL), title=desitashan.SITETITLE, thumb=R(desitashan.SITETHUMB)))
	oc.add(DirectoryObject(key=Callback(desirulez.TypeMenu, url=desirulez.SITEURL), title=desirulez.SITETITLE, thumb=R(desirulez.SITETHUMB)))
	
	#oc.add(DirectoryObject(key=Callback(apnitv.ChannelsMenu, url=apnitv.SITEURL), title=apnitv.SITETITLE, thumb=R(apnitv.SITETHUMB)))
	#oc.add(DirectoryObject(key=Callback(desitvforum.TypeMenu, url=desitvforum.SITEURL), title=desitvforum.SITETITLE, thumb=R(desitvforum.SITETHUMB)))
	
	if updater.update_available()[0]:
		oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (New Available)', thumb = R(ICON_UPDATE_NEW)))
	else:
		oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (Running Latest)', thumb = R(ICON_UPDATE)))
	
	#oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update Plugin', thumb = R(ICON_UPDATE)))
	oc.add(PrefsObject(title = 'Preferences', thumb = R(ICON_PREFS)))
	return oc

####################################################################################################
Beispiel #14
0
def MainMenu():
	
	defaultLang = Prefs['langPref']
	
	oc = ObjectContainer(title2=TITLE)

	oc.add(DirectoryObject(key = Callback(ShowMenu, lang = defaultLang), title = defaultLang.title() + ' Movies', thumb = R(ICON_MOVIES)))
	oc.add(DirectoryObject(key = Callback(SetLanguage), title = 'Movies (Language Menu)', thumb = R(ICON_LANG)))
	
	oc.add(DirectoryObject(key = Callback(Bookmarks, title="My Movie Bookmarks"), title = "My Movie Bookmarks", thumb = R(ICON_QUEUE)))
	
	oc.add(InputDirectoryObject(key = Callback(Search, lang = defaultLang, page_count=1), title='Search', summary='Search Movies', prompt='Search for...', thumb = R(ICON_SEARCH)))
	oc.add(DirectoryObject(key = Callback(SearchQueueMenu, title = 'Search Queue'), title = 'Search Queue', summary='Search using saved search terms', thumb = R(ICON_SEARCH_QUEUE)))
	oc.add(PrefsObject(title = 'Preferences', thumb = R(ICON_PREFS)))
	if updater.update_available()[0]:
		oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (New Available)', thumb = R(ICON_UPDATE_NEW)))
	else:
		oc.add(DirectoryObject(key = Callback(updater.menu, title='Update Plugin'), title = 'Update (Running Latest)', thumb = R(ICON_UPDATE)))
	
	return oc
def MainMenu():
	
	oc = ObjectContainer(title2=TITLE)
	ChHelper = ' (Refresh List)'
	ChHelper2 = ' (Initialize this Channel List once before Search, Search Queue and Bookmark menu are made available)'

	if Dict['items_dict'] <> {}:
		ChHelper = ''
		ChHelper2 = ' - Listing retrieved'
	oc.add(DirectoryObject(key = Callback(ShowMenu, title = 'Channels'), title = 'Channels' + ChHelper, summary = 'Channels' + ChHelper2, thumb = R(ICON)))
	
	oc.add(DirectoryObject(key = Callback(Pins, title='My Channel Pins'), title = 'My Channel Pins', thumb = R(ICON_PIN)))
	
	oc.add(PrefsObject(title = 'Preferences', thumb = R(ICON_PREFS)))
	oc.add(DirectoryObject(key = Callback(DefineAccessControl, title='Access Control'), title = 'Access Control', summary='Set/Remove Temporary Access', thumb = R(ICON_LOCK)))
	
	if updater.update_available()[0]:
		oc.add(DirectoryObject(key = Callback(UpdateCheck), title = 'Update (New Available)', thumb = R(ICON_UPDATE_NEW)))
	else:
		oc.add(DirectoryObject(key = Callback(UpdateCheck), title = 'Update (Running Latest)', thumb = R(ICON_UPDATE)))
	
	return oc
def SearchUpdate(title):		#
	oc = ObjectContainer(view_group="InfoList", art=ObjectContainer.art)	

	ret = updater.update_available(VERSION)
	int_lv = ret[0]			# Version Github
	int_lc = ret[1]			# Version aktuell
	latest_version = ret[2]	# Version Github
	summ = ret[3]			# Plugin-Name
	tag = ret[4]			# History (last change)

	url = 'https://github.com/{0}/releases/download/{1}/{2}.bundle.zip'.format(GITHUB_REPOSITORY, latest_version, REPO_NAME)
	Log(latest_version); Log(int_lv); Log(int_lc); Log(url); 
	
	if int_lv > int_lc:		# zum Testen drehen (akt. Plugin vorher sichern!)
		oc.add(DirectoryObject(
			key = Callback(updater.update, url=url , ver=latest_version), 
			title = 'Update vorhanden - jetzt installieren',
			summary = 'Plugin aktuell: ' + VERSION + ', neu auf Github: ' + latest_version,
			tagline = cleanhtml(summ),
			thumb = R(ICON_UPDATER_NEW)))
			
		oc.add(DirectoryObject(
			key = Callback(Main), 
			title = 'Update abbrechen',
			summary = 'weiter im aktuellen Plugin',
			thumb = R(ICON_UPDATER_NEW)))
	else:	
		oc.add(DirectoryObject(
			#key = Callback(updater.menu, title='Update Plugin'), 
			key = Callback(Main), 
			title = 'Plugin ist aktuell | weiter zum aktuellen Plugin',
			summary = 'Plugin Version ' + VERSION + ' ist aktuell (kein Update vorhanden)',
			tagline = cleanhtml(summ),
			thumb = R(ICON_OK)))
			
	return oc
def Main():
	Log('Funktion Main'); Log(PREFIX); Log(VERSION); Log(VDATE)
	Log('Client: '); Log(Client.Platform)
	oc = ObjectContainer(view_group="InfoList", art=ObjectContainer.art)	
																			
	# folgendes DirectoryObject ist Deko für das nicht sichtbare InputDirectoryObject dahinter:
	oc.add(DirectoryObject(key=Callback(Main),title='Suche: im Suchfeld eingeben', 
		summary='', tagline='TV', thumb=R(ICON_SEARCH)))
	oc.add(InputDirectoryObject(key=Callback(Search, s_type='video', title=u'%s' % L('Search Video')),
		title=u'%s' % L('Search'), prompt=u'%s' % L('Search Video'), thumb=R(ICON_SEARCH)))

	title = 'Livestream'
	oc.add(DirectoryObject(key=Callback(Livestream, title=title), title=title,summary=title, tagline='TV', 
		thumb=R(ICON_LIVE)))
	title = 'Tagesschau in 100 Sekunden' 
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_100, ID='ARD_100', img=ICON_100sec), 
		title=title, summary=title, tagline='TV', thumb=R(ICON_100sec)))
	title = 'Letzte Sendung'
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_Last, ID='ARD_Last', img=ICON_LAST), 
		title=title,summary=title, tagline='TV', thumb=R(ICON_LAST)))
	title = 'Tagesschau 20 Uhr'
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_20Uhr, ID='ARD_20Uhr', img=ICON_20), 
		title=title,summary=title, tagline='TV', thumb=R(ICON_20)))
	title = 'Tagesschau 20 Uhr (Gebärdensprache)'.decode(encoding="utf-8", errors="ignore")
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_Gest, ID='ARD_Gest', img=ICON_20GEST), 
		title=title,summary=title, tagline='TV', thumb=R(ICON_20GEST)))
	title = 'Tagesthemen'
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_tthemen, ID='ARD_tthemen', img=ICON_TTHEMEN), 
		title=title,summary=title, tagline='TV', thumb=R(ICON_TTHEMEN)))
	title = 'Nachtmagazin'
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_Nacht, ID='ARD_Nacht', img=ICON_NACHT), 
		title=title,summary=title, tagline='TV', thumb=R(ICON_NACHT)))
	title = 'Bericht aus Berlin'
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_bab, ID='ARD_bab', img=ICON_BAB), 
		title=title,summary=title, tagline='TV', thumb=R(ICON_BAB)))
	title = 'Sendungsarchiv'
	summary = 'Tagesschau-Sendungen eines Monats'
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_Archiv, ID='ARD_Archiv', img=ICON_ARCHIV), 
		title=title,summary=summary, tagline='TV', thumb=R(ICON_ARCHIV)))
	#title = 'Podcasts'														# überflüssig ohne Download-Funktion
	#oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_Pod, ID='ARD_Pod', img=''), 
	#	title=title,summary=title, tagline='TV', thumb=R(ICON_POD)))
	title = 'Videoblogs'
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_Blogs, ID='ARD_Blogs', img=ICON_BLOGS), 
		title=title,summary=title, tagline='TV', thumb=R(ICON_BLOGS)))
	title = 'Politik im Radio'
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_PolitikRadio, ID='ARD_PolitikRadio', img=ICON_RADIO), 
		title=title,summary=title, tagline='Radio', thumb=R(ICON_RADIO)))
	title = 'Bildergalerien'
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_Bilder, ID='ARD_Bilder', img=ICON_BILDER),
		title=title,summary=title, tagline='Bilder', thumb=R(ICON_BILDER)))
	title = '#kurzerklärt'.decode(encoding="utf-8", errors="ignore")
	oc.add(DirectoryObject(key=Callback(menu_hub, title=title, path=ARD_kurz, ID='ARD_kurz', img=ICON_KURZ), 
		title=title,summary=title, tagline='TV', thumb=R(ICON_KURZ)))

	repo_url = 'https://github.com/{0}/releases/'.format(GITHUB_REPOSITORY)
	call_update = False
	if Prefs['pref_info_update'] == True:				# Hinweis auf neues Update beim Start des Plugins 
		ret = updater.update_available(VERSION)
		int_lv = ret[0]			# Version Github
		int_lc = ret[1]			# Version aktuell
		latest_version = ret[2]	# Version Github, Format 1.4.1
		
		if int_lv > int_lc:								# Update-Button "installieren" zeigen
			call_update = True
			title = 'neues Update vorhanden - jetzt installieren'
			summary = 'Plugin aktuell: ' + VERSION + ', neu auf Github: ' + latest_version
			url = 'https://github.com/{0}/releases/download/{1}/{2}.bundle.zip'.format(GITHUB_REPOSITORY, latest_version, REPO_NAME)
			oc.add(DirectoryObject(key=Callback(updater.update, url=url , ver=latest_version), 
				title=title, summary=summary, tagline=cleanhtml(summary), thumb=R(ICON_UPDATER_NEW)))
	if call_update == False:							# Update-Button "Suche" zeigen	
		title = 'Plugin-Update | akt. Version: ' + VERSION + ' vom ' + VDATE	
		summary='Suche nach neuen Updates starten'
		tagline='Bezugsquelle: ' + repo_url			
		oc.add(DirectoryObject(key=Callback(SearchUpdate, title='Plugin-Update'), 
			title=title, summary=summary, tagline=tagline, thumb=R(ICON_MAIN_UPDATER)))
								
		
	return oc