ozencb / yts-scraper

Download .torrent files from YTS YIFY
MIT License
52 stars 22 forks source link

sort_by attribute error #4

Closed zool44 closed 4 years ago

zool44 commented 4 years ago

Getting the error below when using the -s year command, (windows install):

yts-scraper -q 1080p -b -o "yify_movies" -c genre -r 6 -s year

E:\utils\yts-scraper-master>yts-scraper -q 1080p -b -o "yify_movies" -c genre -r 6 -s year Traceback (most recent call last): File "C:\Users\pally_2\AppData\Local\Programs\Python\Python37\lib\site-package s\yts_scraper-0.1.1-py3.7.egg\yts_scraper\main.py", line 106, in main scraper.download() File "C:\Users\pally_2\AppData\Local\Programs\Python\Python37\lib\site-package s\yts_scraper-0.1.1-py3.7.egg\yts_scraper\scraper.py", line 271, in download self.__get_api_data() File "C:\Users\pally_2\AppData\Local\Programs\Python\Python37\lib\site-package s\yts_scraper-0.1.1-py3.7.egg\yts_scraper\scraper.py", line 56, in __get_api_dat a sort_by = self.sort_by, AttributeError: 'Scraper' object has no attribute 'sort_by'

E:\utils\yts-scraper-master>

ozencb commented 4 years ago

I pushed a fix. Seems to be working now