Skip to content

Create random playlists with your music collection

License

Notifications You must be signed in to change notification settings

perryflynn/hoffmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This cmd script creates small random playlists of your music collection.

Installation

You need composer to install dependencies.

git clone https://github.com/perryflynn/hoffmanager.git
cd hoffmanager
php composer.phar install

Configuration

Copy the config_example.yml to config.yml.

  • musicsources: A list of all your music directories
  • cachefile: Location of the generated cache file
  • playlist: Location of the generated playlist
  • playlistcount: Number of tracks in the generated playlist
  • extensions: Valid file extensions for music files

Basic usage

  • php -f cmd.php scan: Refresh the cache
  • php -f cmd.php mkplaylist: Generate a new playlist

Use with VLC

I've created a small bash script that starts VLC after created a new playlist:

#!/bin/bash

# loop endless
while true; do

    # create a new playlist
    php -f ~/hoffmanager/cmd.php mkplaylist

    # open vlc with the generated playlist
    # enable http interface of vlc
    # no looping
    # no random playback
    # no repeating
    # exit after playlist playback
    # start playlist playback automatic
    vlc ~/current.m3u \
        --extraintf http \
        --http-host 127.0.0.1 \
        --http-port 8086 \
        --http-password verysecretpassword \
        --no-loop \
        --no-random \
        --no-repeat \
        --play-and-exit \
        --playlist-autostart

done

Used software

About

Create random playlists with your music collection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages