Kodi Community Forum
[RELEASE] iPlayer - BBC Video and Music Plugin (UK 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] iPlayer - BBC Video and Music Plugin (UK only!) (/showthread.php?tid=51322)



RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - speedwell68 - 2014-11-09

Excellent work. I am so glad that this addon is functional again. Thanks to everyone. It is working better than ever for me.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - laptopu - 2014-11-09

(2014-11-08, 23:33)exobuzz Wrote: Set socket timeout to 0 or increase it in advanced settings.

The api we are now using is a little slow.

Thanks that worked, it is quite slow like you say - is this a BBC problem then?


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - dnairb - 2014-11-09

Is it possible to have the episode number in all listings? Where there is no episode number, the episodes are listed in alphabetic order (e.g. Doctor Who episodes.)

Version 2.6.3 on Helix Beta2


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - Hitcher - 2014-11-09

(2014-11-09, 08:03)ilomambo Wrote: This has probably nothing to do with the new/old API, but with so much content I always loose track of what I have already watched.

exobuzz, is there a way that watched programmes could be marked as watched (maybe using XBMCs cache db or so)? (I know partially watched programmes always have the "resumable" note beside them, but once you finish watching they are undistiguishable from unwatched ones)

Watched states are remembered by Kodi but the skin must support it.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - exobuzz - 2014-11-09

(2014-11-09, 08:03)ilomambo Wrote: This has probably nothing to do with the new/old API, but with so much content I always loose track of what I have already watched.

exobuzz, is there a way that watched programmes could be marked as watched (maybe using XBMCs cache db or so)? (I know partially watched programmes always have the "resumable" note beside them, but once you finish watching they are undistiguishable from unwatched ones)


I guess it is with some extra work. I've got no interest in doing it though. Open a ticket on the bugtracker with a feature request and hope someone submits a patch ? Smile

(2014-11-09, 13:16)dnairb Wrote: Is it possible to have the episode number in all listings? Where there is no episode number, the episodes are listed in alphabetic order (e.g. Doctor Who episodes.)

Version 2.6.3 on Helix Beta2

you can submit feature requests on the bugtracker. I believe there is a ticket open for this already - patches welcome (I put some time into getting the plugin working again - but I have little free time for improvements right now - sorry)

(2014-11-09, 12:07)laptopu Wrote: Thanks that worked, it is quite slow like you say - is this a BBC problem then?

the timeout was originally set low in the settings. the new api is slow to respond (the BBC's issue), so the timeout needs to be larger. on a fresh install it is set higher, but older configs are not changed.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - dinkypumpkin - 2014-11-09

(2014-11-09, 05:37)exobuzz Wrote: Did you adjust socket timeout?

The api may well just be failing on the BBC end

Yes - I should have noted that. Made timeout 0 to disable, then 60, 90, 120. The requests die on the server after about 60 seconds, no matter how they are sent: plugin, get_iplayer, curl, browser. They always fail on the BBC end for me. Some get_iplayer users asked about this, but when I sent them URLs to test, I never heard anything back. Since all your plugin users have access to the ion feeds, I thought I would take a last opportunity to see if whole-channel listings for R3, R4, WS worked for anyone, anywhere. More in hope than in expectation, it must be said.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - forestgreen - 2014-11-09

Hi
Great work!
I have just installed 2.6.3 and I cannot find the link for watch live. I must be being thick but where is it?
TIA


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - castalla - 2014-11-10

There aren't any live streams.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - washere - 2014-11-10

Looks like BBC iplayer is working with the new Nitro API which requires dev keys they don't give away publicly.

Good job guys, will try it now.

##############################################
These resources might be helpful leads:

They seem to have it running: get_iplayer runs on Linux/Unix (numerous flavours supported), OS X (10.5+) or Windows (XP/Vista/7/8):

https://github.com/dinkypumpkin/get_iplayer/releases
https://github.com/dinkypumpkin/get_iplayer/wiki

also:
http://developer.bbc.co.uk/sites/default/files/Nitro%20for%20Clients.pdf
https://developer.bbc.co.uk/content/nitro-quickstart

#############################################

P.S. Thanks exobuzz.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - washere - 2014-11-10

Categories would be great to chase down BBC4 & BBC2 Documentaries in Factuals.

Thanks again, just testing it on Dad's Army Big Grin

Image

P.S. Thanks also to dlake02 for the fixes.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - Leopold - 2014-11-10

Regarding the lack of live channels - I had a look at the code for the other iPlayer plugin which now has Live working. It turns out there is an m3u8 playlist available with the HDS video segments.

e.g. for BBC News the akamai f4m manifest is at http://a.files.bbci.co.uk/media/live/manifests/hds/pc/ak/news_ch.f4m

Then just change the extension for the appropriate bitrate media url from f4m to m3u8. I tested these urls successfully with ffplay. There are tons of Invalid timestamps messages which will spam the debug log though.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - exobuzz - 2014-11-10

thanks.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - dinkypumpkin - 2014-11-11

(2014-11-10, 13:50)Leopold Wrote: Then just change the extension for the appropriate bitrate media url from f4m to m3u8. I tested these urls successfully with ffplay. There are tons of Invalid timestamps messages which will spam the debug log though.

The invalid timestamp messages are at warning level (at least in recent versions of ffmpeg), so "-loglevel error" will suppress them.


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - djpudsey - 2014-11-11

(2014-11-09, 02:20)dinkypumpkin Wrote:
(2014-11-08, 23:33)exobuzz Wrote: Set socket timeout to 0 or increase it in advanced settings.

The api we are now using is a little slow.

On this subject, I'm curious to know if anyone using the latest version (2.6.3+) is able to get programme listings for Radio 3, Radio 4, or World Service (I can't). AFAICT, those requests die or time out on the server, perhaps due to a large amount of back catalogue programmes in the associated data set. I get the same results with get_iplayer or direct access, from several different networks, so it's nothing to do with the plugin or XBMC. I'd just like to find out if there is any hope for grabbing listings for those stations as whole units, or if I should give up ( me == get_iplayer dev).

As I'm a big user of Radio 3 and have had the same problem of listing requests timing out at the server I've been having a look at this problem and have suggestion for a fix - very buggy at the moment, but it does get me the Radio 3/4 listings okay. The trick is to add a date param to the request url (eg add /date/2014-11-11) and make multiple requests, one for the current day and the previous 7 days and stack the returned xml together for parsing. This doesn't seem to cause a problem with the parser for the radio listings (but seems not to work as expected for tv listings - gives a truncated list of episodes). My test hack is in the function read_rss() in iplayer2.py

My python scripting is very rusty, and its the first time I've looked at this code, so I'm sure there is a far better way of coding this than my initial approach - but as a proof of concept it does work and seems quick too.

Hope this helps.

DJ


RE: [RELEASE] iPlayer - BBC Video and Music Plugin (UK only!) - Leopold - 2014-11-11

(2014-11-11, 02:25)dinkypumpkin Wrote:
(2014-11-10, 13:50)Leopold Wrote: Then just change the extension for the appropriate bitrate media url from f4m to m3u8. I tested these urls successfully with ffplay. There are tons of Invalid timestamps messages which will spam the debug log though.

The invalid timestamp messages are at warning level (at least in recent versions of ffmpeg), so "-loglevel error" will suppress them.

Yes that's true for ffplay but with xbmc we are stuck with the spam. Even in the Helix Beta if you turn off the component specific logging for ffmpeg it has no effect on these warnings, and a debug log will quickly become enormous.