Page 1 of 1

Some Radio Station Info...

Posted: Tue Sep 08, 2009 1:45 pm
by 337Manni
Hi all.

I'm new to the forum, but have been using the XMLTV GUI for a few years now.

A bit of background info - I'm using GBPVR for my HTPC front end and have been using the XMLTV GUI for creating my EPG from the UK - Radio Times.
Recently GBPVR has been updated to Vr 1.4.7. With this new version there is now support for digital radio stations.

I have a couple reasons for posting.

1. Between the "UK - Radio Times" & the "UK - Bleeb" I can find most, but not all of the digital radio stations. I'm currently missing the following:

BBC Radio 7, BBC Asian Net, BBC World Service, Absolute Radio
Heat, Premier Radio, Smooth Radio, Talk Sport, The Hits Radio

I'm also missing the TV channels "301" & "302", but I believe these don't have a guide?

Any help in locating where I could grab this info would be great.


2. I have noticed that the station BBC Radio 1 has a typo. Is this down to the "UK - Bleeb"? It's in the naming of the channel id, see below:

<channel id="UK_Bleb_bbc_radio1">
<display-name>BBC Raido 1</display-name>
</channel>

If I alter this, it just goes back the next time I grab this info.

Is there anything I can do as a work around, or can the supplier of this info be made aware of it if not already?


Thanks for reading and any help would be much appreciated.

Re: Some Radio Station Info...

Posted: Tue Sep 08, 2009 6:27 pm
by alanbirtles
looks like my bleb channel list is quite out of date. i will try to do something about it this weekend

Re: Some Radio Station Info...

Posted: Tue Sep 08, 2009 8:39 pm
by 337Manni
Hi Alan.

Thanks for the response. I'm looking forward to the update. It would fill in a few blanks in my EPG.

Re: Some Radio Station Info...

Posted: Thu Sep 17, 2009 7:49 pm
by alanbirtles
all new bleb grabber is now available with:
  • channel list downloading
  • faster data downloading
get it from SVN (see sticky post for login details):
https://www.birtles.org.uk/svn/xmltv/co ... ukbleb.lua

Re: Some Radio Station Info...

Posted: Tue Sep 22, 2009 12:49 pm
by 337Manni
Thanks for the work Alan, it's much appreciated.

I take it I replace the script in "ukbleb.lua" with the script in the link?

Anyway, I backed up the origenal "ukbleb.lua" file and replaced it with the contents of the link. I then saved and ran the XMLTV GUI, however I got the following error:

12:40:23 - C:\Program Files\XMLTV GUI\scripts/uk_bleb/ukbleb.lua:1: unexpected symbol near `{'

I had a quick look, comparing it with the original file, but I couldn't find anything.

Re: Some Radio Station Info...

Posted: Tue Sep 22, 2009 5:36 pm
by alanbirtles
try downloading it again. its working here...
which version of the application are you using?

Re: Some Radio Station Info...

Posted: Wed Sep 23, 2009 1:23 pm
by 337Manni
I have just downloaded it again, replaced the old file and ran XMLTV GUI and the same error message appeared.

I am using:

XMLTV GUI Version 3.11.01W
Released on 08/02/09

The info in the C:\Program Files\XMLTV GUI\scripts\uk_bleb\ukbleb.lua file is below (minus the --------):

-----------------------------------------------------------------------
require ("zip");
require ("lxp");
require ("xmltv_parse")

local prog
local chan
local tag
local data
local grab
local lang
local UseCache

local ListingsURL="http://www.bleb.org/tv/data/listings?da ... s&file=zip"
local ChannelsURL="http://www.bleb.org/tv/data/listings/0/"
local Grabber

local function DownloadData(grabber, channelList, days, programCallback, channelCallback)
local cacheid=nil
local cahcemaxdays=nil
if UseCache then
cacheid=hash(channelList).."_"..days
cachemaxdays=1
end
local page,err = XGUI.Get(string.format(ListingsURL,days-1,channelList),grabber,_,_,cacheid,cachemaxdays)
if (err<400)and(err~=-1) then
local tmp=string.format("%s%s.zip",TEMP,hash(channelList))
local file=io.open(tmp,"wb")
file:write(page);
file:close();
local zf=zip.open(tmp)
file=zf:open("data.xml")
XmltvParse.ParseFile(file, programCallback, channelCallback)
return XGUI.OK
else
return XGUI.Fail
end
end

local channelList
local MaxDays
local Grabber

local function programCallback(prog)
XGUI.AddProgram(Grabber,prog)
end

local function channelCallback(chan)
XGUI.AddChannel(Grabber,chan)
end

local function Pass1End(grabber)
if MaxDays==0 then MaxDays=7
end
XGUI.SetStatus(2,"Downloading Data")
Grabber = grabber
if DownloadData(grabber,channelList,MaxDays,programCallback,nil) ~= XGUI.OK then
return XGUI.Fail
end

print(" Clearing cache")
XGUI.CleanCache(grabber,1);
return XGUI.OK
end

local function Pass1Func(grabber,channel,maxdays)
channelList = channelList..channel.ID..","
MaxDays = maxdays
return XGUI.OK
end

local function Pass1Start(grabber)
UseCache=toboolean(XGUI.GetSetting(grabber,"UseCache",true))
channelList = ""
return XGUI.OK
end

local function Init(grabber)
XGUI.AddSetting(grabber,"UseCache",XGUI.SettingType.Boolean,"true","Use Cache")
end

local function RefChans(grabber)
Grabber = grabber
local page,err = XGUI.Get(ChannelsURL,grabber)
if (err<400)and(err~=-1) then
print ("File List Downloaded")
local files = ""
local file
XGUI.SetStatus(1,"Getting channel list")
local numChannels = 0;
for file in string.gfind(page,"<a href=\"([%w%._%-!£%$%%%^&()=%+%[%]{}@#~]+).xml\">") do
files = files .. file .. ","
numChannels = numChannels + 1
--print("Found :"..file)
end
print("Found "..numChannels.." channels")
XGUI.ClearChannels(grabber)
if DownloadData(grabber,files,1,nil,channelCallback) ~= XGUI.OK then
return XGUI.Fail
end
return XGUI.OK
else
print("Couldn't download channels")
return XGUI.Fail
end
end

Grabbers.UK_Bleb={
Name = "UK - Bleb",
Version = "2.00.00",
Encoding = XGUI.Encoding.UTF8,
Author = "Alan Birtles",
InfoURL = "http://www.birtles.org.uk/xmltv/wiki/index.php/Bleb",
SourceURL = "http://www.bleb.org/tv",
Passes={
Pass1={
Type=XGUI.PassTypes.Channel,
Start=Pass1Start,
End=Pass1End,
Func=Pass1Func,
},
},
RefreshChannels=RefChans,
Init=Init,
}
-----------------------------------------------------------------------

Re: Some Radio Station Info...

Posted: Wed Sep 23, 2009 6:14 pm
by alanbirtles
I don't know whats happening. I will try and get a new release out soon

Re: Some Radio Station Info...

Posted: Wed Sep 23, 2009 6:51 pm
by 337Manni
Thanks Alan!

Re: Some Radio Station Info...

Posted: Mon Oct 05, 2009 7:47 pm
by 337Manni
Hi Alan. Any news on the new release?

Re: Some Radio Station Info...

Posted: Mon Oct 05, 2009 8:24 pm
by alanbirtles
not yet sorry

Re: Some Radio Station Info...

Posted: Fri Oct 09, 2009 9:32 pm
by alanbirtles
3.12 out now