Ufoptg commited on
Commit
2006137
·
verified ·
1 Parent(s): 040e8b7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -6
main.py CHANGED
@@ -390,10 +390,6 @@ def get_movie_info(name: str, api_key: str = Header(...)):
390
  for torrent in torrent_info.findAll("a"):
391
  if "magnet" in torrent["href"]:
392
  magnet_links.append(torrent["href"])
393
- elif torrent.text[:3] == "720":
394
- torrent_720 = torrent["href"]
395
- elif torrent.text[:4] == "1080":
396
- torrent_1080 = torrent["href"]
397
  entry = {
398
  "yts_link": movie_url,
399
  "name": movie_name,
@@ -402,8 +398,6 @@ def get_movie_info(name: str, api_key: str = Header(...)):
402
  "genre": genre,
403
  "imdb_ratings": rating,
404
  "likes": likes,
405
- "torrent_720p": torrent_720,
406
- "torrent_1080p": torrent_1080,
407
  "magnet_links": magnet_links
408
  }
409
  results.append(entry)
 
390
  for torrent in torrent_info.findAll("a"):
391
  if "magnet" in torrent["href"]:
392
  magnet_links.append(torrent["href"])
 
 
 
 
393
  entry = {
394
  "yts_link": movie_url,
395
  "name": movie_name,
 
398
  "genre": genre,
399
  "imdb_ratings": rating,
400
  "likes": likes,
 
 
401
  "magnet_links": magnet_links
402
  }
403
  results.append(entry)