Ufoptg commited on
Commit
1d98fb5
1 Parent(s): 4c544dd

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -391,7 +391,7 @@ async def get_movie_info(name: str, api_key: str = Header(...)):
391
  try:
392
  for page in range(1, 2):
393
  url = f"https://yts.mx/browse-movies/{name}/all/all/0/seeds/0/all"
394
- r = await async_searcher(url, head=True)
395
  soup = BeautifulSoup(r, "lxml")
396
  for movie in soup.findAll("div", class_="browse-movie-wrap col-xs-10 col-sm-4 col-md-5 col-lg-4"):
397
  mov_name = movie.find("div", class_="browse-movie-bottom")
 
391
  try:
392
  for page in range(1, 2):
393
  url = f"https://yts.mx/browse-movies/{name}/all/all/0/seeds/0/all"
394
+ r = await async_searcher(url)
395
  soup = BeautifulSoup(r, "lxml")
396
  for movie in soup.findAll("div", class_="browse-movie-wrap col-xs-10 col-sm-4 col-md-5 col-lg-4"):
397
  mov_name = movie.find("div", class_="browse-movie-bottom")