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

Headphone search fails on missing link element in torznab results #3347

Open
Stitch10925 opened this issue Nov 15, 2024 · 2 comments
Open

Headphone search fails on missing link element in torznab results #3347

Stitch10925 opened this issue Nov 15, 2024 · 2 comments

Comments

@Stitch10925
Copy link

Stitch10925 commented Nov 15, 2024

I am currently running Bitmagnet as private tracker, which supports torznab.

However, when I click "Choose specific download" on an album, I get an error.

15-Nov-2024 21:15:21 - DEBUG :: ('CP Server Thread-9',) : Requesting URL via GET method: http://192.168.13.30:3333/torznab
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'
nlo0b  15-Nov-2024 21:15:21 - ERROR :: ('CP Server Thread-9',) : An unknown error occurred trying to parse the feed: 'NoneType' object has no attribute 'next_sibling'
nlo0b  Traceback (most recent call last):
nlo0b    File "/app/headphones/headphones/searcher.py", line 1382, in searchTorrent
nlo0b      url = item.find("link").next_sibling.strip()
nlo0b  AttributeError: 'NoneType' object has no attribute 'next_sibling'

There is, however, an enclosure element which also contains the link. Maybe it is possible to fallback to the enclosure element if the link element does not exist?

Bitmagnet returns magnet links, but from what I've read headphones can handle those.

Below is a link to the torznab spec that I found, for reference:
Torznab spec

@AdeHub
Copy link
Collaborator

AdeHub commented Dec 7, 2024

Can you try the develop branch

@Stitch10925
Copy link
Author

Is there a way I can reach the docker builds of the development branch? I can't seem to find them.

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