Code Monkey home page Code Monkey logo

playlist.py's Introduction

#playlist.py

A little program to launch music randomly choosen in a directory.

The main purpose is to play music in a DB without using any DB system such as Itunes or Clementine. But, the only thing you can do is to play an album randomly. I also wanted to keep track of albums that I had already played, so I can listen to something different everytime.

##Prerequisites

  1. Only work with python3
  2. Ensure that your music folder is in the form folder/artists/albums/music.xxx

##Install

  1. launch ./install.py, the install script will ask you to choose the path to your music, a folder to keep the log file and the name of the program used to play music. Note that the program have only been tested on Linux, with gnome-mpv and vlc. It may not work with terminal music players such as ncmpcpp because playlist.py use subprocess to launch the player, which let playlist.py be the main command on the terminal (it may be fixed later). an example of config file:
    config = {
     "bdd":"/home/samuel/Documents/Music",
     "log":"/home/samuel/.config/playlist/playlist.log",
     "player":"gnome-mpv"
    }
    
  2. launch ./playlist.py with or without options.
  3. Enjoy!

##Usage

  • -n, dont keep track of albums already played
  • -l, loop through albums without confirm

##Todo

  • Caching system
  • Check filetypes to only play music
  • Add terminal player support

playlist.py's People

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.