GithubHelp home page GithubHelp logo

sovaa / musync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from udoprog/musync

0.0 1.0 0.0 219 KB

Music Syncronizing Tool

License: GNU General Public License v3.0

Python 95.35% Shell 1.94% sed 2.71%

musync's Introduction

About Musync

Musync is a music organizer which sorts music files, from the commandline, to where you want them to be.

It was conceptuated by Albin Stjerna, and mostly implemented by John-John Tedro.

Musync is highly customizable using it's configuration files, which relies heavily on python's 'eval' to do it's dirty work, but by default it is highly efficient in doing the following:

  • Add your music in a nice filestructure which is compatible with unix naming conventions (only ascii letters).
  • Clean any 'ugly letters' into a ascii-readable alternative. Like 'e' with an acute diacritic (é) to ascii 'e'.

Therefore, even if you listen to french, german or russian artists. You will still be able to browse your music archive with ease from a shell.

Configuration

As mentioned, musync is highly customizable. The only work that musync performs for you, is automatic iteration of directories, identification of files containing metadata, and performing an event chain.

The event chain for the action 'add' could look like the following:

  • scan for files
  • filter files with readable metadata and calculate 'dest' using 'targetpath'
  • perform 'add' on each file
  • *perform 'checkhash' on 'src' and 'dest', if the return value of chechhash does not match, try to add again or fail after a couple of times.

Each of the methods, 'add'. 'checkhash' and 'targetpath' are defined using configuration, and most of them use one or more methods from the musync.custom namespace.

To see the source code of these methods (if you want inspiration for your own), see musync/custom.py for inspiration.

Installation

Musync requirements

Installation

Execute the normal python install command (as root):

sudo python setup.py

Copy the following files to /etc

sudo cp share/musync.rules share/musync.conf /etc/

Taking it for a spin

Modify the following line to fit your needs:

root:"/path/to/sorted/music"

Now try it out:

musync inspect music.mp3

If what you see is satisfactory, do:

musync add music.mp3

Which will add the music to your library.

Profit!

To find out more, type:

musync help

musync's People

Contributors

sovaa avatar udoprog avatar

Watchers

 avatar

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.