The branch, eden has been updated
via bd19edbbe45ff1ac595b04b1ecd22ae9cb709591 (commit)
from b55ab5d6030a2cd42db6087ab033efa5c926b558 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=bd19edbbe45ff1ac595b04b1ecd22ae9cb709591
commit bd19edbbe45ff1ac595b04b1ecd22ae9cb709591
Author: Martijn Kaijser <[email protected]>
Date: Thu Sep 6 23:34:29 2012 +0200
[plugin.video.gamestar] -v0.1.4
diff --git a/plugin.video.gamestar/addon.xml b/plugin.video.gamestar/addon.xml
index 083bf61..e75195f 100644
--- a/plugin.video.gamestar/addon.xml
+++ b/plugin.video.gamestar/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="plugin.video.gamestar"
- version="0.1.3"
+ version="0.1.4"
name="GamestarVideo"
provider-name="Raptor 2101 [[email protected]]">
<requires>
diff --git a/plugin.video.gamestar/changelog.txt
b/plugin.video.gamestar/changelog.txt
index cd5080c..53f8e46 100644
--- a/plugin.video.gamestar/changelog.txt
+++ b/plugin.video.gamestar/changelog.txt
@@ -1,3 +1,4 @@
+0.1.4 - Adopt newly changes from gamestar.de
0.1.3 - Adopt change from gamestar.de
0.1.2 - Rewrite the Gamepro part
0.1.1 - change to eden-pre interface
diff --git a/plugin.video.gamestar/gamestar.py
b/plugin.video.gamestar/gamestar.py
index b9d9f76..11d8188 100644
--- a/plugin.video.gamestar/gamestar.py
+++ b/plugin.video.gamestar/gamestar.py
@@ -26,15 +26,15 @@ class GamestarWeb(object):
##setup regular expressions
self.imageRegex = "<img src=\".*\" width=\"\\d*\" height=\"\\d*\"
alt=\".*\" title=\".*\" />"
- self.linkRegex = "/index.cfm\\?pid=\\d*?(&|&)pk=\\d*?"
+ self.linkRegex = "/videos/.*?,\\d*?\\.html"
self.simpleLinkRegex = "<a href=\""+self.linkRegex+"\" .+?>.+?</a>";
self.hrefRegex = "<a.*? href=\""+self.linkRegex+"\">"
- self.headerRegex ="<strong>.+</strong>\\s*.*\\s*</a>"
+ self.headerRegex = "<strong>.+</strong>\\s*.*\\s*</a>"
self.titleRegex = "<a.*?>(.*?)</a>"
self._regEx_extractVideoThumbnail = re.compile("<div
class=\"videoPreview\">\\s*"+self.hrefRegex+"\\s*"+self.imageRegex+"\\s*</a>\\s*<span>\\s*"+self.hrefRegex+"\\s*"+self.headerRegex);
self._regEx_extractTargetLink = re.compile(self.linkRegex);
- self._regEx_extractVideoID = re.compile("pk=\\d*");
+ self._regEx_extractVideoID = re.compile("\\d*.html");
self._regEx_extractVideoLink = re.compile("http.*(mp4|flv)");
self._regEx_extractPictureLink = re.compile("http://.*.jpg");
self._regEx_extractHeader = re.compile(self.headerRegex);
@@ -74,7 +74,7 @@ class GamestarWeb(object):
rootDocument = self.loadPage(categorie.url);
for videoThumbnail in
self._regEx_extractVideoThumbnail.finditer(rootDocument):
videoThumbnail = videoThumbnail.group()
- videoID =
self._regEx_extractVideoID.search(videoThumbnail).group().replace("pk=","");
+ videoID =
self._regEx_extractVideoID.search(videoThumbnail).group().replace(".html","");
header = self._regEx_extractHeader.search(videoThumbnail).group();
header = re.sub("(<strong>)|(</strong>)|(</a>)", "", header);
-----------------------------------------------------------------------
Summary of changes:
plugin.video.gamestar/addon.xml | 2 +-
plugin.video.gamestar/changelog.txt | 1 +
plugin.video.gamestar/gamestar.py | 8 ++++----
3 files changed, 6 insertions(+), 5 deletions(-)
hooks/post-receive
--
Plugins
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons