|
2 years ago | |
---|---|---|
archiveorg_dl | 2 years ago | |
README.md | 2 years ago | |
setup.cfg | 2 years ago | |
setup.py | 2 years ago |
An archive.org dowloader using python and async for maximum performance.
archiveorg-dl requires python >= 3.6 to work:
pip install git+https://dev.funkwhale.audio/funkwhale/archiveorg-dl.git
# print help
archiveorg-dl --help
# download all original mp3 and ogg files from the freemusicarchive collection to /destination
archiveorg-dl download "collection:freemusicarchive AND mediatype:audio" /destination --original -e mp3 -e ogg
The download
command query argument is passed directly to archive.org. Refer
to the corresponding documentation to craft your own queries.
This CLI was initially written to mirror the Free Music Archive collection. If you want to do that, we recommend adding “jpg” to the list of downloaded extensions, to ensure you have album covers:
archiveorg-dl download "collection:freemusicarchive AND mediatype:audio" /destination --original -e mp3 -e ogg -e jpg
You can run the following command afterward to ensure all covers are named cover.jpg
:
find data/music/ -iname "*.jpg" -execdir cp \{} cover.jpg \;