• 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 14
Release TWiT
#76
Same here only thing that works is twit live...
Reply
#77
BTW Windows 10 10240 Kodi isengard YouTube works and the Blaze works.
Reply
#78
Things were working fine yesterday, today no shows will open.

I added a print i to the source justbefore where the error occurs to show what's causing the issut.

8:36:51 T:140422920562432 NOTICE: -->Python Interpreter Initialized<--
08:36:51 T:140422920562432 NOTICE: <div class="episode item">
<a href="/shows/tech-news-today/episodes/1317?autostart=false" title="You'll hear from a journalist who actually rode the Lexus Hoverboard.">
<!-- @TODO THIS IS THE WRONG SIZE -->
<img alt="" class="media-img" src="https://elroy.twit.tv/sites/default/files/styles/twit_slideshow_400x300/public/images/episodes/74776/hero/tnt1317a.jpg?itok=syFO_6_y">
<span class="media-bd">
<span>

Tech News Today

<br/>
Episode 1317 - <span class="date">August 5th 2015</span>
</span>
</span>
</img></a>
</div>
08:36:51 T:140422920562432 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'NoneType' object has no attribute 'strip'
Traceback (most recent call last):
File "/home/pvr/.kodi/addons/plugin.video.twit/default.py", line 385, in <module>
get_episodes(params['url'], params['iconimage'])
File "/home/pvr/.kodi/addons/plugin.video.twit/default.py", line 108, in get_episodes
title = i.span.span.string.strip().replace('\n', ' ')
AttributeError: 'NoneType' object has no attribute 'strip'
-->End of Python script error report<--

BTW, why not just use the RSS feed instead of screen scraping?
Reply
#79
Update is on the way. Seems the website HTML changed a bit.
Reply
#80
(2015-08-06, 14:51)Bytor Wrote: ...
BTW, why not just use the RSS feed instead of screen scraping?

The RSS feeds are limited to the latest 20 or so episodes.
Reply
#81
should ask if they can add some API so it doesn't break
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#82
(2015-08-06, 16:06)divingmule Wrote: Update is on the way. Seems the website HTML changed a bit.

Thanks for the quick reply! +1
Reply
#83
divingmule

Leo said the Kodi app would break when they changed their website a few weeks ago. He didn't know who created the app but said if they got in touch with TWIT they'd gladly give you the code and whatever you needed to make a proper app. It didn't break immediately so I was hoping he was wrong but apparently not.

Also, great work on the app. I work from home so I watch about eight hours of TWIT throughout the week. Thanks for making it.

Jim
Reply
#84
(2015-08-06, 16:06)divingmule Wrote: Update is on the way. Seems the website HTML changed a bit.


The update works great! Thanks divingmule!!!!!!
Reply
#85
divingmule thanks for the update Smile
Reply
#86
(2015-08-06, 16:14)Martijn Wrote: should ask if they can add some API so it doesn't break

Yeah, they have an API and I have an add-on for it but the API is call limited, five calls per minute. I don't see that working out too well.
Reply
#87
(2015-08-08, 02:47)divingmule Wrote:
(2015-08-06, 16:14)Martijn Wrote: should ask if they can add some API so it doesn't break

Yeah, they have an API and I have an add-on for it but the API is call limited, five calls per minute. I don't see that working out too well.

that's not a lot Sad
guess it should be made clear that increasing API limit is let resource intensive/costly on their side than scraping their website for videos
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#88
(2015-08-08, 02:47)divingmule Wrote:
(2015-08-06, 16:14)Martijn Wrote: should ask if they can add some API so it doesn't break

Yeah, they have an API and I have an add-on for it but the API is call limited, five calls per minute. I don't see that working out too well.

That seems very short sighted of them Sad
Reply
#89
(2015-08-10, 02:10)touser Wrote:
(2015-08-08, 02:47)divingmule Wrote:
(2015-08-06, 16:14)Martijn Wrote: should ask if they can add some API so it doesn't break

Yeah, they have an API and I have an add-on for it but the API is call limited, five calls per minute. I don't see that working out too well.

That seems very short sighted of them Sad

Leo Laporte seems like a great guy I bet if someone let him know about this he perhaps could change it so it works better with Kodi Smile
Reply
#90
A while back I had a email chat with Patrick(he handles the API stuff) and he said that Leo is the one that set the limit. He also said that they may increase it "a little" for know apps. " a little" doesn't really help much, IMO. For a popular "app" they expect the developer to provide some sort of back-end caching server where the API keys are kept private.

I'd love to take on the challenge of doing that with one of the cloud services or something but ... that cost money, AFAIK, doesn't seem feasible for a project like this.

They talk about it all in this episode > https://twit.tv/shows/coding-101/episode...tart=false
Reply
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 14

Logout Mark Read Team Forum Stats Members Help
TWiT0