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

[APP SUBMITTED]: AttributeError: 'NoneType' object has no attribute 'get_text' #4993

Closed
duramato opened this issue Aug 28, 2018 · 12 comments
Closed

Comments

@duramato
Copy link
Contributor

INFO

Python Version: 2.7.9 (default, Sep 17 2016, 20:26:04) [GCC 4.9.2]
Operating System: Linux-4.9.35-v7+-armv7l-with-debian-8.0
Locale: UTF-8
Branch: bugfix/imdb-none
Database: 44.12
Commit: 4e21883
Link to Log: https://gist.github.com/15695a17210f4eefab418e5f82e0d89b

ERROR

2018-08-28 23:16:00 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [4e21883] Failed parsing provider.
Traceback (most recent call last):
  File "/home/pi/Medusa/medusa/providers/torrent/html/speedcd.py", line 132, in parse
    title = cells[1].find('a', class_='torrent').get_text()
AttributeError: 'NoneType' object has no attribute 'get_text'

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@triage-new-issues triage-new-issues bot added the triage Untriaged issue label Aug 28, 2018
@sharkykh sharkykh added Bug Provider and removed triage Untriaged issue labels Aug 28, 2018
@medariox
Copy link
Contributor

Temporary issue or did they change the HTML?

@duramato
Copy link
Contributor Author

duramato commented Sep 1, 2018

Seems like the HTML has changed, been getting this always now.

@fernandog
Copy link
Contributor

INFO

Python Version: 2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516]
Operating System: Linux-4.14.34-5-osmc-armv7l-with-debian-9.5
Locale: UTF-8
Branch: optimized
Database: 44.9
Commit: 8c41571
Link to Log: https://gist.github.com/7b3d36d17128abd6b84c553e7c05f1cd

ERROR

2018-09-06 09:55:55 ERROR    SEARCHQUEUE-MANUAL-290853 :: [Speedcd] :: [8c41571] Failed parsing provider.
Traceback (most recent call last):
  File "/home/osmc/Medusa/medusa/providers/torrent/html/speedcd.py", line 132, in parse
    title = cells[1].find('a', class_='torrent').get_text()
AttributeError: 'NoneType' object has no attribute 'get_text'

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@p0psicles
Copy link
Contributor

Seems something changed in the second field of the row. It expects to find an anchor. Can you post a piece of html for these rows?

@medariox
Copy link
Contributor

medariox commented Sep 6, 2018

I can have a look if someone gives me temporary access.

@fernandog
Copy link
Contributor

fernandog commented Sep 6, 2018

Edit

@medariox
Copy link
Contributor

medariox commented Sep 6, 2018

Try changing

title = cells[1].find('a', class_='torrent').get_text()

title = cells[1].find('a', class_='torrent').get_text()

to

title = cells[1].find('a', class_='lft').get_text()

That should be all that's needed.

@medariox
Copy link
Contributor

medariox commented Sep 7, 2018

Can anyone confirm if it worked?

@fernandog
Copy link
Contributor

Can only on Monday

@duramato
Copy link
Contributor Author

duramato commented Sep 9, 2018

Doesn't fix it @medariox

2018-09-09 14:07:00 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] Updating providers cache
2018-09-09 14:07:00 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] GET URL: https://speed.cd/login.php [Status: 200]
2018-09-09 14:07:00 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] User-Agent: Medusa/0.2.9 (Linux; 4.9.35-v7+; f0cbe848-b42d-11e8-b491-b827eb6b4d4c)
2018-09-09 14:07:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] POST URL: https://speed.cd/takelogin.php [Status: 302]
2018-09-09 14:07:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] User-Agent: Medusa/0.2.9 (Linux; 4.9.35-v7+; f0cbe848-b42d-11e8-b491-b827eb6b4d4c)
2018-09-09 14:07:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] With post data: username=**********&password=**********
2018-09-09 14:07:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] GET URL: https://speed.cd/ [Status: 200]
2018-09-09 14:07:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] User-Agent: Medusa/0.2.9 (Linux; 4.9.35-v7+; f0cbe848-b42d-11e8-b491-b827eb6b4d4c)
2018-09-09 14:07:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] Search mode: RSS
2018-09-09 14:07:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] GET URL: https://speed.cd/browse.php?c55=1&c52=1&search=&c41=1&c50=1&c2=1&c30=1&c49=1 [Status: 200]
2018-09-09 14:07:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] User-Agent: Medusa/0.2.9 (Linux; 4.9.35-v7+; f0cbe848-b42d-11e8-b491-b827eb6b4d4c)
2018-09-09 14:07:05 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] Failed parsing provider.
Traceback (most recent call last):
  File "/home/pi/Medusa/medusa/providers/torrent/html/speedcd.py", line 132, in parse
    title = cells[1].find('a', class_='lft').get_text()
AttributeError: 'NoneType' object has no attribute 'get_text'
2018-09-09 14:07:05 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] Failed parsing provider.
Traceback (most recent call last):
  File "/home/pi/Medusa/medusa/providers/torrent/html/speedcd.py", line 132, in parse
    title = cells[1].find('a', class_='lft').get_text()
AttributeError: 'NoneType' object has no attribute 'get_text'
2018-09-09 14:07:05 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Speedcd] :: [1435fcb] Failed parsing provider.
Traceback (most recent call last):
  File "/home/pi/Medusa/medusa/providers/torrent/html/speedcd.py", line 132, in parse
    title = cells[1].find('a', class_='lft').get_text()
AttributeError: 'NoneType' object has no attribute 'get_text'

@medariox
Copy link
Contributor

medariox commented Sep 9, 2018

In that case, I'll need access from any of you. You can PM me on Slack.

@medariox
Copy link
Contributor

Fixed with #5190

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

No branches or pull requests

5 participants