EPG printing
Added by Thomas Byrne almost 12 years ago
How can I print (on regular printer) EPG data from TVheadend's EPG? After I click "Print" in browser, I get only first few lines, even there are more then 2000! Or better solution - how can I save EPG data in editable plain TXT file?
Replies (2)
RE: EPG printing - Added by Kev S almost 12 years ago
If you know some PHP programming (or other scripting) the following might help you (I run it using PHP CLI on Ubuntu Linux).
Firstly it scrapes the same TVHeadend JSON replies that TVHeadend's ext.js interface uses to build a list of channels (so it's highly likely to break at some point in the future if the ext.js interface changes!) to populate a stack of user channels for my DigiGuide install (i.e. those channels FTA on 28.2'E which DigiGuide doesn't have listings for!).
The bit prior to file_put_contents(OUTPUT_DIR . "channels.dgc",$dgc); is basically scraping the JSON to get a list of channels, the bit you'll be wanting to change is the build_xml function - mine generates a file per channel in hand crafted xml (so could easily be changed to text) but which can be imported into Excel (in an ugly format).
eit2digiguide.php (2.54 KB) eit2digiguide.php | My eit2digiguide script (not actually EIT...) |
RE: EPG printing - Added by Thomas Byrne almost 12 years ago
Hi,
thank You for Your reply! But my problem is, I know nothing about programming I'm receiving EPG data easily from Air (DVB-T), but also in many another software TV's is no "button" for printing this data. WHY? Or why isn't here any "conversion tool" for easy gathering EPG from files, where it must be saved? This world is mad...