Exemplo n.º 1
0
 def getMovie(self, url):
     # url = "%s/phim-0-%s.html" % (self.domain, id)
     response = Request().get(
         url,
         headers={
             "Accept-Language":
             "en-US,en;q=0.9,vi-VN;q=0.8,vi;q=0.7,de-DE;q=0.6,de;q=0.5,nb;q=0.4"
         })
     url = Movie().get_movie_link(response)
     response = Request().get(
         url,
         headers={
             "Accept-Language":
             "en-US,en;q=0.9,vi-VN;q=0.8,vi;q=0.7,de-DE;q=0.6,de;q=0.5,nb;q=0.4"
         })
     return Movie().get(response)
Exemplo n.º 2
0
 def getMovie(self, url):
     # https://bilutvb.com/ajax/movie_load_info/1936
     mid = re.search(r'load_info/(\d+)', url).group(1)
     # https://bilutvb.com/ajax/get_episodes/1936
     response = self.request.get('%s/ajax/get_episodes/%s' %
                                 (self.domain, mid))
     return Movie().get(response)
Exemplo n.º 3
0
 def getLink(self, movie):
     response = Request().get(
         movie['link'],
         headers={
             "Accept-Language":
             "en-US,en;q=0.9,vi-VN;q=0.8,vi;q=0.7,de-DE;q=0.6,de;q=0.5,nb;q=0.4"
         })
     return Movie().get_link(response, self.domain)
Exemplo n.º 4
0
 def getLink(self, movie):
     # response = self.request.get(movie['link'])
     # https://bilutvb.com/ajax/get_sources/67325
     response = self.request.get('%s/ajax/get_sources/%s' %
                                 (self.domain, movie['link']))
     return Movie().get_link(response, self.request, self.domain)
Exemplo n.º 5
0
 def getLink(self, movie):
     response = Request().get(movie['link'])
     return Movie().get_link(response, self.domain)
Exemplo n.º 6
0
 def getMovie(self, url):
     # url = "%s/phim-0-%s.html" % (self.domain, id)
     response = Request().get(url)
     url = Movie().get_movie_link(response)
     response = Request().get(url)
     return Movie().get(response)