Skip to content

Script for downloading the lastest Philip Maloney Streams

Notifications You must be signed in to change notification settings

dirtbit/maloney_streamfetcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This script is a fork of tschinz' maloney fetcher: https://github.com/tschinz/maloney_streamfetcher. All credits to him!

Just made the script work again and compatible for Python 2.7.

This Python script lets you download the latest Philip Maloney Episodes from the SRF Website.

Requirements

  • Python 2.7
    • pycurl
    • certifi
  • rtmpdump - For downloading the rtmp stream
  • ffmpeg - For mp3 conversion
  • mid3v2.py - For create the id3 tags

On a Debian based Linux:

sudo apt-get install python pycurl rtmpdump ffmpeg certifi

Features

  • Lets you download all current episodes as MP3
  • Lets you download the last 500 episodes as MP3
  • Lets you download an episode with a known UID as MP3
  • Creates ID3 tags for the episode
  • Checks for duplicated episodes
  • Checks for folders

Usage

python maloney_streamfetcher.py -h

Usage: maloney_streamfetcher.py [options]

Options:
  -h, --help            show this help message and exit
  -a, --all             Download all 500 last Maloney episodes. Does not work
                        for the newest one or two, use -l instead.
  -l, --latest          Download the last 10 Maloney episodes, works also for
                        the newest ones ;-).
  -o OUTDIR, --outdir=OUTDIR
                        Specify directory to store episodes to.
  -u UID, --uid=UID     Download a single episode by providing SRF stream UID.
  -v, --verbose         Enable verbose.
  • Execute script
python maloney_streamfetcher.py -l -o /location/to/musicfiles
  • Use Cronjob for automatically execute the script every Monday at 24:00.
crontab -e
0 * * * 1 python /location/to/maloney_streamfetcher.py -l -o /location/to/musicfiles

Maloney Philip

Versions Log

  • v1.2, only for Python 2.7

    • ADD: if possible try to avoid RTMP, download mp3 via HTTPS instead
    • CHG: updated broken ID3 data source --> fixed URL, using JSON now
    • CHG: SRF forces to use https --> using certifi in curl
  • v1.1

    • ADD: Using Optparse
    • ADD: replace mid3v2 with mid3v2.py
    • CHG: Merged maloney_streamfetcher.py and maloney_streamfetcher_all.py
  • v1.0

    • Initial Release

Thanks

Licensing

This document is under the CC BY-NC-ND 3-0 License, Attribution-NonCommercial-NoDerivs 3.0 Unported. Use this script at your own risc!

The Philip Maloney streams are copyright by Roger Graf. The streams are provided by SRF. It is against the law to distribute the generated mp3 files!

About

Script for downloading the lastest Philip Maloney Streams

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%