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
Unexpected crash in plugin discover: NoneType object has no attribute 'text' #1643
Comments
Iptorrents change probably:
|
How can I help figure out what changed? |
I'm having this same issue with my iptorrents search. Is there a fix yet? |
I am also having a similar problem with the iptorrents plugin, which I've had to disable temporarily. Not sure if they are related?
|
The only chance of a fix is if someone creates a PR. None on the 'team' have access to IPT. @frankyw that issue is unrelated. |
I think I understand how the parser works. From what I can see, the parser is looking for |
Yes, they have removed the class t_title from the href, so it is a little more difficult to reference. Trying to fix it now. |
I found the fix Change iptorrents.py where its referring to class="t_title" to "b" |
And if you are using Python 3.5, you also need to change line 140 to fix the other error I posted:
|
where would i find my local iptorrents.py file? |
That would depend on your OS as well as how you installed flexget. Try searching for iptorrents.py on the computer. |
This could be simplified to: 'uid' is a required config element, (so no need for the 'get',) and is already text, (so no need for the 'str()'.) Requests also provides the '.text' attribute, which is the content decoded to text already. If someone who is capable of testing wants to make a PR with the fixes you guys found it would be appreciated. |
I've never submitted a PR before, but I'll try to submit one sometime this weekend. |
It's optionally text. I think this should work: |
Ahh, it can be an int as well. In that case it should be
|
Weird, where's that TypeError @frankyw mentioned coming from, then? I'm not using Python 3 so I can't test. |
That was because the begining bit is text, ( |
Got it. I'll have a PR ready in a few minutes. |
@gazpachoking thank you for your more elegant solution, I am not a python coder and hence relied on Google+trial and error :) @ianstalk thanks for doing this PR, much appreciated. I can confirm @gazpachoking's fix works fine on Python 3.5 |
Thanks @ianstalk for doing the PR. Very much appreciated. |
Expected behaviour:
List of new episodes are sent to remote deluge daemon
Actual behaviour:
Unexpected crash has occurred.
BUG: Unhandled error in plugin discover: 'NoneType' object has no attribute 'text'
Steps to reproduce:
I can reproduce it using my config, but I'm unable to figure out how to gather more detailed information (aside from setting flexget's log to debug).
This issue didn't start occurring until I updated flexget to the latest version. Since then, I've tried the latest version as well as the development version. I've even tried different versions of Python. At the time of this writing, I'm using:
flexget 2.9.7.dev
python 2.7.9
I'm pretty new at flexget, but I think the issue with related with this search string:
https://iptorrents.com/t?4=&5=&22=&q=Teen+Wolf+S06E08&qf=
Config:
http://pastebin.com/6sLVmUSe
Log:
http://pastebin.com/AY1pqZuP
Additional information:
The text was updated successfully, but these errors were encountered: