Kodi Community Forum
Release Entertainment Tonight Canada - Canada only - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Release Entertainment Tonight Canada - Canada only (/showthread.php?tid=263242)

Pages: 1 2


Entertainment Tonight Canada - Canada only - learningit - 2016-03-07

New video add-on for ET Canada . This add-on is for use in Canada only.
The usual Entertainment Tonight reviews, rumours and interviews.


V3.0.1 in my git:
https://github.com/learningit/plugin.video.et.canada

If you have installed my test repo:
https://github.com/learningit/repository.t1m.addons

You should get an "auto-update" or "update available" message, depending on your "auto-update" setting. You may need to do a "Check for updates" to see the new version.

A pull request for the kodi.org repo has been made, should be available in a few days.


RE: Entertainment Tonight Canada - Canada only - PatK - 2016-03-07

Love anything Canada exclusive, but I'm dying with 3.0.1 and HTTP: error 400, the folders and sub folder show up fine with graphics.

Code:
11:51:17 T:5988   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 'group'
                                            Traceback (most recent call last):
                                              File "C:\Users\PatK\AppData\Roaming\Kodi\addons\plugin.video.et.canada\default.py", line 12, in <module>
                                                ma.processAddonEvent()
                                              File "C:\Users\PatK\AppData\Roaming\Kodi\addons\script.module.t1mlib\lib\t1mlib.py", line 214, in processAddonEvent
                                                elif mode=='GV':  self.getVideo(p('url'))
                                              File "C:\Users\PatK\AppData\Roaming\Kodi\addons\script.module.t1mlib\lib\t1mlib.py", line 164, in getVideo
                                                self.getAddonVideo(url)
                                              File "C:\Users\PatK\AppData\Roaming\Kodi\addons\plugin.video.et.canada\lib\scraper.py", line 143, in getAddonVideo
                                                url = re.compile('<video src="(.+?)"', re.DOTALL).search(html).group(1)
                                            AttributeError: 'NoneType' object has no attribute 'group'
                                            -->End of Python script error report<--
11:51:17 T:4488   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.et.canada/?mode=GV&url=http%3A%2F%2Flink.theplatform.com%2Fs%2FdtjsEC%2FUCTuiTfHOV9V%3Ffeed%3DETCanada.ca%2520Video%2520Center]



RE: Entertainment Tonight Canada - Canada only - learningit - 2016-03-07

(2016-03-07, 18:58)PatK Wrote: Love anything Canada exclusive, but I'm dying with 3.0.1 and HTTP: error 400, the folders and sub folder show up fine with graphics.

Need the full debug log. You might check that the 'Enable Proxy' setting is NOT set.


RE: Entertainment Tonight Canada - Canada only - PatK - 2016-03-07

Enable Proxy is not set.

Full debug log

Debug Log

Toronto.


RE: Entertainment Tonight Canada - Canada only - learningit - 2016-03-07

(2016-03-07, 20:41)PatK Wrote: Enable Proxy is not set.

Full debug log

http://xbmclogs.com/ppempxl32

Toronto.

Still can't see enough to know why. Can I ask you to enable specific component logging for libcURL and try the same item? I think that you're getting a geo-location error, but I can't see why.


RE: Entertainment Tonight Canada - Canada only - PatK - 2016-03-07

(2016-03-07, 21:32)learningit Wrote:
(2016-03-07, 20:41)PatK Wrote: Enable Proxy is not set.

Full debug log

Toronto.

Still can't see enough to know why. Can I ask you to enable specific component logging for libcURL and try the same item? I think that you're getting a geo-location error, but I can't see why.



RE: Entertainment Tonight Canada - Canada only - learningit - 2016-03-07

(2016-03-07, 21:39)PatK Wrote: http://xbmclogs.com/pabfsczd4

Can I ask you to try and change a line in the getProxyrequest routine in lib/scraper.py ?
Put a '#' in front of the old line and add the new line beneath it, making sure it's aligned with the other lines.

Code:
#    req = urllib2.Request(url.encode(UTF8), None, headers)  # old line
    req = urllib2.Request(url, None, headers)  #new line

I'm guessing at the above, but can't see what else it may be. Were you getting just a '400' error or were there other errors as well?


RE: Entertainment Tonight Canada - Canada only - learningit - 2016-03-07

It would also be good if you could post the contents of your userdata/add_data/plugin.video.et.canada/settings.xml file. There's nothing personal in it, I just want to see if it's being init'd correctly. thanks.


RE: Entertainment Tonight Canada - Canada only - PatK - 2016-03-07

