From f5b07db2859eded24e88f3c2646e4de09b7cf104 Mon Sep 17 00:00:00 2001 From: neingeist Date: Fri, 13 Oct 2006 18:12:25 +0000 Subject: [PATCH] Remove debug stuff, whitespace --- neinomat-radio-chaotica | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/neinomat-radio-chaotica b/neinomat-radio-chaotica index 505d978..c68aa1b 100755 --- a/neinomat-radio-chaotica +++ b/neinomat-radio-chaotica @@ -33,6 +33,7 @@ template = "Vorlage:Radio Chaotica-Sendung" episodes = [] @wiki.article(template).what_links_here.each do |page| # puts page # DEBUG + if erste_sendung = parse_template(page, template)["erste_sendung"] episode = { "title" => page, @@ -41,7 +42,6 @@ episodes = [] "enclosure_url" => parse_template(page, template)["download"], "date" => Date.today(), # fallback } - # Get a real date erste_sendung.gsub!(/\s*um\s*\d+:\d+$/,"") @@ -51,7 +51,6 @@ episodes = [] episode["date"] = Date.parse(datum2isodate(erste_sendung)) end episode["pubdate"] = episode["date"].strftime(RFC822) - # Get content type and length head = head(episode["enclosure_url"]) @@ -63,7 +62,7 @@ episodes = [] episodes.push(episode) end - $stderr.puts "DEBUG: Only crawling one episode"; break + # $stderr.puts "DEBUG: Only crawling one episode"; break end # Sort episodes, starting with last