Commits

Anonymous committed e3ea952

- Fix BUg #1 "searching and browsing the collection items impossible"

Comments (0)

Files changed (2)

         if not html:
             return []
 
-        return self.scraper.scrapAllShows(html)
+        return self.scraper.scrapAllShows(html, page == 1)
     
     
     def getGetShowSeasons(self, href):
         return shows
     
     
-    def scrapAllShows(self, httpmsg):
+    def scrapAllShows(self, httpmsg, skipfav = False):
         shows = []
         soup = BeautifulSoup(''.join(httpmsg))
+		
+        idx = 0
+        if skipfav:
+            idx = 1
 
-        s = soup.findAll('h2')[1]
+        s = soup.findAll('h2')[idx]
         while getattr(s, 'name', None) != 'ul':
             s = s.next