Code Monkey home page Code Monkey logo

mpd-album-shuffle's Introduction

MPD Album Shuffling

Small program to randomly play and sort albums in the mpd playlist, for people who want to shuffle whole albums and not songs. Uses the MPD_HOST environment variable if it exits. Also accepts host, port and password as command-line parameters.

Usage

To sort the albums randomly.

$ mpd-album-shuffle sort

To play a random album:

$ mpd-album-shuffle play

Help output

usage: mpd-album-shuffle [-h] [-v] [-vv] [-p PORT] [-H HOST] [-P PASSWORD]
                         {play,sort}

Randomly play or sort the albums in the current mpd playlist

positional arguments:
  {play,sort}

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         increase verbosity of output
  -vv                   turn on debug output (really really verbose)
  -p PORT, --port PORT  the port to connect to
  -H HOST, --host HOST  the hostname to connect to
  -P PASSWORD, --password PASSWORD
                        the password

Install

You can install with pip from github:

$ pip install git+https://github.com/f0rki/mpd-album-shuffle.git

mpd-album-shuffle's People

Contributors

f0rki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mpd-album-shuffle's Issues

No longer works

not sure when it stopped working but now when I run
python mpd-album-shuffle.py sort
I get this error:

Traceback (most recent call last):
  File "mpd-album-shuffle.py", line 240, in <module>
    sys.exit(main())
  File "mpd-album-shuffle.py", line 226, in main
    al = AlbumList(client)
  File "mpd-album-shuffle.py", line 79, in __init__
    self.refresh()
  File "mpd-album-shuffle.py", line 89, in refresh
    self.albums.add(song["album"])
TypeError: unhashable type: 'list'

add to pypi

Would you consider adding this to pypi for easier installation?

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.