GithubHelp home page GithubHelp logo

xspf-playlister-py's Introduction

Warning

This project is unmaintained.

xspf-playlister-py

Media files -> .xspf playlists

Generate an XSPF playlist file for audio and video files using Python 2. Use it on the command line once or as a dead-simple way to keep a playlist on the internet up to date.

A PHP implementation of the XSPF Playlist Generator ported here: https://github.com/lacymorrow/xspf-playlister-php

Created for: lacymorrow/xspf-jukebox.

Usage

python playlister.py /absolute/path/to/media/ > playlist.xspf

Place all of your media files into a folder called media. Copy playlister.py and the hsaudiotag directory to the same location as the media directory. Run playlister.py to generate and print your XSPF file. That's it!

Supports mp3, wav, and ogg audio and mp4, webm, and ogv video formats. If two files of different types share a filename, they will be interpreted as two sources for the same track. Tracks will be titled by their filename sans extension. Additional creator and album information can be provided by organizing your files into a media/creator/album/file hierarchy. An image may be associated with a track by giving it the same filename. To associate one image with an entire folder of tracks, give it the filename artwork. artwork images associate themselves to every sibling and child directory and may be placed anywhere in your media directory hierarchy, so an artwork.jpg in the media directory will act as a global image, filling in for every track that did not already have one provided.

By default, the hsaudiotag library is used to scan mp3 files and will automatically use the meta information associated with a track, rather than the menu directory hierarchy.

File Types

Supports mp3, wav, and ogg audio and mp4, webm, and ogv video formats.

If two video files of different types share a filename, they will be interpreted as two sources for the same track.

Tracks will be titled by their filename without a file extension. Additional creator and album information can be provided by organizing your files into a media/creator/album/file hierarchy.

An image may be associated with a track by giving it the same filename. To associate one image with an entire folder of tracks, give it the filename artwork. artwork images associate themselves to every sibling and child directory and may be placed anywhere in your media directory hierarchy, so an artwork.jpg in the media directory will act as a global image, filling in for every track that did not already have one provided.

License

MIT © Lacy Morrow

xspf-playlister-py's People

Contributors

lacymorrow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

coribald

xspf-playlister-py's Issues

hsaudiotag Error with Python 3.5

When running under python 3.5 I receive an error on line 18 of hsaudiotag/mp4.py

re_atom_type = re.compile(ur'[A-Za-z0-9\-©]{4}')

saying:
SyntaxError: invalid syntax

it points to the last ' in the line.

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.