The branch, eden has been updated
via 309de40e60c623ee50ecd0fd3beecfb7778cee4e (commit)
from 589f46e967073303ae5d2850101e351083bf51bf (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=309de40e60c623ee50ecd0fd3beecfb7778cee4e
commit 309de40e60c623ee50ecd0fd3beecfb7778cee4e
Author: spiff <[email protected]>
Date: Thu Oct 18 15:49:01 2012 +0200
[plugin.video.visir] updated to version 1.3.0
diff --git a/plugin.video.visir/addon.xml b/plugin.video.visir/addon.xml
index 02861ed..2ae3cae 100644
--- a/plugin.video.visir/addon.xml
+++ b/plugin.video.visir/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.visir"
name="VÃsir - VefTV"
- version="1.2.0"
+ version="1.3.0"
provider-name="haukurhaf">
<requires>
<import addon="xbmc.python" version="2.0"/>
diff --git a/plugin.video.visir/changelog.txt b/plugin.video.visir/changelog.txt
index 810620a..7abc930 100644
--- a/plugin.video.visir/changelog.txt
+++ b/plugin.video.visir/changelog.txt
@@ -1,3 +1,8 @@
+Version 1.3.0:
+
+ A complete redesign of http://www.visir.is/ (where all the data is
scraped from) caused a total failure of the plugin. Scraper functionality
updated to work with the new web site.
+ Note: some streams may still be broken as it has not been tested
thoroughly. Live TV not tested at all, most likely stil broken.
+
Version 1.2.0:
Some flash based streams where not working (for example sports/EPL).
Needed to add special handling for those to work.
diff --git a/plugin.video.visir/scraper.py b/plugin.video.visir/scraper.py
index 8afefdb..534514f 100644
--- a/plugin.video.visir/scraper.py
+++ b/plugin.video.visir/scraper.py
@@ -23,23 +23,23 @@ def getRootCategories():
categories = []
html = fetchPage("http://www.visir.is/section/MEDIA")
soup = BeautifulSoup(html)
- ul = soup.find("ul", attrs={"id": "filmCatList"})
+ ul = soup.find("ul", attrs={"id": "PagerIndex"})
for li in ul.findAll("li"):
if (li['class'].find('undir') == -1):
-
categories.append({"name":li.span.contents[0].encode('utf-8'),
"id":li['aevar']})
+
categories.append({"name":li.contents[0].encode('utf-8'), "id":li['data-kat']})
return categories
def getSubCategories(parent):
categories = []
html = fetchPage("http://www.visir.is/section/MEDIA")
soup = BeautifulSoup(html)
- ul = soup.find("ul", attrs={"id": "filmCatList"})
+ ul = soup.find("ul", attrs={"id": "PagerIndex"})
for li in ul.findAll("li"):
if (li['class'].find('childof'+parent) > -1):
type = ""
if li.has_key('sourcetype'):
type = li['sourcetype']
-
categories.append({"name":li.span.contents[0].encode('utf-8'), "id": parent,
"subid":li['aevar'], "type":type})
+
categories.append({"name":li.contents[0].encode('utf-8'), "id": parent,
"subid":li['data-kat'], "type":type})
return categories
def getVideos(category):
@@ -67,7 +67,7 @@ def getVideoData(fileid):
return { "rtmpurl":"rtmp://klippur.visir.is/vod/_definst_/",
"playpath":playpath, "swfplayer":"http://www.visir.is/jwplayer/player59.swf" }
else:
# Other cases, simply fetch the video URL based on the file Id
- path =
fetchPage("http://m3.visir.is/sjonvarp/myndband/bara-slod?itemid=" + fileid)
+ path =
fetchPage("http://m.visir.is/sjonvarp/myndband/bara-slod?itemid=" + fileid)
return { "rtmpurl":path, "playpath":"", "swfplayer":"" }
\ No newline at end of file
-----------------------------------------------------------------------
Summary of changes:
plugin.video.visir/addon.xml | 2 +-
plugin.video.visir/changelog.txt | 5 +++++
plugin.video.visir/scraper.py | 10 +++++-----
3 files changed, 11 insertions(+), 6 deletions(-)
hooks/post-receive
--
Plugins
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons