• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 20
[Request] TVNZ OnDemand
#61
Dave, I think you may be right to worry about the direction Ziln's taking. Although the website announces more NZ content and more channels coming, all I can see is that a) they have less content than they had before and b) they're now streaming the content themselves, rather than paying another company to do it.

This seems to suggest that they're taking cost-cutting measures, which may be an indication that they're not making money and therefore may not be round for much longer!

Despite this, I'll give the plugin a try over the next few days and see what I can come up with.
Author of the NZ OnDemand and ZoneMinder addons, and caretaker of the pyamf script. Contributor to fanart.tv, TheMovieDB and TheTVDB.
Reply
#62
Hah, I think I've got it. An example video page is:

http://ziln.co.nz/video/47

This has the following line in it:

Code:
flashvars.file = "/playlist/null/47";

Using this as a relative URL we can visit:

http://ziln.co.nz/playlist/null/47

When we view the source of this we can see that it's an RSS XML page:


[HTML]<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://developer.longtailvideo.com/">
<channel>
<title>Fish N Hunt TV</title>

<item>
<title>Outdoors With Geoff 2005 Ep8</title>
<description>Geoff and 'The Reel Girls' as they jump on board two helicopters and head to Great Barrier Island.</description>
<jwplayer:image>/assets/images/videos/47-large.jpg</jwplayer:image>
<media:group>
<media:content bitrate="1800" url="/assets/videos/fishandhunttv/files/520p/2005ep08_768k.mp4" width="480"/> </media:group>
<jwplayer:provider>http</jwplayer:provider>
</item>
</channel>
</rss>[/HTML]

The interesting line in this is:

[HTML] <media:content bitrate="1800" url="/assets/videos/fishandhunttv/files/520p/2005ep08_768k.mp4" width="480"/>[/HTML]

Using that as a URL relative to the Ziln root gives us a full URL of:

http://ziln.co.nz/assets/videos/fishandh...8_768k.mp4

And that's the URL of our media file for streaming! Now all I need to do is finish off the plugin to grab the player page, get the RSS URL, grab the RSS page, pull the video URL out of it and play the URL. In fact, looking at it some more I spot that the video ID (47 in this case) is common to the player page and the RSS page, so I can probably skip having to grab the player page and just build the RSS URL directly, therefore speeding up time to playback.

I wonder if there are some base RSS feeds that I can grab to make the whole scraping quicker and easier. I'll just have a quick poke around the site...
Author of the NZ OnDemand and ZoneMinder addons, and caretaker of the pyamf script. Contributor to fanart.tv, TheMovieDB and TheTVDB.
Reply
#63
The Ziln portion of the plugin is now working. I'll do some code clean-up tomorrow, and then see if I can replace the existing 2 plugins in the official XBMC repo with the new unified NZ plugin.
Author of the NZ OnDemand and ZoneMinder addons, and caretaker of the pyamf script. Contributor to fanart.tv, TheMovieDB and TheTVDB.
Reply
#64
I tried to installed both the TVNZ and TV3 plugins and I get this error while trying to run them :


