The branch, frodo has been updated
via 29f665419cc5a3c37a273fa2e02bbbe0c510cc8e (commit)
from fc900ccef47dff265e24036c2581a13c1c0bba25 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=29f665419cc5a3c37a273fa2e02bbbe0c510cc8e
commit 29f665419cc5a3c37a273fa2e02bbbe0c510cc8e
Author: Martijn Kaijser <[email protected]>
Date: Sun Sep 7 14:39:55 2014 +0200
[script.tvtunes] 4.4.8
diff --git a/script.tvtunes/addon.xml b/script.tvtunes/addon.xml
index acc5e2d..cdfdd83 100644
--- a/script.tvtunes/addon.xml
+++ b/script.tvtunes/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="script.tvtunes" name="TvTunes" version="4.4.7"
provider-name="robwebset">
+<addon id="script.tvtunes" name="TvTunes" version="4.4.8"
provider-name="robwebset">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.simplejson" version="2.0.10"/>
diff --git a/script.tvtunes/changelog.txt b/script.tvtunes/changelog.txt
index 4cfa8d5..bf46fb6 100644
--- a/script.tvtunes/changelog.txt
+++ b/script.tvtunes/changelog.txt
@@ -1,3 +1,6 @@
+v4.4.8
+- Fix Goear.com downloads after website change
+
v4.4.7
- update language files from Transifex
diff --git a/script.tvtunes/resources/lib/themeFetcher.py
b/script.tvtunes/resources/lib/themeFetcher.py
index 0e677e3..d0150a2 100644
--- a/script.tvtunes/resources/lib/themeFetcher.py
+++ b/script.tvtunes/resources/lib/themeFetcher.py
@@ -1028,31 +1028,11 @@ class GoearListing(DefaultListing):
# Load the output of the search request into Soup
return BeautifulSoup(''.join(doc))
- # Results could be over multiple pages
- def _getSearchPages(self, soup):
- # Now check to see if there were any other pages
- searchPages = soup.find('ol', {"id": "new_pagination"})
-
- urlList = []
- for page in searchPages.contents:
- # Skip the blank lines, just want the <li> elements
- if page == '\n':
- continue
-
- # Get the URL for the track
- pageUrlTag = page.find('a')
- if pageUrlTag is None:
- continue
- pageUrl = pageUrlTag['href']
- # Add to the list of URLs
- urlList.append(pageUrl)
-
- return urlList
-
# Reads the track entries from the page
def _getEntries(self, soup):
+ log("GoearListing: Getting Entries")
# Get all the items in the search results
- searchResults = soup.find('ol', {"id": "search_results"})
+ searchResults = soup.find('ol', {"class": "board_list results_list"})
themeList = []
# Make sure the list is set to something
@@ -1070,7 +1050,10 @@ class GoearListing(DefaultListing):
continue
# Get the name of the track
- trackNameTag = item.find('span', {"class": "song"})
+ trackNameTag = item.find('h4')
+ if trackNameTag is None:
+ continue
+ trackNameTag = trackNameTag.find('a')
if trackNameTag is None:
continue
trackName = trackNameTag.string
@@ -1083,27 +1066,19 @@ class GoearListing(DefaultListing):
groupName = None
# Get the URL for the track
- trackUrlTag = item.find('a')
- if trackUrlTag is None:
- continue
-
- # Make sure there is a valid link
- if 'href' not in trackUrlTag:
- continue
-
- trackUrl = trackUrlTag['href']
+ trackUrl = trackNameTag['href']
# Get the length of the track
# e.g. <li class="length radius_3">3:36</li>
trackLength = ""
- trackLengthTag = item.find('li', {"class": "length radius_3"})
+ trackLengthTag = item.find('li', {"class": "length"})
if trackLengthTag is not None:
trackLength = " [" + trackLengthTag.string + "]"
# Get the quality of the track
# e.g. <li class="kbps radius_3">128<abbr title="Kilobit por
segundo">kbps</abbr></li>
trackQuality = ""
- trackQualityTag = item.find('li', {"class": "kbps radius_3"})
+ trackQualityTag = item.find('li', {"class": "kbps"})
if trackQualityTag is not None:
trackQuality = " (" + trackQualityTag.contents[0] + "kbps)"
-----------------------------------------------------------------------
Summary of changes:
script.tvtunes/addon.xml | 2 +-
script.tvtunes/changelog.txt | 3 ++
script.tvtunes/resources/lib/themeFetcher.py | 43 +++++--------------------
3 files changed, 13 insertions(+), 35 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons