# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from xbmcswift import Plugin, download_page, xbmc, xbmcgui from xbmcswift.ext.playlist import playlist PLUGIN_NAME = 'OffeneKanaele' PLUGIN_ID = 'plugin.video.offene_kanaele' plugin = Plugin(PLUGIN_NAME, PLUGIN_ID, __file__) plugin.register_module(playlist, url_prefix='/_playlist') @plugin.route('/', default=True) def show_homepage(): items = [ # Berlin {'label': 'Berlin', 'url': plugin.url_for('berlin')}, # Dessau {'label': 'Dessau', 'url': plugin.url_for('dessau')}, # Landau, Neustadt & Haßloch {'label': 'Landau, Neustadt & Haßloch', 'url': plugin.url_for('landau')}, # Magdeburg
from xbmcswift import Plugin, download_page, xbmc, xbmcgui from xbmcswift.ext.playlist import playlist from BeautifulSoup import BeautifulSoup as BS from urllib import urlencode from urlparse import urljoin import re try: import json except ImportError: import simplejson as json PLUGIN_NAME = 'AlJazeera' PLUGIN_ID = 'plugin.video.aljazeera' plugin = Plugin(PLUGIN_NAME, PLUGIN_ID, __file__) plugin.register_module(playlist, url_prefix='/_playlist') BASE_URL = 'http://english.aljazeera.net' def full_url(path): return urljoin(BASE_URL, path) def extract_videoid(url): return url.split("/")[-1:][0] YOUTUBE_PTN = 'plugin://plugin.video.youtube/?action=play_video&videoid=%s'