This content originally appeared on DEV Community and was authored by Muhammad Yasser
dur-cli is a CLI tool that helps you show total duration of media files on your computer, and also YouTube playlist duration.
first, install it using NPM:
npm i -g dur-cli
second, cd into any folder and run:
dur
view YouTube playlist duration:
dur --pl PLAYLIST_ID_OR_URL
but first, have your own Google API key by following this very short tutorial here: https://youtu.be/Jl9Nitf8PJs
to view all options, type
dur -h
For a live demo, watch this video https://youtu.be/JKXq7reTbAM
Try it and give your feedback. Have happy times!!
Source code: https://github.com/roktcode/duration-cli
This content originally appeared on DEV Community and was authored by Muhammad Yasser
Muhammad Yasser | Sciencx (2021-09-19T01:07:37+00:00) get YouTube playlist & media files duration easily. Retrieved from https://www.scien.cx/2021/09/19/get-youtube-playlist-media-files-duration-easily/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.