<settings>
<setting id="default_view" value="50" />
<setting id="enable_meta" value="false" />
<setting id="enable_views" value="true" />
<setting id="episode_view" value="50" />
<setting id="init_meta" value="false" />
<setting id="movie_view" value="50" />
<setting id="show_view" value="50" />
<setting id="us_proxy" value="" />
<setting id="us_proxy_enable" value="false" />
<setting id="us_proxy_pass" value="" />
<setting id="us_proxy_port" value="" />
<setting id="us_proxy_user" value="" />
</settings>

Yes it was the same error http: error 400 bad request on whatever linked I clicked... tried 3

Did the edit as requested and can no longer enter the plug-in


RE: Entertainment Tonight Canada - Canada only - learningit - 2016-03-07

(2016-03-07, 23:40)PatK Wrote: <settings>
<setting id="default_view" value="50" />
<setting id="enable_meta" value="false" />
<setting id="enable_views" value="true" />
<setting id="episode_view" value="50" />
<setting id="init_meta" value="false" />
<setting id="movie_view" value="50" />
<setting id="show_view" value="50" />
<setting id="us_proxy" value="" />
<setting id="us_proxy_enable" value="false" />
<setting id="us_proxy_pass" value="" />
<setting id="us_proxy_port" value="" />
<setting id="us_proxy_user" value="" />
</settings>

Yes it was the same error on whatever linked I clicked... tried 3

Did the edit as requested and can no longer enter the plug-in

http://xbmclogs.com/ppoji31yo edit in place.

OK - the settings are OK. You probably need to uninstall and reinstall the add-on from a repo to get back to where you were, the patch wasn't right.
Have you tried using the Slice, Showcase or CBC version 3.0.1 add-ons? They all use more or less the same routines. I can put in a fix that skips all this, but it doesn't help find the real problem.

EDIT: where are you loading the add-on from? Is it repository.t1m.addons or plugin.video.et.canada repo?


RE: Entertainment Tonight Canada - Canada only - PatK - 2016-03-07

I did revert, and can back into the plugin with the same results. Your CBC add-on is great, and just tried it with no issues, ditto with TVO wasn't aware of the 'slice/showcase' add-on, but I'll be sure to look for it. It looks like a minor URL bug has crept in.... everything looks good up to the click on the link.

oops first was from ... forget. Second.... looked at your repro.... the last one was from Kodi get more your repro. should I uninstall and clear out manually... then reload from yours?

OK doing that now. After that a clean install brings the same issue.

BTW: found both Slice and Showcase, installed them both.... Slice works 100% while Showcase has the same issue as ET with an error 400 on every link. All taken from repository.t1m.addons


RE: Entertainment Tonight Canada - Canada only - learningit - 2016-03-08

(2016-03-07, 23:53)PatK Wrote: I did revert, and can back into the plugin with the same results. Your CBC add-on is great, and just tried it with no issues, ditto with TVO wasn't aware of the 'slice/showcase' add-on, but I'll be sure to look for it. It looks like a minor URL bug has crept in.... everything looks good up to the click on the link.

oops first was from ... forget. Second.... looked at your repro.... the last one was from Kodi get more your repro. should I uninstall and clear out manually... then reload from yours?

OK doing that now. After that a clean install brings the same issue.

BTW: found both Slice and Showcase, installed them both.... Slice works 100% while Showcase has the same issue as ET with an error 400 on every link.

I have made a test version. Can you download V3.0.2 from https://github.com/learningit/plugin.video.et.canada and install it? Thanks.

EDIT: Also are you able to run the latest 3.0.1 version of CBC?


RE: Entertainment Tonight Canada - Canada only - PatK - 2016-03-08

No longer gives the error 400 just an error. V3.0.2

EDIT Yes just updated the CBC to-day


RE: Entertainment Tonight Canada - Canada only - learningit - 2016-03-08

(2016-03-08, 00:19)PatK Wrote: http://xbmclogs.com/pdmkaxbqu

No longer gives the error 400 just an error. V3.0.2

EDIT Yes just updated the CBC to-day

Ok. Thanks for your patience. I'm pretty sure I found the issue.
Please download and install the V3.0.3 .zip from https://github.com/learningit/plugin.video.et.canada

I also fixed Showcase.
Please download and install V3.0.2 .zip from https://github.com/learningit/plugin.video.showcase.canada


RE: Entertainment Tonight Canada - Canada only - pdops - 2016-03-08

Also with v3.0.2
http://paste.osmc.io/oqawujusov.vhdl

CBC v3.0.1 works fine

As reported by PatK Showcase gives an error 400 on every link for me

Edit; Oops cross posted. Will try the new versions