def Start(): getLatestVersion() Log.Info("***{0} starting Python Version {1} TimeZone {2} PluginVersion {3} SSL Version {4}".format(NAME, sys.version, time.timezone, str(PLUGIN_VERSION),ssl.OPENSSL_VERSION)) loginResult = SmoothAuth.login() SetAvailableLanguages({'en', 'fr', 'ru'}) if Dict['SPassW'] is None: Log.Info('Bad login here, need to display it') ObjectContainer.title1 = NAME + " - Enter Login Details ->" ObjectContainer.art = R(ART) else: ObjectContainer.title1 = NAME DirectoryObject.thumb = R("Smoothstreams-network.png") InputDirectoryObject.thumb = R('icon-search.png') InputDirectoryObject.art = R('art-default.jpg') ObjectContainer.art = R('art-default.jpg') InputDirectoryObject.thumb = R('icon-search.png') InputDirectoryObject.art = R('art-default.jpg') VideoClipObject.thumb = R('icon-tv.png') VideoClipObject.art = R('art-default.jpg') Dict['playlist_loading_in_progress'] = False Dict['guide_loading_in_progress'] = False HTTP.Headers['User-agent'] = 'YAP4PLEX - %s - %s - %s' % (sys.argv[0], platform.system(), str(PLUGIN_VERSION))
def Start(): ObjectContainer.title1 = NAME ObjectContainer.art = R('art-default.jpg') DirectoryObject.thumb = R('icon-folder.png') DirectoryObject.art = R('art-default.jpg') InputDirectoryObject.thumb = R('icon-search.png') InputDirectoryObject.art = R('art-default.jpg') VideoClipObject.thumb = R('icon-tv.png') VideoClipObject.art = R('art-default.jpg') SetAvailableLanguages({'en', 'fr', 'ru', 'it'}) # in case something went wrong last run (#122) Dict['playlist_loading_in_progress'] = False Dict['guide_loading_in_progress'] = False if Prefs['m3u_reload_time'] == 'on start' or not Dict['groups'] or not Dict['streams']: LoadPlaylist() Thread.Create(PlaylistReloader) Thread.Create(GuideReloader)