Пример #1
0
    def getSeriesList(self):
        images = ReadList(images_file)
        contentType, block = common.getMatches(
            __BASE_URL__, 'padding: 10px(.*?)folder2_game')
        page = re.compile('<a href="(.*?)".*?0px;">(.*?)<').findall(block[0])
        print str(images)
        for path in page:
            summary = ''
            iconImage = ''
            url = __BASE_URL__ + path[0]
            if not url in images:
                iconImage = common.getImageNick(url)
                images[url] = iconImage
            iconImage = images[url]
            title = path[1]
            common.addDir(contentType, title, url,
                          self.MODES.GET_EPISODES_LIST, iconImage, __NAME__,
                          summary)
        WriteList(images_file, images)
        common.addDir('UTF-8', "דורה ביער המכושף",
                      __BASE_URL__ + '?w=//1887291',
                      self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
        common.addDir('UTF-8', "ספיישל דורה", __BASE_URL__ + '?w=//2630476',
                      self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)

        xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
Пример #2
0
 def getSeriesList(self):
     
     try:
         ## get all the series base url
         contentType,urls = common.getMatches(__BASE_URL__,'<a id="opc" href="(.*?)"')
         ## for each series we get the series page to parse all the info from
         for path in urls:
             contentType,page = common.getData(__BASE_URL__ + path)
             titleMatches = re.compile('class="stripe_title w7b white">\s*(.*?)\s*</h1>\s*<img src="(.*?)"').findall(page)
             if len(titleMatches) == 0:
                 # try a different possibility
                 titleMatches = re.compile('class="stripe_title w7b white">.*?>(.*?)<.*?src="(.*?)"').findall(page)
             details = re.compile('class="w3 nohvr" style="line-height:17px;">(.*?)<').findall(page)
             if (len(details)) > 0:
                 summary = details[0]
             else:
                 summary = ''
             if (len(titleMatches)) == 1:
                 title = titleMatches[0][0]
                 iconImage = common.getImage(titleMatches[0][1],__NAME__)
                 urlMatch = re.compile('class="w6b" href="(.*?)">').findall(page)
                 if (len(urlMatch)) > 0:
                     common.addDir(contentType,title, __BASE_URL__ + urlMatch[0], self.MODES.GET_EPISODES_LIST, iconImage, __NAME__, summary)
         common.addDir('UTF-8',"ספיישל דייגו בספארי לבקשת הורי הפורום", __BASE_URL__ +'?w=//2562538', self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
         common.addDir('UTF-8',"דייגו מציל את חיות הים --מיוחד לאבות מסורים", __BASE_URL__ +'?w=//2545366', self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
         common.addDir('UTF-8',"הרפתקאות דורה ודייגו", __BASE_URL__ +'?w=//2505725', self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
         
         xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
     except Exception as e:
         print "WALLA exception in getSeriesList"
         raise 
Пример #3
0
    def getSeriesList(self):
        ## get all the series base url
        contentType, urls = common.getMatches(
            __BASE_URL__, '<a id="opc".*?href="(.*?)">(.*?)<')
        ## for each series we get the series page to parse all the info from
        for path in urls:
            if path[0].startswith("http://"):
                contentType, page = common.getData(path[0])
            else:
                contentType, page = common.getData(__BASE_URL__ + path[0])
            title = path[1]
            imageMatch = re.compile(
                'class="stripe_title w7b white">(.*?)img\ssrc="(.*?)"'
            ).findall(page)
            details = re.compile('class="w3 nohvr">(.*?)<').findall(page)
            if (len(details)) > 0:
                summary = details[0]
            else:
                summary = ''
            if (len(imageMatch)) == 1:
                iconImage = common.getImage(imageMatch[0][1], __NAME__)
                urlMatch = re.compile(
                    'class="w6b fntclr2" href="(.*?)">').findall(page)
                if (len(urlMatch)) > 0:
                    common.addDir(contentType, title,
                                  __BASE_URL__ + urlMatch[0],
                                  self.MODES.GET_EPISODES_LIST, iconImage,
                                  __NAME__, summary)

        xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
Пример #4
0
    def getSeriesList(self):

        try:
            ## get all the series base url
            #block=re.compile('<div style="padding: 10px(.*?)folder2_game')
            contentType, block = common.getMatches(
                __BASE_URL__, 'padding: 10px(.*?)folder2_game')
            page = re.compile('<a href="(.*?)".*?0px;">(.*?)<').findall(
                block[0])
            #contentType,urls = common.getMatches(__BASE_URL__,'margin-left: 0px;">(.*?)</a><a href="(.*?)"')
            ## for each series we get the series page to parse all the info from
            idx = 1
            for path in page:

                print path
                #contentType,page = common.getData(__BASE_URL__ + path[0])
                #page = re.compile(__BASE_URL__ + path[0])
                #titleMatches = re.compile('class="stripe_title w7b white">\s*(.*?)\s*</h1>\s*<img src="(.*?)"').findall(page)
                #if len(titleMatches) == 0:
                # try a different possibility
                #titleMatches = re.compile('class="stripe_title w7b white">.*?>(.*?)<.*?src="(.*?)"').findall(page)
                #details = re.compile('class="w3 nohvr" style="line-height:17px;">(.*?)<').findall(page)
                #if (len(details)) > 0:
                #summary = details[0]
                #else:
                summary = ''
                title = path[1]
                '''if (len(titleMatches)) == 1:
                    title = titleMatches[0][0]'''
                iconImage = common.getImageNick(idx, 'nickjr',
                                                __BASE_URL__ + path[0])
                print iconImage
                idx = idx + 1
                '''urlMatch = re.compile('class="w6b" href="(.*?)">').findall(page)
                print urlMatch
                
                if (len(urlMatch)) > 0:'''
                common.addDir(contentType, title, __BASE_URL__ + path[0],
                              self.MODES.GET_EPISODES_LIST, iconImage,
                              __NAME__, summary)
            common.addDir('UTF-8', "ספיישל דייגו בספארי לבקשת הורי הפורום",
                          __BASE_URL__ + '?w=//2562538',
                          self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
            common.addDir('UTF-8',
                          "דייגו מציל את חיות הים --מיוחד לאבות מסורים",
                          __BASE_URL__ + '?w=//2545366',
                          self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
            common.addDir('UTF-8', "הרפתקאות דורה ודייגו",
                          __BASE_URL__ + '?w=//2505725',
                          self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)

            xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
        except Exception as e:
            print "WALLA exception in getSeriesList"
            raise
Пример #5
0
    def getSeriesList(self):

        try:
            ## get all the series base url
            contentType, urls = common.getMatches(__BASE_URL__,
                                                  '<a id="opc" href="(.*?)"')
            ## for each series we get the series page to parse all the info from
            for path in urls:
                contentType, page = common.getData(__BASE_URL__ + path)
                titleMatches = re.compile(
                    'class="stripe_title w7b white">\s*(.*?)\s*</h1>\s*<img src="(.*?)"'
                ).findall(page)
                if len(titleMatches) == 0:
                    # try a different possibility
                    titleMatches = re.compile(
                        'class="stripe_title w7b white">.*?>(.*?)<.*?src="(.*?)"'
                    ).findall(page)
                details = re.compile(
                    'class="w3 nohvr" style="line-height:17px;">(.*?)<'
                ).findall(page)
                if (len(details)) > 0:
                    summary = details[0]
                else:
                    summary = ''
                if (len(titleMatches)) == 1:
                    title = titleMatches[0][0]
                    iconImage = common.getImage(titleMatches[0][1], __NAME__)
                    urlMatch = re.compile('class="w6b" href="(.*?)">').findall(
                        page)
                    if (len(urlMatch)) > 0:
                        common.addDir(contentType, title,
                                      __BASE_URL__ + urlMatch[0],
                                      self.MODES.GET_EPISODES_LIST, iconImage,
                                      __NAME__, summary)
            common.addDir('UTF-8', "ספיישל דייגו בספארי לבקשת הורי הפורום",
                          __BASE_URL__ + '?w=//2562538',
                          self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
            common.addDir('UTF-8',
                          "דייגו מציל את חיות הים --מיוחד לאבות מסורים",
                          __BASE_URL__ + '?w=//2545366',
                          self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
            common.addDir('UTF-8', "הרפתקאות דורה ודייגו",
                          __BASE_URL__ + '?w=//2505725',
                          self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)

            xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
        except Exception as e:
            print "WALLA exception in getSeriesList"
            raise
Пример #6
0
 def getSeriesList(self):
         images=ReadList(images_file)
         contentType,block = common.getMatches(__BASE_URL__,'padding: 10px(.*?)folder2_game')
         page = re.compile('<a href="(.*?)".*?">(.*?)<').findall(block[0])
         for path in page:
             
             summary = ''
             iconImage=''
             url=__BASE_URL__ + path[0]
             if not url in images:
                    iconImage=common.getImageNick(url)
                    images[url]=iconImage
             iconImage=images[url]
             title=path[1]
             common.addDir(contentType,title, __BASE_URL__ + path[0], self.MODES.GET_EPISODES_LIST, iconImage, __NAME__, summary)               
         WriteList(images_file, images)
         xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
Пример #7
0
 def getMoreChapters(self, url, currentpage, title):
     numOfpages = len(common.getMatches(url, 'id="page_\d" href="(.+?)&page=(\d)" class="pages"'))
     if not currentpage == None and not currentpage == '':
         # we have at least to pages... if numOfPages is nothing it means that there are only two pages
         # we need to add the first page to the count
         if numOfpages == None or numOfpages == 0:
             numOfpages = 1;
         else:
             numOfpages += 1;
         currentPage = int(currentpage)
         if not (numOfpages == (currentPage - 1)):
             page = str(currentPage + 1)
             if not url.find("&page") == -1:
                 url = url.strip("&page=" + str(currentPage))
             self.addDir(common.__language__(30001), url + '&page=' + page, page)
     else :
         if not numOfpages == None and not numOfpages == 0:
             page = str(2) # second page
             self.addDir(common.__language__(30001), url + '&page=' + page, page)
Пример #8
0
 def getSeriesList(self):
     
     try:
         ## get all the series base url
         #block=re.compile('<div style="padding: 10px(.*?)folder2_game')
         contentType,block = common.getMatches(__BASE_URL__,'padding: 10px(.*?)folder2_game')
         page = re.compile('<a href="(.*?)".*?0px;">(.*?)<').findall(block[0])
         #contentType,urls = common.getMatches(__BASE_URL__,'margin-left: 0px;">(.*?)</a><a href="(.*?)"')
         ## for each series we get the series page to parse all the info from
         idx=1
         for path in page:
             
             print path
             #contentType,page = common.getData(__BASE_URL__ + path[0])
             #page = re.compile(__BASE_URL__ + path[0])
             #titleMatches = re.compile('class="stripe_title w7b white">\s*(.*?)\s*</h1>\s*<img src="(.*?)"').findall(page)
             #if len(titleMatches) == 0:
                 # try a different possibility
                 #titleMatches = re.compile('class="stripe_title w7b white">.*?>(.*?)<.*?src="(.*?)"').findall(page)
             #details = re.compile('class="w3 nohvr" style="line-height:17px;">(.*?)<').findall(page)
             #if (len(details)) > 0:
                 #summary = details[0]
             #else:
             summary = ''
             title=path[1]
             '''if (len(titleMatches)) == 1:
                 title = titleMatches[0][0]'''
             iconImage =common.getImageNick(idx,'nickjr',__BASE_URL__ + path[0])
             print iconImage
             idx=idx + 1
             '''urlMatch = re.compile('class="w6b" href="(.*?)">').findall(page)
             print urlMatch
             
             if (len(urlMatch)) > 0:'''
             common.addDir(contentType,title, __BASE_URL__ + path[0], self.MODES.GET_EPISODES_LIST, iconImage, __NAME__, summary)
         common.addDir('UTF-8',"ספיישל דייגו בספארי לבקשת הורי הפורום", __BASE_URL__ +'?w=//2562538', self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
         common.addDir('UTF-8',"דייגו מציל את חיות הים --מיוחד לאבות מסורים", __BASE_URL__ +'?w=//2545366', self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
         common.addDir('UTF-8',"הרפתקאות דורה ודייגו", __BASE_URL__ +'?w=//2505725', self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
         
         xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
     except Exception as e:
         print "WALLA exception in getSeriesList"
         raise 
Пример #9
0
    def getSeriesList(self):
        images = ReadList(images_file)
        contentType, block = common.getMatches(
            __BASE_URL__, 'padding: 10px(.*?)folder2_game')
        page = re.compile('<a href="(.*?)".*?">(.*?)<').findall(block[0])
        for path in page:

            summary = ''
            iconImage = ''
            url = __BASE_URL__ + path[0]
            if not url in images:
                iconImage = common.getImageNick(url)
                images[url] = iconImage
            iconImage = images[url]
            title = path[1]
            common.addDir(contentType, title, __BASE_URL__ + path[0],
                          self.MODES.GET_EPISODES_LIST, iconImage, __NAME__,
                          summary)
        WriteList(images_file, images)
        xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
Пример #10
0
 def getSeriesList(self):
         images=ReadList(images_file)
         contentType,block = common.getMatches(__BASE_URL__,'padding: 10px(.*?)folder2_game')
         page = re.compile('<a href="(.*?)".*?0px;">(.*?)<').findall(block[0])
         print str (images)
         for path in page:
             summary = ''
             iconImage=''
             url=__BASE_URL__ + path[0]
             if not url in images:
                    iconImage=common.getImageNick(url)
                    images[url]=iconImage
             iconImage=images[url]
             title=path[1]
             common.addDir(contentType,title,url, self.MODES.GET_EPISODES_LIST, iconImage, __NAME__, summary)
         WriteList(images_file, images)
         common.addDir('UTF-8',"דורה ביער המכושף", __BASE_URL__ +'?w=//1887291', self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
         common.addDir('UTF-8',"ספיישל דורה", __BASE_URL__ +'?w=//2630476', self.MODES.GET_EPISODES_LIST, "", __NAME__, summary)
         
         
         xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
Пример #11
0
 def getSeriesList(self):
     ## get all the series base url
     contentType,urls = common.getMatches(__BASE_URL__,'<a id="opc".*?href="(.*?)">(.*?)<')
     ## for each series we get the series page to parse all the info from
     for path in urls:
         if path[0].startswith("http://"):
             contentType,page = common.getData(path[0])
         else:
             contentType,page = common.getData(__BASE_URL__ + path[0])
         title = path[1]
         imageMatch = re.compile('class="stripe_title w7b white">(.*?)img\ssrc="(.*?)"').findall(page)
         details = re.compile('class="w3 nohvr">(.*?)<').findall(page)
         if (len(details)) > 0:
             summary = details[0]
         else:
             summary = ''
         if (len(imageMatch)) == 1:
             iconImage = common.getImage(imageMatch[0][1], __NAME__)
             urlMatch = re.compile('class="w6b fntclr2" href="(.*?)">').findall(page)
             if (len(urlMatch)) > 0:
                 common.addDir(contentType,title, __BASE_URL__ + urlMatch[0], self.MODES.GET_EPISODES_LIST, iconImage, __NAME__, summary)                    
         
     xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
Пример #12
0
 def getSeriesList(self):
     ## get all the series base url
     contentType,urls = common.getMatches(__BASE_URL__,'<a class="block w3 fldevt goldsep red bold" href="(.+?)" onclick="Evt\(this,(\d),&quot;(.+?)&quot;,3,&quot;folder_new_prakim_melaim')
     ## for each series we get the series page to parse all the info from
     for path, num, title in urls: ## num is not used and does nothing.
         if path.startswith("http://"):
             contentType,page = common.getData(path)
             url = path
         else:
             contentType,page = common.getData(__BASE_URL__ + path)
             url = __BASE_URL__ + path
         
         sumMatch = re.compile('class="w3">(.*?)<').findall(page)
         iconImage = re.compile('class="top_pic" src="(.+?)"').findall(page)
         fanart = xbmc.translatePath(os.path.join(__PLUGIN_PATH__, 'resources', 'bg', 'curtains.png'))
         if not iconImage == None and len(iconImage) > 0 and len(iconImage[0]) > 0:                
             iconImage = common.getImage(iconImage[0], __NAME__)
         else:
             iconImage = ''
         if (len(sumMatch)) == 1:
             summary = sumMatch[0]
             common.addDir(contentType,title, url, self.MODES.GET_EPISODES_LIST, iconImage, __NAME__, summary, fanart)                    
         
     xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')