Hi, I found this issue earlier today and created a trac entry for it
at http://trac.xbmc.org/ticket/11035; I've been advised to forward it
here:
If you use the CCC TV plugin for the latest 27C3 conference, you only
see a few of the videos. This is because the index page is split into
multiple sub-pages (see http://media.ccc.de/browse/congress/2010/ and
the "1", "2" etc links).
Attached patch scans for the index.html links and downloads them prior
to video thumbnail extraction.
--- default.py 2010-10-14 15:23:50.000000000 +0100
+++ ../default.py 2011-01-06 17:52:09.700000428 +0000
@@ -16,6 +16,18 @@
def show_sites(site):
content = getUrl(urllib.unquote(SITE + "/browse/" + site))
+
+ indexpages = re.compile('<a href="(index[0-9_]*\.html)"> [0-9]+ </a>', re.DOTALL).findall(content)
+ if len(indexpages) > 1:
+ content = ''
+ seen = {}
+ for ip in indexpages:
+ if ip in seen:
+ continue
+
+ content += getUrl(urllib.unquote(SITE + "/browse/" + site + "/" + ip))
+ seen[ip] = True
+
match = re.compile('<div class="thumbnail">(.+?)<div class="icons">',re.DOTALL).findall(content)
for m in match:
cat = re.compile('<img src="(.+?)".+?title="(.+?)".+?href="(.+?)"',re.DOTALL).findall(m)
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons