z6c - personal blog about topics

Christian Müller – Letzte Änderung: 05.12.2015 21:41 Uhr

Podcastverwaltung - Podget lädt aktuelle Podcasts per Cronjob

Die Software Podget dient dem Abruf und der Verwaltung von Podcasts auf der Linux Console oder per Cronjob.

Die Projektseite fasst es so zusammen:

Podget is a simple podcast aggregator optimized for running as a scheduled background job (i.e. cron), with support for folders and categories, importing servers from OPML lists & iTunes PCAST files, automatic playlist creation and cleanup.

Konfiguration

Die Konfiguration befindet sich im Ordner .podget:

root@host:~/.podget# ls
podgetrc  serverlist

podgetrc

# Name of Server List configuration file
config_serverlist=serverlist

# Directory where to store downloaded files
dir_library=/data/MCP/Podcast

# Directory to store logs in
# dir_log=/root/POD/LOG

# Set logging files
log_fail=errors
log_comp=done

# Build playlists (comment out or set to null value to disable)
# playlist_namebase=New-

# Date format for new playlist names
date_format=+%Y-%m-%d

# Wget base options
# Commonly used options:
#   -c            Continued interupted downloads
#   -nH           No host directories (overrides .wgetrc defaults if necessary)
#   --proxy=off   To disable proxy set by environmental variable http_proxy/
#wget_baseopts=-c --proxy=off
wget_baseopts=-c -nH

# Most Recent
# 0  == download all new items.
# 1+ == download only the <count> most recent
most_recent=15

# Force
# 0 == Only download new material.
# 1 == Force download all items even those you've downloaded before.
force=0

# Autocleanup.
# 0 == disabled
# 1 == delete any old content
cleanup=0

# Number of days to keep files.   Cleanup will remove anything
# older than this.
cleanup_days=356

# Filename Cleanup: For FAT32 filename compatability (Feature Request #1378956)
# Tested with the following characters: !@#$%^&*()_-+=||{[}]:;"'<,>.?/
# filename_badchars=!#$^&=+{}[]:;"'<>?|\

# Filename Replace Character: Character to use to replace any/all
# bad characters found.
filename_replacechar=_

# Filename Cleanup 2:  Some RSS Feeds (like the BBC World News Bulletin) download files with names like filename.mp3?1234567.
# Enable this mode to fix the format to filename1234567.mp3.
# 0 == disabled
# 1 == enabled (default)
filename_formatfix=1

# Stop downloading if available space on the partition drops below value (in KB)
# default:  614400 (600MB)
min_space=61440

# ASX Playlists for Windows Media Player
# 0 == do not create
# 1 == create
asx_playlist=0

serverlist

# Default Server List for podget
# FORMAT:    <url> <category> <name>
# NOTES:
#    1. The Category must be one word without spaces.  You may use underscores.
#    2. Any spaces in the urls needs to be converted to %20
#    3. Disable the downloading of any feed by commenting it out with a #.
#    4. If you are creating ASX playlists, make sure the feed name does not
#       have any spaces in it.
# Find more servers at: http://www.ipodder.org/directory/4/podcasts
# Favoriten
http://alternativlos.org/alternativlos.rss Favoriten Alternativlos
http://freakshow.fm/feed/mp3/ Favoriten FreakShow
http://not-safe-for-work.de/feed/mp3/ Favoriten NSFW
http://cre.fm/feed/mp3/ Favoriten CRE
http://logbuch-netzpolitik.de/feed/mp3 Favoriten Logbuch_Netzpolitik
http://www.radioeins.de/archiv/podcast/zwei_alte_hasen.feed.podcast.xml Favoriten SuS
#
# WRINT
#
http://feeds.feedburner.com/DieWrintheit WRINT WRINT_Die_Wrintheit
http://feeds.feedburner.com/WrintRealitaetsabgleich WRINT WRINT_Realitätsabgleich
http://www.wrint.de/feed/podcast/ WRINT WRINT_Alle
http://www.wrint.de/category/fotografie/feed/ WRINT WRINT_Fotografie
http://www.wrint.de/category/politikunterricht/feed/ WRINT WRINT_Politikunterricht

#
# Wissenschaft
#
http://www.dradio.de/rss/podcast/sendungen/forschaksendung/ Wissenschaft Forschung_aktuell
http://minkorrekt.de/feed/mp3/ Wissenschaft Minkorrekt
http://resonator-podcast.de/feed/mp3/ Wissenschaft Resonator
http://feeds.feedburner.com/Wrint_Wissenschaft Wissenschaft WRINT_Wissenschaft
http://feeds.feedburner.com/sternengeschichten Wissenschaft Sternengeschichten
http://feeds.feedburner.com/raumzeit-podcast Wissenschaft Raumzeit
#
# Musik
#
http://podcast.breakbeat.co.uk/ Musik DrumAndBassArena
http://feeds.feedburner.com/ukfmusic Musik UKF_Music
http://bassnectar.libsyn.com/rss Musik Bassnectar_Transmission
#
# Radio
#
http://pcast.sr-online.de/feeds/rundschau8/feed.xml Radio SR3_Rundschau_8_Uhr
http://www.dradio.de/rss/podcast/sendungen/feature/ Radio Feature-Deutschlandfunk
http://pcast.sr-online.de/feeds/fragen/feed.xml Radio SR2-FragenAnDenAutor
http://podcast.wdr.de/dittsche.xml Radio Dittsche
http://glaubenssache.info/feed/mp3/ Radio Glaubenssache
http://pcast.sr-online.de/feeds/medienwelt/feed.xml Radio SR2-Medienwelt
http://die-sondersendung.de/feed/mp3/ Radio DieSondersendung
http://feeds.feedburner.com/mikrodilettanten Radio Mikrodilettanten
http://feeds.feedburner.com/EinschlafenPodcast Radio EinschlafenPodcast
#
# Hoerspiele
#
http://web.ard.de/radiotatort/rss/podcast.xml Hoerspiele RadioTatort
http://querschnitt.podspot.de/rss Hoerspiele 2080
http://qsregentage.podspot.de/rss Hoerspiele Regentage
#
# Klassik
#
http://pcast.sr-online.de/feeds/sr2-aufnahme-des-monats/feed.xml Klassik SR2-AufnahmeDesMonats
#
# Alle (anderen)
#
http://www.hoaxilla.de/podcast/hoaxilla.xml Alle Hoaxilla
http://feeds.feedburner.com/bitsundso/audio Alle BitsUndSo
http://chaosradio.ccc.de/chaosradio-complete.rss Alle Chaosradio

Die Ausführung

Per Cronjob läuft das Programm mit dem Schalter -s im Silentmode, beispielsweise so:

0 */8   * * *   root    /usr/bin/podget -s

Das Podcast Verzeichnis

Anschließend befinden sich Unterordner für jeden abonnierten Podcast im konfigurierten Verzeichnis. Das sieht bei mir dann so aus:

WRINT
WRINT/WRINT_Politikunterricht
WRINT/WRINT_Realitätsabgleich
WRINT/WRINT_Alle
WRINT/WRINT_Fotografie
WRINT/WRINT_Die_Wrintheit
Klassik
Klassik/SR2-AufnahmeDesMonats
Wissenschaft
Wissenschaft/WRINT_Wissenschaft
Wissenschaft/Raumzeit
Wissenschaft/Minkorrekt
Wissenschaft/Sternengeschichten
Wissenschaft/Resonator
Wissenschaft/Forschung_aktuell
Musik
Musik/DrumAndBassArena
Musik/UKF_Music
Musik/Bassnectar_Transmission
Musik/UKFMusic
Hoerspiele
Hoerspiele/RadioTatort
Hoerspiele/Regentage
Hoerspiele/2080
Alle
Alle/BitsUndSo
Alle/Hoaxilla
Alle/Chaosradio
Favoriten
Favoriten/Logbuch_Netzpolitik
Favoriten/NSFW
Favoriten/SuS
Favoriten/CRE
Favoriten/FreakShow
Favoriten/Alternativlos
Radio
Radio/SR2-Medienwelt
Radio/DieSondersendung
Radio/EinschlafenPodcast
Radio/Mikrodilettanten
Radio/SR2-FragenAnDenAutor
Radio/Glaubenssache
Radio/Dittsche
Radio/Feature-Deutschlandfunk
Radio/SR3_Rundschau_8_Uhr

Weiterverarbeitung

Sind die Podcasts schonmal auf dem Server, kann man sie per Script nach Aktualität sortieren und auf einen MP3 Player syncen. Das habe ich hier dokumentiert.

Kommentare / Diskussion: