Coder Social home page Coder Social logo

castixgithub / m3u_maker Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 3.0 26 KB

Finds music files inside source folders recursively, makes a m3u file without metadata

License: GNU General Public License v3.0

Python 100.00%
m3u8 m3u8-playlist playlist-generator

m3u_maker's Introduction

m3u maker

Installation

This script doesn't have any dependencies except from python, so install python3.6+ before. python2 is not supported

with pip

pip install m3u-maker
m3u-maker ~/Music > out.m3u

available aliases

the best way to run is directly with: python -m m3u_maker

but the following aliases are available m3u-maker, mkm3u, mkm3u8

manual

git clone https://github.com/CastixGitHub/m3u_maker
cd m3u_maker
python m3u_maker.py ~/Music > out.m3u

Help menu

usage: 'm3u_maker [-h] [sources [sources ...]]

    Finds music files by extension (flac, ogg, oga, wav, mp3,
    aiff, aif, loss, m4a, aac, alac, mogg, opus. webm, mp4, wma, mpc)
    inside a folders and it's subdirectories, makes a m3u file
    without metadata
    

positional arguments:
  sources     
              Source directories that contains the music
              (subdirectories are included).
              We suggest to use an absolute path for better
              compatibility with players.
              If you want to use relative paths remember that them
              are relative to the location of the output m3u file.
              Defaults to the directory where the script is called
              from (`pwd`).

optional arguments:
  -h, --help  show this help message and exit

    Example Usage:
    python m3u_maker.py ~/Music > out.m3u
    Example with random order without duplicates:
    python m3u_maker.py ~/Music | uniq | shuf > out.m3u

Testing & Development

after activating a virtualenv:

install the project with

pip install -e '.[test]'

run the tests with

pytest --cov=.

release a new version on pypi

  1. update the version number in setup.py
  2. clean the old built rm -rf dist
  3. build tarball and wheel with python setup.py sdist bdist_wheel
  4. install twine pip install twine
  5. push repository git push
  6. upload with twine upload dist/m3u_maker-*

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.