nateshmbhat / pyYify

This is a python library used to get the Top seeded torrents at any given time and get the entire movie details and ratings . Its also useful to search for any movie using different parameters and obtain their magnet link or torrent file of any preferred quality.
MIT License
58 stars 19 forks source link

Can't get any information #4

Closed spigelli closed 5 years ago

spigelli commented 5 years ago

This methods are all there, just can't read any info...


import urllib

import urllib3
import bs4
import requests
import re
from pyYify import yify

movies_list = yify.search_movies("superman")

movies_list
[<class 'pyYify.yify.movie'>, <class 'pyYify.yify.movie'>, <class 'pyYify.yify.movie'>, <class 'pyYify.yify.movie'>, <class 'pyYify.yify.movie'>, <class 'pyYify.yify.movie'>, <class 'pyYify.yify.movie'>]

movies_list[0].name
AttributeError: type object 'movie' has no attribute 'name'

movies_list[0].getinfo()
TypeError: getinfo() missing 1 required positional argument: 'self'

movies_list[0].getinfo(name)
NameError: name 'name' is not defined

movies_list[0].getinfo(id)
  File "C:\Users\\Downloads\pyYify-master\pyYify-master\pyYify\yify.py", line 102, in getinfo
    self.name = re.search("^[^\(]+" ,self.name).group(0).strip() ;
AttributeError: 'builtin_function_or_method' object has no attribute 'name'

I used this installation: https://github.com/nateshmbhat/pyYify/issues/2

nateshmbhat commented 5 years ago

Fixed in 1.9.2