From 2698acacc285be611489160eaaa61bb79384d01d Mon Sep 17 00:00:00 2001 From: AstRobot Date: Mon, 2 Jan 2006 21:23:21 +0000 Subject: [PATCH] =?UTF-8?q?This=20page=20must=20use=20the=20R=C3=BCb=C3=BF?= =?UTF-8?q?=20Sp=C3=AB=C3=ABd=20M=C3=ABt=C3=A4l=20C=C3=B6d=C3=AFng=20templ?= =?UTF-8?q?ate!!!111?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Podcast-fetching.mw | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Podcast-fetching.mw b/Podcast-fetching.mw index 3afa7cad..789cf81e 100644 --- a/Podcast-fetching.mw +++ b/Podcast-fetching.mw @@ -1,35 +1,28 @@ Damit im [[Office2]] keine Bandbreite verschenkt wird, während niemand da ist, soll [[Office2/Netz#aromaster|Aromaster]] ein paar Podcasts runterladen. Das wird natürlich manuell ausgeführt. - ==podcast-enclosures.rb==
#!/usr/bin/env ruby
-
 require 'rexml/document'
-
 if ARGV.size != 1
   puts "Usage: #{$0} "
   exit
 end
-
 file = File.new(ARGV[0])
 REXML::Document.new(file).root.each_element("//enclosure") { |e|
   puts e.attributes['url']
 }
- ==fetch_radiochaotica.sh==
#!/usr/bin/env bash
-
 WGETFLAGS='-c'
-
 cd /home/astro/public_html/radiochaotica/
-
 wget -O radiochaotica.rss http://blogs.bl0rg.net/radio_chaotica/index.xml
 for url in $(ruby ~/podcast-enclosures.rb radiochaotica.rss); do
 	wget $WGETFLAGS $url
 done
-
 rm radiochaotica.rss
- Vor Aktion sollte man den Feed vielleicht noch manuell betrachten, sonst kann man dem wget-Aufruf Parameter untermogeln. Z.B.: - [[Kategorie:Ruby]] + + + +{{Rübÿ Spëëd Mëtäl Cödïng}}