import re
import urlparse
import datetime
import json
import time

import xbmcaddon
import xbmcgui
import xbmcplugin
import xbmc

import livelib
import boogietools as bt

bt.initdirs("plugin.video.videostream")

from third import humanize

domain="http://videostream.dn.ua"
encoding="utf-8"
c=xbmc.getLocalizedString(19029)
handle,page,args=bt.link_from()
ll=livelib.livelib()
lang=xbmc.getLanguage(xbmc.ISO_639_1).lower()
#addon=xbmcaddon.Addon ("plugin.video.webspor")
#timeout=int(addon.getSetting("watch_timeout"))
#ctimeout=int(addon.getSetting("check_timeout"))


notifications={"red":"[COLOR red]%s[/COLOR]",
 		    "orange":"[COLOR orange]%s[/COLOR]",
Example #2
0
import threading

import boogietools as bt

bt.initdirs("plugin.video.webspor")

from webspor import webspor as ws
from webspor import scrapers as sc
from webspor import ui

handle,page,args=bt.link_from()
ui=ui.crateui()
th=threading.Thread(target=ws.list_items,args=(sc.scrape_channels(),ui))
th.start()
ui.doModal()