Skip to content

Commit

Permalink
Merge pull request mvdctop#871 from WarpTraveller/master
Browse files Browse the repository at this point in the history
Update carib.py to download trailer
  • Loading branch information
mvdctop authored Sep 8, 2022
2 parents a650e54 + 2a62b59 commit 5296a62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scrapinglib/carib.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def getExtrafanart(self, htmltree):
r.append('https://www.caribbeancom.com' + jpg)
return r

def getTrailer(self, htmltree):
return f'https://smovie.caribbeancom.com/sample/movies/{self.number}/1080p.mp4'

def getActorPhoto(self, htmltree):
htmla = htmltree.xpath("//*[@id='moviepages']/div[@class='container']/div[@class='inner-container']/div[@class='movie-info section']/ul/li[@class='movie-spec']/span[@class='spec-content']/a[@itemprop='actor']")
names = htmltree.xpath("//*[@id='moviepages']/div[@class='container']/div[@class='inner-container']/div[@class='movie-info section']/ul/li[@class='movie-spec']/span[@class='spec-content']/a[@itemprop='actor']/span[@itemprop='name']/text()")
Expand Down

0 comments on commit 5296a62

Please sign in to comment.