You are not logged in.

#1 2017-11-22 13:57:35

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,817
Website

cli epg xmltv 'decoder' ?

So I have some epg xmltv sources and would like a cli utility that would be used like

epg hbo discovery

should return

hbo now film (at 75%)
next some other film
later some other than other film

and same for discovery

Anything like that out there?

p.s. and perhaps a verbose version:

epg -v hbo

would give

hbo now film (at 75%) (Film about how cats are better than dogs)
next some other film (About superheroes)
later some other than other film (Mostly about how to steal millions)

Last edited by brontosaurusrex (2017-11-22 15:49:59)

Offline

#2 2017-11-22 14:11:57

earlybird
ほやほや
Registered: 2015-12-16
Posts: 717
Website

Re: cli epg xmltv 'decoder' ?

So, you have a XML file conforming to the XMLTV Format http://wiki.xmltv.org/index.php/XMLTVFormat and basically need a query tool for the command line to display the data in that file in a human-friendly format according to the given query (channel name, time, …)? Sounds like an interesting project if it doesn't exist. I've found the http://wiki.xmltv.org/index.php/XMLTVProject which has a set of command line tools available.

Offline

#3 2017-11-22 14:51:39

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,817
Website

Re: cli epg xmltv 'decoder' ?

edit: What's on from now on specific channel

tv_sort guide.xml | tv_split --output txt/%channel%.xml
cd txt
# from NOW
tv_grep --on-after now Discovery\ Channel.xml | tv_to_text | head

From http://linuxgazette.net/issue99/lovett.html

p.s. Yeah it was all there, just wasn't looking at the right place.

Last edited by brontosaurusrex (2017-12-10 18:53:57)

Offline

Board footer

Powered by FluxBB