Giter VIP home page Giter VIP logo

exportplaylists's Introduction

Export music library to playlists

Export banshee music libraries to individual playlists.

Maintaining music in a music library progamm like banshee comes with many benefits. However, the great disadvantage is that playing, finding and maintaining the music will always be tied to the program when starting to do it. The music library is not easily shared across computers, let alone compatible across platforms or mobile devices that cannot be synched by the music library program.

One prominent issue with banshee is that it does not allow batch export of playlists. Once starting to use banshee, playlists cannot be shared easily. banshee stores its music library in a SQL database. This script reads the database and exports the contained playlists in individual playlist files compatible with almost any media player.

Note: The script was written with banshee in mind. Nevertheless, there is no restriction on only exporting banshee libraries. I am not aware whether banshee uses a music-library-typical structure for SQL database. This script might very well work with other music libraries as well. This is not tested.

Requirements

Usage

  1. Clone or download this repository.
  2. Start the terminal and navigate to the script.
  3. You may have to set the script to executable.
$ chmod +x exportPlaylists.py

Running the script with the default settings is straight forward.

$ ./exportPlaylists.py

The help command shows available options for advanced usage

$ ./exportPlaylists.py --help
usage: exportPlaylists.py [-h] [-db DATABASE] [-outdir FILEPATH]
                          [-postfix POSTFIX] [-ext EXTENSION] [-clearDir]
                          [-keepDuplicates] [-order {pos,id,path}]

Export playlists from database

optional arguments:
  -h, --help            show this help message and exit
  -db DATABASE          path to music library (SQL database) (default:
                        '~/.config/banshee-1/banshee.db')
  -outdir FILEPATH      target directory in which to place playlists (default:
                        '~/playlists/')
  -postfix POSTFIX      append custom postfix to all playlist names (default:
                        '')
  -ext EXTENSION        playlist file extension (default: 'm3u')
  -clearDir             clear target directory before inserting playlists
  -keepDuplicates       keep duplicate song in playlists
  -order {pos,id,path}  sort playlists by 'order'. Leave out to disable
                        sorting

exportplaylists's People

Contributors

szapp avatar

Watchers

 avatar  avatar  avatar

Forkers

rsgca

exportplaylists's Issues

ERROR: Library ID was not found.

Hi szapp! Attempting to run ./exportPlaylists.py returns the error "Library ID was not found."

I can see this is from the getLibID() function. What's the best way for me to begin troubleshooting this error?

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.