[Release] Australian Tv Channel Additional Plugins

  Thread Rating:
  • 3 Votes - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bog_gob Offline
Member
Posts: 64
Joined: Feb 2010
Reputation: 6
Location: Melbourne
Post: #1
Here are some additional channels not covered by the excellent repository xbmc-catchuptv-au.
(This post was last modified: 2013-06-15 07:38 by bog_gob.)
find quote
pepper1972 Offline
Junior Member
Posts: 6
Joined: Mar 2012
Reputation: 0
Post: #2
bog_gob,

do you know if any of these Australian TV plugins work outside Australia? I am from Hong Kong.
find quote
bog_gob Offline
Member
Posts: 64
Joined: Feb 2010
Reputation: 6
Location: Melbourne
Post: #3
Not that I'm aware of, possibly a web proxy/redirect?
find quote
bossanova808 Offline
Donor
Posts: 2,209
Joined: Sep 2009
Reputation: 33
Location: Melbourne, Australia
Post: #4
Have you thought about maybe contributing these back tot he repo itself so they're all in one place? Most of the ones in the repo itself are currently broken ...

My XBMC stuff:
find quote
bog_gob Offline
Member
Posts: 64
Joined: Feb 2010
Reputation: 6
Location: Melbourne
Post: #5
I'm not sure how Smile, I'd do so if the maintainers of the Catch Up Tv site were interested. I'd guess I'd have to contact the maintainers and ask if they'd like to include my material.
find quote
bossanova808 Offline
Donor
Posts: 2,209
Joined: Sep 2009
Reputation: 33
Location: Melbourne, Australia
Post: #6
Yeah basically they can make you a contributor to the project and then you can push your changes to google code and thus to the repo/addon users

My XBMC stuff:
find quote
TheFonz Offline
Senior Member
Posts: 143
Joined: Jan 2011
Reputation: 2
Post: #7
Is there any chance of adding the Channel 9 Fix Play content?

ASROCK 100HT-BD | WINDOWS 8 | GOTAHM 13.2 | AEON MQ5
find quote
wyrm Offline
Skilled Skinner
Posts: 944
Joined: Nov 2007
Reputation: 10
Location: Perth, Australia (GMT +8)
Post: #8
(2012-03-16 22:53)bog_gob Wrote:  Here are some additional channels not covered by the excellent repository xbmc-catchuptv-au.
bog_gob,

First of all thank you for giving these scripts/plugins some loving. I know the missus has certainly missed the SBS plugin, and I'm sure she will appreciate the others that you have included. Unfortunately the SBS plugin still has one or two little gottcha's.

The first time that I try the plugin I get a warning that something is wrong and the script crashes. Seems to work fine the next time I try the plugin. Anyway here is the appropriate part of my debug log.

