Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

Strip silence from tracks, fix regression #1

Merged
merged 11 commits into from
Aug 7, 2016

Conversation

tobinus
Copy link
Member

@tobinus tobinus commented Aug 6, 2016

Here's a summary of my changes:

  • Fix regression caused by FMA/CloudFlare blocking requests with urllib2's default User-Agent.
  • Strip silence from the beginning and end of each track (0.3 seconds of silence is left at the end).
  • Create a makefile, which shall be used for running the program (stripping silence is implemented using makefile).
  • Write instructions on how to set up.
  • Make FMAdownloader.py compatible with Python3 (while retaining compatibility with Python2)
  • Include information about progress in FMAdownloader.py.
  • Prompt for API key and create settings.py automatically if it doesn't exist already.

How to upgrade

$ sudo apt-get install sox libsox-fmt-mp3
$ git pull
$ mv tracks/*.mp3 downloaded_tracks
$ make run

If you've added the script to crontab, you'll need to edit the crontab entry to match the new way of running the script (make -C path/to/FMA-playlist run). See the example in README.md.

@boyeln
Copy link

boyeln commented Aug 7, 2016

kult!

@boyeln boyeln merged commit 1af8e28 into studentmediene:master Aug 7, 2016
@tobinus tobinus deleted the strip-silence branch August 7, 2016 13:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants