raptor2101 / Mediathek

GNU General Public License v3.0
45 stars 16 forks source link

NDR page navigation doesn't work (multipage) #42

Closed uweschmeling closed 9 years ago

uweschmeling commented 9 years ago

Hi again,

the following replacement for page navigation solves the problem described above:

Pagination (weiter/zurück)

regex_extractNextPage = re.compile("<a title=\"(.*?)\" href=\"(.*?)\" class=\"button iconbutton square\">")
itemCount = 0
for nextPageHref in regex_extractNextPage.finditer(htmlPage):
    menuItemName = nextPageHref.group(1).decode('UTF-8')
    link = self.rootLink+nextPageHref.group(2)
    itemCount = itemCount + 1
    self.gui.buildVideoLink(DisplayObject(menuItemName,"","","description",link,False),self,nodeCount+itemCount);

regards Uwe

raptor2101 commented 9 years ago

will release a patch at the weekend