PHP Code:
09:07:16 T:5428   ERRORJ:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\default.py:34DeprecationWarningos.getcwd() 
currently lies to you so please use addon.getAddonInfo('path'to find the script's root directory and 
DO NOT make relative path accesses based on the results of '
os.getcwd.
                                              addon = xbmcaddon.Addon( id=os.path.basename(os.getcwd()))
09:07:16 T:5428  NOTICE: ::
09:07:16 T:5428  NOTICE: plugin://plugin.video.sbs2/extrafanart/?url=None&path=%28%27Clips%27%2C%29&name=Clips&mode=0
09:07:16 T:5428  NOTICE: {'
url': None, 'path': ('Clips',), 'name': 'Clips', 'mode': 0}
09:07:16 T:5428  NOTICE: {}
09:07:16 T:5428  NOTICE: %%
09:07:16 T:5428  NOTICE: ::
09:07:16 T:5428  NOTICE: plugin://plugin.video.sbs2/extrafanart/?url=None&path=%28%27Events%27%2C%29&name=Events&mode=0
09:07:16 T:5428  NOTICE: {'
url': None, 'path': ('Events',), 'name': 'Events', 'mode': 0}
09:07:16 T:5428  NOTICE: {}
09:07:16 T:5428  NOTICE: %%
09:07:16 T:5428  NOTICE: ::
09:07:16 T:5428  NOTICE: plugin://plugin.video.sbs2/extrafanart/?url=None&path=%28%27Programs%27%2C%29&name=Programs&mode=0
09:07:16 T:5428  NOTICE: {'
url': None, 'path': ('Programs',), 'name': 'Programs', 'mode': 0}
09:07:16 T:5428  NOTICE: {}
09:07:16 T:5428  NOTICE: %%
09:07:16 T:4960   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
09:07:16 T:5428    INFO: Scriptresult: Success
09:07:16 T:5428    INFO: Python script stopped
09:07:16 T:5428   DEBUG: Thread XBPyThread 5428 terminating
09:07:16 T:4960   DEBUG: waiting for python thread 12 to stop
09:07:16 T:4960   DEBUG: python thread 12 destructed
09:07:17 T:4960   DEBUG: SDLKeyboard: scancode: 50, sym: 0112, unicode: 0000, modifier: 0
09:07:17 T:4960   DEBUG: CApplication::OnKey: down (f081) pressed, action is Down
09:07:18 T:4960   DEBUG: SDLKeyboard: scancode: 50, sym: 0112, unicode: 0000, modifier: 0
09:07:18 T:4960   DEBUG: CApplication::OnKey: down (f081) pressed, action is Down
09:07:19 T:4960   DEBUG: SDLKeyboard: scancode: 1c, sym: 000d, unicode: 000d, modifier: 0
09:07:19 T:4960   DEBUG: CApplication::OnKey: return (f00d) pressed, action is Select
09:07:19 T:4960   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.sbs2/?url=None&path=%28%27Programs%27%2C%29&name=Programs&mode=0)
09:07:19 T:4960   DEBUG:   ParentPath = [plugin://plugin.video.sbs2]
09:07:19 T:4388   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin SBS2('
plugin://plugin.video.sbs2/','0','?url=None&path=%28%27Programs%27%2C%29&name=Programs&mode=0')
09:07:19 T:4388    INFOinitializing python engine.
09:07:19 T:4388   DEBUG: new python thread createdid=13
09
:07:19 T:4388   DEBUGXFILE::CPluginDirectory::WaitOnScriptResult waiting on the SBS2 plugin...
09:07:19 T:5732   DEBUGThread XBPyThread startauto delete0
09
:07:19 T:5732   DEBUGPython threadstart processing
09
:07:19 T:5732  NOTICE: -->Python Interpreter Initialized<--
09:07:19 T:5732   DEBUGXBPyThread::Process The source file to load is J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\default.py
09
:07:19 T:5732   DEBUGXBPyThread::Process Setting the Python path to J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2;
J:\Users\John\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib;J:\Users\John\AppData\Roaming\XBMC\addons\script.module.simplejson\lib;
J:\Users\John\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;K:\General\XBMC\addons\script.module.pil\lib;
J:\Users\John\AppData\Roaming\XBMC\addons\script.common.plugin.cache\lib;J:\Users\John\AppData\Roaming\XBMC\addons\script.module.simple.downloader\lib;
J:\Users\John\AppData\Roaming\XBMC\addons\script.module.parsedom\lib;
J:\Users\John\AppData\Roaming\XBMC\addons\script.module.elementtree\lib;K:\General\XBMC\addons\script.module.pysqlite\lib;
K:\General\XBMC\system\python\DLLs;K:\General\XBMC\system\python\Lib;K:\General\XBMC\python26.zip;
K:\General\XBMC\system\python\lib\plat-win;
K:\General\XBMC\system\python\lib\lib-tk;K:\General\XBMC;K:\General\XBMC\system\python;
K:\General\XBMC\system\python\lib\site-packages;
09:07:19 T:5732   DEBUGXBPyThread::Process Entering source directory J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2
09
:07:19 T:5732   DEBUGInstantiating addon using automatically obtained id of "plugin.video.sbs2" dependent on 
version 1.0 of the xbmc
.python api
09
:07:19 T:4960   DEBUG: ------ Window Init (DialogBusy.xml) ------
09:07:20 T:4388    INFOLoading skin fileDialogProgress.xml
09
:07:20 T:4388   DEBUGDialogProgress::StartModal called
09
:07:20 T:4388   DEBUG: ------ Window Init (DialogProgress.xml) ------
09:07:21 T:5732    INFO: -->Python script returned the following error<--
09:07:21 T:5732   ERRORError Type: <class 'httplib.IncompleteRead'>
09:07:21 T:5732   ERRORError ContentsIncompleteRead(1402 bytes read6790 more expected)
09:07:21 T:5732   ERRORTraceback (most recent call last):
                                              
File "J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\default.py"line 8in <module>
                                                
import resources.scraper
                                              File 
"J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\resources\scraper.py​"line 117in <module>
                                                
SCRAPER MenuItems()
                                              
File "J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\resources\scraper.py​"line 22in __init__
                                                self
.main_txt            re.sub(r'^[^=]+=',''geturl(self.base 'js/video-menu'))
                                              
File "J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\resources\scraper.py​"line 8in geturl
                                                
return  urllib2.urlopen(urllib2.Request(urlheaders = {"Accept-Encoding":"gzip"})).read().decode('iso-8859-1''ignore').encode('ascii''ignore')
                                              
File "K:\General\XBMC\system\python\Lib\socket.py"line 348in read
                                                data 
self._sock.recv(rbufsize)
                                              
File "K:\General\XBMC\system\python\Lib\httplib.py"line 522in read
                                                
return self._read_chunked(amt)
                                              
File "K:\General\XBMC\system\python\Lib\httplib.py"line 571in _read_chunked
                                                value
.append(self._safe_read(amt))
                                              
File "K:\General\XBMC\system\python\Lib\httplib.py"line 621in _safe_read
                                                raise IncompleteRead
(''.join(s), amt)
                                            
IncompleteReadIncompleteRead(1402 bytes read6790 more expected)
09:07:21 T:5732    INFO: -->End of Python script error report<-- 
Yes, I know it's only a fragment (PM me an e-mail address to send the full debug log if required), but I think what I have sent is pretty clear. While it still works, also take note of the "DeprecationWarning:" on the first line, as the dev's have said they are not going to support this going forward from Eden.

Thanks again mate
Wyrm (xTV-SAF)


(2012-03-16 22:53)bog_gob Wrote:  Here are some additional channels not covered by the excellent repository xbmc-catchuptv-au.
bog_gob,

Sorry, also just noticed that your link in your original message to the Ten plugin points to the Age download. You might want to edit the link to point to the correct file.

Wyrm (xTV-SAF)
(This post was last modified: 2012-03-19 03:57 by wyrm.)
find quote
bog_gob Offline
Member
Posts: 64
Joined: Feb 2010
Reputation: 6
Location: Melbourne
Post: #9
(2012-03-19 01:38)TheFonz Wrote:  Is there any chance of adding the Channel 9 Fix Play content?
Channel 9 uses silverlight for steaming its media which makes it impossible to run in linux (the environment I use). I hear it's possible to get silverlight plugins working on windows (by redirecting to a browser) but I haven't taken the time to investigate. Maybe someone else can help with this?
find quote
bog_gob Offline
Member
Posts: 64
Joined: Feb 2010
Reputation: 6
Location: Melbourne
Post: #10
(2012-03-19 03:53)wyrm Wrote:  
(2012-03-16 22:53)bog_gob Wrote:  Here are some additional channels not covered by the excellent repository xbmc-catchuptv-au.
bog_gob,

First of all thank you for giving these scripts/plugins some loving. I know the missus has certainly missed the SBS plugin, and I'm sure she will appreciate the others that you have included. Unfortunately the SBS plugin still has one or two little gottcha's.

The first time that I try the plugin I get a warning that something is wrong and the script crashes. Seems to work fine the next time I try the plugin. Anyway here is the appropriate part of my debug log.




Sorry, also just noticed that your link in your original message to the Ten plugin points to the Age download. You might want to edit the link to point to the correct file.

Wyrm (xTV-SAF)

Thanks for the feedback Smile. I've updated the link. I've has a look at the log, it seems as though you've got problems with a http request. It could be due to an early timeout. I'm testing on Dharma which uses python 2.4, Eden uses python 2.7 which allows you to specify a timeout. Could you change the following line:

File "J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\resources\scraper.py​​", line 8, in geturl
return urllib2.urlopen(urllib2.Request(url, headers = {"Accept-Encoding":"gzip"})).read().decode('iso-8859-1', 'ignore').encode('ascii', 'ignore')

To:
return urllib2.urlopen(urllib2.Request(url), timeout = 60).read().decode('iso-8859-1', 'ignore').encode('ascii', 'ignore')

Remember in python the indentation is important, there should be a single tab leading the line.
find quote
bog_gob Offline
Member
Posts: 64
Joined: Feb 2010
Reputation: 6
Location: Melbourne
Post: #11
I've made changes to the SBS plugin to deal with the new JSON program layout
find quote
bog_gob Offline
Member
Posts: 64
Joined: Feb 2010
Reputation: 6
Location: Melbourne
Post: #12
I've updated the SBS plugin to deal with new smil handling
I've added a channel 7 plugin
I've added a repository to make dealing with updates easier
find quote
bog_gob Offline
Member
Posts: 64
Joined: Feb 2010
Reputation: 6
Location: Melbourne
Post: #13
(2012-03-17 23:32)bossanova808 Wrote:  Yeah basically they can make you a contributor to the project and then you can push your changes to google code and thus to the repo/addon users

I've tried to contact them, I've received no response, I've created my own repository for now.
Updated SBS yet again Sad, they're making my life difficult by continuously changing they're site.
(This post was last modified: 2012-04-20 14:44 by bog_gob.)
find quote
wyrm Offline
Skilled Skinner
Posts: 944
Joined: Nov 2007
Reputation: 10
Location: Perth, Australia (GMT +8)
Post: #14
(2012-03-19 14:07)bog_gob Wrote:  [quote='wyrm' pid='1049687' dateline='1332122028']
[quote='bog_gob' pid='1047783' dateline='1331931184']
Here are some additional channels not covered by the excellent repository xbmc-catchuptv-au.

Thanks for the feedback Smile. I've updated the link. I've has a look at the log, it seems as though you've got problems with a http request. It could be due to an early timeout. I'm testing on Dharma which uses python 2.4, Eden uses python 2.7 which allows you to specify a timeout. Could you change the following line:

File "J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\resources\scraper.py​​", line 8, in geturl
return urllib2.urlopen(urllib2.Request(url, headers = {"Accept-Encoding":"gzip"})).read().decode('iso-8859-1', 'ignore').encode('ascii', 'ignore')

To:
return urllib2.urlopen(urllib2.Request(url), timeout = 60).read().decode('iso-8859-1', 'ignore').encode('ascii', 'ignore')

Remember in python the indentation is important, there should be a single tab leading the line.
Sorry Bog_gob,

only just saw this message. Yes that seems to have worked. Don't see the script crash notification any more. I have applied the change to the release from 20th April and now see programs constantly buffering (pulling in directory listings is near instantaneous), but I think that maybe a result of the recent SBS website change. Will keep playing to see if things improve.

Thanks mate
Wyrm (xTV-SAF)
find quote
bog_gob Offline
Member
Posts: 64
Joined: Feb 2010
Reputation: 6
Location: Melbourne
Post: #15
I saw similar issues on my linux box (but not my windows one), to stop it from buffering I just hit the play button. SBS now streams the MP4 files directly (rather than using RTMP) I may have to pass an arguement to the xbmc.PLAY command to deal with the buffering appropriately
find quote
Post Reply