Exemple #1
0
 def allVideoSelection(self):
     soup = ScrapeUtil().findAllVideoLinksOnPage(
         {'p': self.videoPageNum[0]})
     videoLinkList = soup.find_all('a', class_='videolink')
     DirUtil().generateVideoLinks(videoLinkList,
                                  {PAGE_NUM_PARAM: self.nextPageNum},
                                  self.typeParam)
Exemple #2
0
 def searchVideoSelection(self):
     dialog = xbmcgui.Dialog()
     keywordInput = dialog.input(
         'Keyword', type=xbmcgui.INPUT_ALPHANUM
     ) if self.keywordParam is None else self.keywordParam[0]
     soup = ScrapeUtil().findAllVideoLinksOnPage({
         'p': self.videoPageNum[0],
         KEYWORD_PARAM: keywordInput
     })
     videoLinkList = soup.find_all('a', class_='videolink')
     DirUtil().generateVideoLinks(videoLinkList, {
         KEYWORD_PARAM: keywordInput,
         PAGE_NUM_PARAM: self.nextPageNum
     }, self.typeParam)
 def searchVideoSelection(self):
     dialog = xbmcgui.Dialog()
     keywordInput = dialog.input('Keyword', type=xbmcgui.INPUT_ALPHANUM) if self.keywordParam is None else self.keywordParam[0]
     soup = ScrapeUtil().findAllVideoLinksOnPage({'p':self.videoPageNum[0], KEYWORD_PARAM:keywordInput})
     videoLinkList = soup.find_all('a',class_='videolink')
     DirUtil().generateVideoLinks(videoLinkList, {KEYWORD_PARAM:keywordInput, PAGE_NUM_PARAM:self.nextPageNum}, self.typeParam)
 def allVideoSelection(self):
     soup = ScrapeUtil().findAllVideoLinksOnPage({'p':self.videoPageNum[0]})
     videoLinkList = soup.find_all('a',class_='videolink')
     DirUtil().generateVideoLinks(videoLinkList, {PAGE_NUM_PARAM:self.nextPageNum}, self.typeParam)