Commit 8296a091 authored by Eliot Berriot's avatar Eliot Berriot

Updated readme

parent cfc3f637
Collections of scripts to mirror public audio content and embed proper metadata for upload on your Funkwhale pod.
## Download a playlist with Youtube-DL as ogg files
```sh
pip3 install --user -U youtube-dl
PLAYLIST_URL="http://youtube…"
# Download the first 5 elements of the playlist
PLAYLIST_ITEMS="1-5"
youtube-dl -vv -x --audio-format vorbis --audio-quality 0 --youtube-skip-dash-manifest -ciw -o "%(upload_date)s - %(title)s.%(ext)s" "$PLAYLIST_URL" --playlist-items "$PLAYLIST_ITEMS"
```
## Update metadata on downloaded files with Mutagen
```sh
pip3 install --user mutagen
python3 update-metadata.py *.ogg --album="My Album" --artist="My Artist" --strip-suffix="- Channel suffix" --tags='{"musicbrainz_id": "uuid", "genre": "Rock, Folk", "License": "CC-BY-SA"}'
```
At this point, your files are tagged properly :)
## Mirror a podcast via a RSS feed
......@@ -62,3 +40,26 @@ crontab -e
# Check new entries every three hours
0 */3 * * * /home/youruser/sync-podcasts.py /home/youruser/.env
```
## Download a playlist with Youtube-DL as ogg files
```sh
pip3 install --user -U youtube-dl
PLAYLIST_URL="http://youtube…"
# Download the first 5 elements of the playlist
PLAYLIST_ITEMS="1-5"
youtube-dl -vv -x --audio-format vorbis --audio-quality 0 --youtube-skip-dash-manifest -ciw -o "%(upload_date)s - %(title)s.%(ext)s" "$PLAYLIST_URL" --playlist-items "$PLAYLIST_ITEMS"
```
### Update metadata on downloaded files with Mutagen
```sh
pip3 install --user mutagen
python3 update-metadata.py *.ogg --album="My Album" --artist="My Artist" --strip-suffix="- Channel suffix" --tags='{"musicbrainz_id": "uuid", "genre": "Rock, Folk", "License": "CC-BY-SA"}'
```
At this point, your files are tagged properly and can be uploaded on Funkwhale :)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment