def getFullIconUrl(self, url, refreshCookieHeader=True):
     url = CBaseHostClass.getFullIconUrl(self, url)
     if url == '':
         return ''
     if refreshCookieHeader:
         self.refreshCookieHeader()
     return strwithmeta(url, {'Cookie': self.cookieHeader, 'User-Agent': self.USER_AGENT})
Exemple #2
0
 def getFullIconUrl(self, url):
     url = CBaseHostClass.getFullIconUrl(self, url.strip())
     if url == '': return url
     proxy = self.getProxy()
     if proxy != None: url = strwithmeta(url, {'iptv_http_proxy':proxy})
     cookieHeader = self.cm.getCookieHeader(self.COOKIE_FILE, ['PHPSESSID', 'cf_clearance', '__cfduid'])
     url = strwithmeta(url, {'Cookie':cookieHeader, 'User-Agent':self.HTTP_HEADER['User-Agent']})
     return url
 def getFullIconUrl(self, url):
     url = CBaseHostClass.getFullIconUrl(self, url.strip())
     if url == '': return ''
     cookieHeader = self.cm.getCookieHeader(self.COOKIE_FILE, ['PHPSESSID'])
     return strwithmeta(url, {
         'Cookie': cookieHeader,
         'User-Agent': self.USER_AGENT
     })
Exemple #4
0
 def getFullIconUrl(self, url, currUrl=None):
     url = CBaseHostClass.getFullIconUrl(self, url.strip(), currUrl)
     if url == '': return ''
     cookieHeader = self.cm.getCookieHeader(self.COOKIE_FILE,
                                            ['PHPSESSID', 'cf_clearance'])
     return strwithmeta(url, {
         'Cookie': cookieHeader,
         'User-Agent': self.HTTP_HEADER['User-Agent']
     })
Exemple #5
0
 def getFullIconUrl(self, url):
     url = CBaseHostClass.getFullIconUrl(self, url.strip())
     if url == '': return ''
     cookieHeader = self.cm.getCookieHeader(self.COOKIE_FILE)
     return strwithmeta(
         url, {
             'Cookie': cookieHeader,
             'User-Agent': self.USER_AGENT,
             'Referer': self.getMainUrl()
         })
 def getFullIconUrl(self, url, cUrl=None):
     url = CBaseHostClass.getFullIconUrl(self, url.strip(), cUrl)
     if url == '':
         return ''
     cookieHeader = self.cm.getCookieHeader(self.COOKIE_FILE,
                                            domain=self.cm.getBaseUrl(
                                                url, domainOnly=True))
     return strwithmeta(url, {
         'Cookie': cookieHeader,
         'User-Agent': self.USER_AGENT
     })
Exemple #7
0
 def getFullIconUrl(self, icon):
     icon = CBaseHostClass.getFullIconUrl(self, icon)
     return icon.replace('&', '&')
 def getFullIconUrl(self, icon, baseUrl=None):
     return CBaseHostClass.getFullIconUrl(self,
                                          icon.replace('.webp',
                                                       '.jpg'), baseUrl)
Exemple #9
0
 def getFullIconUrl(self, url):
     return CBaseHostClass.getFullIconUrl(self, url)
Exemple #10
0
 def getFullIconUrl(self, url, baseUrl=None):
     if url.startswith('/'):
         return 'https://image.tmdb.org/t/p/w185' + url
     return CBaseHostClass.getFullIconUrl(self, url, baseUrl)
Exemple #11
0
 def getFullIconUrl(self, icon, baseUrl=None):
     return CBaseHostClass.getFullIconUrl(
         self,
         icon.replace('.webp', '.jpg').replace('/pictures/posters/t',
                                               '/posters/'), baseUrl)
 def getFullIconUrl(self, url):
     url = url.replace('&', '&')
     return CBaseHostClass.getFullIconUrl(self, url)
Exemple #13
0
 def getFullIconUrl(self, url, baseUrl=None):
     return CBaseHostClass.getFullIconUrl(self, url, baseUrl)
Exemple #14
0
 def getFullIconUrl(self, url):
     if url == '': return url
     url = url.replace('&', '&')
     url = CBaseHostClass.getFullIconUrl(self, url)
     return strwithmeta(url, {'Referer':self.getMainUrl()})
 def getFullIconUrl(self, url, baseUrl=None):
     return CBaseHostClass.getFullIconUrl(self, url.replace('&', '&'),
                                          baseUrl)
 def getFullIconUrl(self, icon, baseUrl=None):
     return CBaseHostClass.getFullIconUrl(self, icon, baseUrl).replace(
         '/$recipe/', '/480x270_b/')
 def getFullIconUrl(self, url):
     url =  CBaseHostClass.getFullIconUrl(self, url)
     if url != '' and self.up.getDomain(url) in self.getMainUrl():
         url = 'https://i2.wp.com/' + url.split('://', 1)[-1]
     return url
Exemple #18
0
 def getFullIconUrl(self, url, baseUrl=None):
     url = CBaseHostClass.getFullIconUrl(self, url, baseUrl)
     if url != '': url = strwithmeta(url, {'Referer': self.getMainUrl()})
     return url