Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Ruutu.fi plugin fails in selAvailability[0].string.strip() if len(selAvailability) > 0 else '0' AttributeError: 'NoneType' object has no attribute 'strip' #74

Open
ghost opened this issue Jan 18, 2015 · 9 comments

Comments

@ghost
Copy link

ghost commented Jan 18, 2015

On Ubuntu 14.04.1 LTS & Kodi, ruutu.fi plugin fails with error message you can find here: http://paste.ubuntu.com/9779261/

szymex added a commit that referenced this issue Jan 19, 2015
@szymex
Copy link
Owner

szymex commented Jan 19, 2015

I committed a potential fix. Can you try it? Just replace ruutu.py in your installation.

@ghost
Copy link
Author

ghost commented Jan 19, 2015

Hi,
unfortunately fix didn't work. Here are the logs when I used the update: http://paste.ubuntu.com/9788385/

@ghost
Copy link
Author

ghost commented Jan 19, 2015

By the way plugin worked on Ubuntu 12.04 but when I upgraded to 14.04 this error started.

I spent some time back then looking into this, but didn't figure it out. I wrote about this on Kodi forum back then, there's what I found when investigating this. To me it seems like the html content that the plugin parses differs from the one I get with a browser. I printed out in the log the HTML and there all content was missing

What plugin gets (no text in a-tag): http://paste.ubuntu.com/9788619/

And what browser gets (title in a-tag): http://paste.ubuntu.com/9788622/

The content (title) seems not to be available for the plugin. I don't know what happens there, but when the plugin tries to parse the title it fails. Don't know if this is an environmental issue on my machine or what. Yle Areena and Katsomo plugins work fine.

@szymex
Copy link
Owner

szymex commented Jan 19, 2015

Are you sure you have tested correct file, in you logs it tells:

available = selAvailability[0].string.strip() if len(selAvailability) > 0 else '0'

but in a newest file in github that line was changed. You need to manually update ruutu.py from github.

@ghost
Copy link
Author

ghost commented Jan 20, 2015

Sorry, I think I uploaded an old log file again or something went wrong as when I redid this for some reason kodi.log wan't generated.

Anyway, after a restart I got the log file and still the plugin fails. Here's the new log file: http://paste.ubuntu.com/9798425/

szymex added a commit that referenced this issue Jan 21, 2015
@szymex
Copy link
Owner

szymex commented Jan 21, 2015

Try again with updated ruutu.py.

@ghost
Copy link
Author

ghost commented Jan 23, 2015

Thanks, some improvement in this version!

The good thing is that in this version the menu option ">> Programs" work. I could watch videos under the programs.

Unfortunately Menu options "Latest", "Most Viewed", " News", etc, all fail.

Log available here: http://paste.ubuntu.com/9839122/

  • First in the log two failure cases (Latest and Most Viewed, if I recall correctly)
  • Later two successful ones. First a program that didn't have any videos and then one that had and the video started.

szymex added a commit that referenced this issue Jan 24, 2015
@szymex
Copy link
Owner

szymex commented Jan 24, 2015

Lets keep trying, try now.

@ghost
Copy link
Author

ghost commented Jan 25, 2015

Thanks. Some improvement.
Here are the logs: http://paste.ubuntu.com/9865344/

Working:

  • Programs - Menu selection
  • Most Viewed - Menu selection

Not working:

  • Latest
  • News
  • Sports
  • Children
  • Food

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

No branches or pull requests

1 participant