from Feed import Feed from SimplerXML import SimplerXML from XBMCExtensions import XBMCExtensions # Retrieve settings for the plugin. plugin_id = 'plugin.video.whiskeymedia' plugin_settings = XBMCExtensions.getSettings(plugin_id) video_quality = plugin_settings.getSetting('video_quality') wm_username = plugin_settings.getSetting('username') wm_password = plugin_settings.getSetting('password') # Get environmental settings. _path = sys.argv[0] _pwd = plugin_settings.getAddonInfo('path') _handle = XBMCExtensions.getHandle() _argv = XBMCExtensions.getPath() # Store the list of sites and feeds inside them. array_sites = [] # For the selected site and feed, create a list of menu items for the videos in the feed. def displayVideoListing( name_site, name_feed ): # Turn the ENUM value for video quality into a named string. if video_quality == '1': vq = 'hd' elif video_quality == '2': vq = 'low' elif video_quality == '3': vq = 'mobile' else: vq = 'high'