Code:
18:37:16 T:2893015920 M:1561436160  NOTICE: -->Python Interpreter Initialized<--
18:37:17 T:2893015920 M:1561182208  NOTICE: Traceback (most recent call last):
18:37:17 T:2893015920 M:1561182208  NOTICE:   File "/home/mivilleb/.xbmc/plugins/video/TVNZ/default.py", line 22, in ?
18:37:17 T:2893015920 M:1561182208  NOTICE: import urllib2,string,xbmcgui,xbmcplugin,xbmcaddon
18:37:17 T:2893015920 M:1561182208  NOTICE: ImportError
18:37:17 T:2893015920 M:1561182208  NOTICE: :
18:37:17 T:2893015920 M:1561182208  NOTICE: No module named xbmcaddon
18:37:17 T:2893015920 M:1561182208   ERROR: Scriptresult: Error
18:37:18 T:3079149440 M:1562112000   ERROR: GetDirectory - Error getting plugin://video/TVNZ/
18:37:18 T:3079149440 M:1562112000   ERROR: CGUIMediaWindow::GetDirectory(plugin://video/TVNZ/) failed
18:37:23 T:3079149440 M:1557549056  NOTICE: Storing total System Uptime
18:37:23 T:3079149440 M:1557549056  NOTICE: Saving settings
18:37:23 T:3079149440 M:1557676032  NOTICE: stop all
18:37:23 T:3079149440 M:1557676032  NOTICE: ES: Stopping event server
18:37:23 T:3079149440 M:1557676032  NOTICE: stopping zeroconf publishing
18:37:24 T:3051498352 M:1557676032  NOTICE: ES: UDP Event server stopped
18:37:24 T:3043105648 M:1557676032  NOTICE: DS: DBUS server stopped
18:37:24 T:3079149440 M:1557676032  NOTICE: stop dvd detect media
18:37:24 T:3079149440 M:1557676032  NOTICE: stop sap announcement listener
18:37:24 T:3079149440 M:1557676032  NOTICE: clean cached files!
18:37:24 T:3079149440 M:1557676032  NOTICE: unload skin
18:37:26 T:3079149440 M:1566236672  NOTICE: stop python
18:37:26 T:3079149440 M:1566236672  NOTICE: stopped
18:37:26 T:3079149440 M:1566236672  NOTICE: destroy
18:37:26 T:3079149440 M:1566236672  NOTICE: unload sections

Any idea what I need to do.
Reply
#65
Get Dharma.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#66
Jonathan beat me to it, but basically you need Dharma for the addons to work. Release Candidate 1 is out and appears pretty stable.

I've been dragging my heels with the combined plugin, but will try to release it this weekend. I'll then look at what needs changing to make it pre-Dharma compatible, as I'd like to see this working on the XBox is possible.
Author of the NZ OnDemand and ZoneMinder addons, and caretaker of the pyamf script. Contributor to fanart.tv, TheMovieDB and TheTVDB.
Reply
#67
I just upgraded to Dharma RC1 and it works great, thank you.
Reply
#68
Hi guys,

Fantastic plugins very excited about finally having a reason to use TVNZ on Demand.

Has anyone run into a weird issue where the episodes are twice as long as they should be? e.g. your average 40 min episode is 120min and around every 7 minutes it repeats what has just been watched?
Reply
#69
Sounds like there's multiple video files in the smil in that case - take a nosy through the website and grab the .smil file for the particular video.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#70
I've been getting the same looping problem.

Also noticed that TVNZ have 1500k streams available on there website.

Not sure if this is what is causing the problem as they now have 3 streams for some shows and therefore more video stream files in the .smil file.

Would be good if we can use the higher bitrate ones Smile
Reply
#71
That'll be it then - we currently add anything >= 700k (simple hack that I did in the original script :p)

Nice to see some 1.5Mbit streams.

I'll drop Mark a mail and see if he can just grab the best stream instead - should be a quick change I think.

Anyone got an example that shows this behaviour for testing?

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#72
Here's one;

http://tvnz.co.nz/content/3934643/ta_ent_smil_skin.smil
Reply
#73
Found a quick way to solve the issue, just changed the line in the default.py script to

MAX_BITRATE=800

However this will then break the plugin for any shows that don't have 1500k streams.
I haven't checked to see how widespread this is but i'm assuming they will all eventually be available in 1500k after older shows expire.
Reply
#74
Sorry, I've been slack with my update. My plan is to have a setting to choose a preferred stream bitrate, and the plugin will fail up or down if the preferred bitrate isn't available. I'll spend another couple of hours on it now and see if I can get it out this evening.
Author of the NZ OnDemand and ZoneMinder addons, and caretaker of the pyamf script. Contributor to fanart.tv, TheMovieDB and TheTVDB.
Reply
#75
TV3 looks like it's broken now as well, so I'm fixing that up. The pages have changed enough that my regexes aren't working.
Author of the NZ OnDemand and ZoneMinder addons, and caretaker of the pyamf script. Contributor to fanart.tv, TheMovieDB and TheTVDB.
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 20

Logout Mark Read Team Forum Stats Members Help
[Request] TVNZ OnDemand2