# Python (system) imports. import sys import os import xml.dom.minidom import urllib from urlparse import urlparse # Custom (this plugin) imports. from Site import Site 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 ):