[69] imdb chart fix

This commit is contained in:
meisnate12 2023-07-14 10:34:09 -04:00
parent 9d3ae24c85
commit 662d5b19ca
3 changed files with 4 additions and 3 deletions

View file

@ -1 +1 @@
1.19.0-develop68
1.19.0-develop69

View file

@ -221,7 +221,8 @@ class IMDb:
url = "chart/bottom"
else:
raise Failed(f"IMDb Error: chart: {chart} not ")
return self._request(f"https://www.imdb.com/{url}", language=language, xpath="//div[@class='wlb_ribbon']/@data-tconst")
links = self._request(f"https://www.imdb.com/{url}", language=language, xpath="//li//a[@class='ipc-title-link-wrapper']/@href")
return [re.search("(tt\\d+)", l).group(1) for l in links]
def get_imdb_ids(self, method, data, language):
if method == "imdb_id":

View file

@ -1,5 +1,5 @@
arrapi==1.4.2
GitPython==3.1.31
GitPython==3.1.32
lxml==4.9.3
num2words==0.5.12
pathvalidate==3.0.0