Estimate the duration in seconds of the remote MP3 file without full download(python version)
this repo is from https://github.com/FactorialComplexity/mp3-duration-estimate, I made it to python version.
pip install git+https://github.com/yihong0618/remote_mp3_duration.git
or
pip install remote_mp3_duration
from mp3_duration import get_mp3_duration
print(get_mp3_duration("$mp3_url"))
or cli
# will print the duration of this mp3
mp3_duration https://chrt.fm/track/6AGABB/r.typlog.com/eyJzIjozNTIsImUiOjcxODY5LCJ0IjoxfQ.Ogqkth3_259fCin-j60aIYSXVUk/pythonhunter/8302654647_51408.mp3
- Thank you, that's enough. Just enjoy it.