Make M3U format playlist from command line
Project description
mkpl
: Make playlist
mkpl
is a command line tool for create playlist file (M3U format).
Installation
To install mkpl
, see here:
$ pip install make_playlist # for python enviroment
$ dnf copr enable matteoguadrini/mkpl
$ dnf install python-make_playlist -y # for Red Hat, CentOS, Mageia and fedora
$ git clone https://github.com/MatteoGuadrini/mkpl.git && cd mkpl
$ python setup.py install # for others
Command arguments
mkpl
have many command line arguments. They are explained in this table:
short | long | description | args |
---|---|---|---|
-d | --directories | Directories that contains multimedia file | Path of directories |
-e | --exclude-dirs | Exclude directory paths | Path of directories |
-i | --include | Include other file format | Format of file. ex. mp3 |
-p | --pattern | Regular expression inclusion pattern | Regular expression string |
-f | --format | Select only a file format | Format of file. ex. mp3 |
-s | --size | Start size in bytes | Bytes number |
-m | --max-tracks | Maximum number of tracks | Number |
-t | --title | Playlist title | Title string |
-g | --encoding | Text encoding | UTF-8,ASCII,UNICODE |
-I | --image | Playlist image | Image path |
-l | --link | Add remote file links | Links |
-r | --recursive | Recursive search | |
-a | --absolute | Absolute file name | |
-s | --shuffle | Casual order | |
-u | --unique | The same files are not placed in the playlist | |
-c | --append | Continue playlist instead of override it |
Examples
-
Create a playlist for one music album:
cd myalbum mkpl myalbum.m3u
-
Create a playlist of a film saga
mkpl -d HarryPotter -f mkv HP_saga.m3u
-
Create a shuffled playlist with my music collection
mkpl -d "my_mp3_collection" "my_mp4_collection" -rs "my music.m3u"
-
Create a shuffled playlist with my music collection and exclude dirs
mkpl -d "my_mp3_collection" "my_mp4_collection" -r -s -e "my_mp3_collection/metallica" "my_mp3_collection/dk" "my music.m3u"
-
Create a TV series playlist with max 15 tracks
mkpl -d "my_series/GOT" -m 15 "got_first_15.m3u"
-
Add into my music playlist new songs and don't add same file
mkpl -d "new_collection" -rsu "my music.m3u" -a
-
Create playlist with music and video files if files is greater then 10MB
mkpl -d "my_files" -r -z 10485760 "multimedia.m3u"
-
Create playlist with only number one and two tracks wit regular expression
mkpl -d "my_mp3_collection" -r -p "^[12]|[012]{2}" "my music.m3u"
-
Create a playlist for one music album and set the title:
cd myalbum mkpl myalbum.m3u -t "My Album"
-
Create a playlist and add UTF-8 encoding
mkpl -d "new_collection" -r "my music.m3u" -g "UTF-8"
-
Create a playlist and set image
mkpl -d "new_collection" -r "my music.m3u" -I "new_collection/playlist_cover.jpg"
-
Create a playlist and add remote file links
mkpl -d "new_collection" -r "my music.m3u" -l http://192.168.1.123/mp3/song1.mp3, http://192.168.1.123/mp3/song2.mp4
Open source
mkpl is an open source project. Any contribute, It's welcome.
A great thanks.
For donations, press this
For me
For Telethon
The Telethon Foundation is a non-profit organization recognized by the Ministry of University and Scientific and Technological Research. They were born in 1990 to respond to the appeal of patients suffering from rare diseases. Come today, we are organized to dare to listen to them and answers, every day of the year.
Treeware
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
Acknowledgments
Thanks to Mark Lutz for writing the Learning Python and Programming Python books that make up my python foundation.
Thanks to Kenneth Reitz and Tanya Schlusser for writing the The Hitchhiker’s Guide to Python books.
Thanks to Dane Hillard for writing the Practices of the Python Pro books.
Special thanks go to my wife, who understood the hours of absence for this development. Thanks to my children, for the daily inspiration they give me and to make me realize, that life must be simple.
Thanks Python!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for make_playlist-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaa20b49d3e55a2e0629d46fae0fe6c9904f3c96ff2ac42c4ca518b84e3b15b9 |
|
MD5 | ea207a5b14f2ea53567aa31ac66fe95e |
|
BLAKE2b-256 | 9d3e181cc7b21f320a70e1d365f3eab30cb31576b8c63e4e324798ec42b77be0 |