From e7dea14cdfd859f92b46611d8eaba8a5b11b2387 Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Thu, 16 Sep 2010 17:11:50 -0400 Subject: [PATCH] Finished ogg support. --- append.py | 11 ++++++----- cmdln_ogg.xml | 20 +------------------- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/append.py b/append.py index 02ac278..09d08b2 100644 --- a/append.py +++ b/append.py @@ -29,15 +29,15 @@ def __append(entry, suffix, append_fn): try: for line in f: if line.find('') != -1 and not first: - append_fn(entry, o) + append_fn(entry, o, suffix) first = True o.write(line) finally: f.close() -def __append_mp3(entry, output): - (url, mime_type, size) = __enclosure(entry.enclosures, 'http://cmdln.evenflow.nl/mp3', 'mp3') +def __append_non_itunes(entry, output, suffix): + (url, mime_type, size) = __enclosure(entry.enclosures, 'http://cmdln.evenflow.nl/mp3', suffix) output.write(""" %(title)s (Comment Line 240-949-2638) %(link)s @@ -54,7 +54,7 @@ def __append_mp3(entry, output): 'url' : url, 'mime_type' : mime_type, 'size' : size }) - logging.info('Insert new MP3 item.') + logging.info('Inserted new %s item.' % suffix) def __permalink(title): @@ -95,7 +95,8 @@ def main(): logging.error('Failed to fetch feed.') sys.exit(1) - __append(entry, 'mp3', __append_mp3) + __append(entry, 'mp3', __append_non_itunes) + __append(entry, 'ogg', __append_non_itunes) if __name__ == "__main__": diff --git a/cmdln_ogg.xml b/cmdln_ogg.xml index 8325d8f..d63cdc5 100644 --- a/cmdln_ogg.xml +++ b/cmdln_ogg.xml @@ -20,24 +20,6 @@ Logo thanks to Jared Axelrod of Free Planet X. - - TCLP 2010-09-15 Interview: Randy Chertkow of Beatnik Turtle (Comment Line 240-949-2638) - http://thecommandline.net/2010/09/15/beatnik_turtle4/ - This is a feature cast, an episode of The Command Line Podcast.

- -

There is no new hacker word of the week this week.

- -

The feature this week is the interview I recorded with Randy Chertkow of Beatnik Turtle. If you are interested, here are the 2007, 2008, and 2009 interviews as well. In the interview, we mention the Indie Guide web site, Randy and Jason's columns at Electronic Musician, and TrackMyDisc.com.

- -

More news and commentary and alternate feeds available at http://thecommandline.net/. View the detailed show notes online. You can grab the flac encoded audio from the Internet Archive.

- -

Creative Commons License

- -

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.

]]>
- Wed, 15 Sep 2010 21:30:38 -0400 - - tclp-20100915-interview-randy-chertkow-of-beatn -
TCLP 2010-09-08 Creative Commons, Legal Issue Panel from Dragon*Con 2010 (Comment Line 240-949-2638) http://thecommandline.net/2010/09/08/dragoncon_cc_4/ @@ -3767,4 +3749,4 @@ tclp-20080723-the-last-hope-comment-line-24094 - \ No newline at end of file +