Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError #141

Closed
BachoSeven opened this issue Nov 20, 2020 · 3 comments
Closed

AttributeError #141

BachoSeven opened this issue Nov 20, 2020 · 3 comments

Comments

@BachoSeven
Copy link
Contributor

BachoSeven commented Nov 20, 2020

Describe the bug

Cannot search via the default engines:

> katcr search ubuntu

Starting search on Katcr, ThePirateBay, Eztv, NyaaSi, Skytorrents

  AttributeError

  'NoneType' object has no attribute 'text'

  at .local/lib/python3.8/site-packages/torrentmirror/__init__.py:46 in get_proxies
      42│             status = row.find(class_='proxy-statues')
      43│             percentage = row.find(class_='proxy-like').find(class_='counts')
      44│             proxies[link.find('span').text].append(
      45│                 dict(link=name_.find('a').attrs['href'],
    → 46│                      percentage=int(percentage.text.replace('%', '')),
      47│                      status=status.text.strip()))
      48│
      49│     proxies = dict(proxies)
      50│     pickle.dump(proxies, CACHE_FILE.open('wb'))
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f0be12ae2b0>

Desktop (please complete the following information):

  • OS: Arch Linux

Version

  • katcr 3.0.1 (latest PyPi, installed through pip so I think it's pretty much git master)
@XayOn XayOn closed this as completed in 321b15f Nov 20, 2020
@XayOn
Copy link
Owner

XayOn commented Nov 20, 2020

For some reason, torrentmirror seems to have stopped working.
I've updated a change that allows katcr to work if torrentmirror fails, that is specially useful if you use Jackett engine.

@XayOn
Copy link
Owner

XayOn commented Nov 20, 2020

Most important providers seem to be working fine without proxies right now.

@XayOn
Copy link
Owner

XayOn commented Nov 20, 2020

@BachoSeven I've uploaded a new release with this change and another minor one.
Relying on scrapping always causes troubles, this release allows katcr to work without available proxies, thus allowing a complete jackett instalation without any scrapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants