[Hpr] progress being made on python hpr lib

Mike Dupont jamesmikedupont at googlemail.com
Wed Nov 6 05:07:36 PST 2013


Hi there,
just wanted to let fellow hackers know about the python lib I am working on.
basic idea is to include all show data in the flac metadata file,
using also custom fields and then to combine that with a template to
produce html show notes. The intro and outtro are also added to the
file. So in the end, all you need to do is produce one flac file and
process it. basic ftp upload is working, I am using a temp dir on the
ftp server for testing.

example of  basic code working
https://github.com/h4ck3rm1k3/hacker-public-radio-publisher/blob/master/example.py

still need to populate the templates
https://github.com/h4ck3rm1k3/hacker-public-radio-publisher/blob/master/templates/shownotes.tpl

here is an example audcity tag file :
https://github.com/h4ck3rm1k3/hacker-public-radio-publisher/blob/master/Tags.xml

the tags are read and available in the template tool  by this function :
https://github.com/h4ck3rm1k3/hacker-public-radio-publisher/blob/master/hacker_public_radio.py#L160

more to come,

mike

-- 
James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
Saving wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com
Contributor FOSM, the CC-BY-SA map of the world http://fosm.org
Mozilla Rep https://reps.mozilla.org/u/h4ck3rm1k3
Free Software Foundation Europe Fellow http://fsfe.org/support/?h4ck3rm1k3




More information about the Hpr mailing list