It only works when connected to the wifi of the Deutsche Bahn (i.e. WIFIonICE
/ WIFI@DB
), České dráhy (i.e. CDWiFi
) or ÖBB.
Make sure that you're signed in first (i.e. by visiting https://login.wifionice.de or https://wifi.bahn.de or whatever portal you have).
This is a small script that downloads all offered audiobooks and magazines from the train media portals.
Original implementation by SirBenedick. This fork uses properly tagged audio files and covers and can also download newspapers and magazines.
This is just meant to help you download the content for offline use if you have a connections where you have to switch trains and you want to avoid re-starting the media playing. Please respect the rights of the authors and publishers and don't distribute the downloaded content.
Also please delete the media files when you stop travelling with the ICE.
You might need these packages installed:
# Debian / Ubuntu
sudo apt install build-essential libssl-dev zlib1g-dev
# Fedora
sudo dnf install openssl-devel zlib-devel gcc gcc-c++ make libyaml-devel ruby-devel
- Ensure you have Ruby installed (I usually recommend
rbenv
but any Ruby installation should do) git clone 'git@github.com:alexanderadam/iceportal-audiobooks-downloader.git'
cd iceportal-audiobooks-downloader
bundle install
bundle exec ruby main.rb
- enjoy