rachmadaniHaryono / we-get

:icecream: Command-line tool for searching torrents.
MIT License
153 stars 26 forks source link

Error with master.zip installation on Raspbian Bullseye (Debian 11) #47

Closed viertelb closed 2 years ago

viertelb commented 2 years ago

I installed a Raspian 11 Bullseye 32bit freshly on a Raspberry Pi 2,

But running it I get:

pi@oldRPi2:~ $ we-get -s "Dave Chappelle"
# error: Module: 'rargb.py' JSONDecodeError: Expecting value: line 1 column 1 (char 0)!
Traceback (most recent call last):ero' ...
  File "/home/pi/.local/bin/we-get", line 8, in <module>
    sys.exit(main())
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/__init__.py", line 14, in main
    we_get.start()
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/core/we_get.py", line 256, in start
    sel.run()
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/core/we_get.py", line 172, in run
    items = run.main(self.pargs)
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/modules/il_corsaro_nero.py", line 95, in main
    return run.search()
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/modules/il_corsaro_nero.py", line 69, in search
    item = self.set_item(link)
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/modules/il_corsaro_nero.py", line 43, in set_item
    seeders = re.findall(r'seeds:.*\n.*?>(.*?)<', data)[0].strip()
IndexError: list index out of range

we-get version 1.1.5

pi@oldRPi2:~ $ cat /sys/firmware/devicetree/base/model
Raspberry Pi 2 Model B Rev 1.1
pi@oldRPi2:~ $ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
viertelb commented 2 years ago

Maybe related: https://github.com/rachmadaniHaryono/we-get/issues/24

BUT: I have a second Raspberry running for months with we-get version 1.1.2 and this works relatively fine.

rachmadaniHaryono commented 2 years ago

It is different issue. I guess it caused by change from the site itself.

Unfortunately i will not have my PC for weeks/months for now

Fortunately the fix is just to add index error exception here

https://github.com/rachmadaniHaryono/we-get/blob/82da686b1ad60777c44ce8b59e4c86af815a354a/we_get/core/we_get.py#L179

viertelb commented 2 years ago

Awesome, I will be more than happy to do it. Enjoy your holidays! :)

viertelb commented 2 years ago

Fixed with PR: https://github.com/rachmadaniHaryono/we-get/pull/48