Coder Social home page Coder Social logo

mgoltzsche / mopidy-webm3u Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 23 KB

A Mopidy extension for reading M3U playlists from an HTTP server

License: Apache License 2.0

Dockerfile 5.14% Makefile 23.71% Python 70.94% Shell 0.21%
mopidy mopidy-backend python webm3u m3u m3u-playlist m3u8 m3u8-playlist

mopidy-webm3u's Introduction

Mopidy-WebM3U

Mopidy extension for reading M3U playlists from an HTTP server.

For example it allows you to browse and listen to the playlists within your Beets library that have been generated by Beets' smartplaylist plugin and served by the beets-webm3u plugin (on another machine) within Mopidy.

This extension does not support manipulating playlists.

Installation

Install by running:

sudo pip install Mopidy-WebM3U

Configuration

Before starting Mopidy, you must configure it as follows, enabling the webm3u extension and specifying the URL to the M3U playlist of playlists:

[m3u]
enabled = false
[webm3u]
enabled = true
seed_m3u = http://beets:8337/playlists/index.m3u
uri_scheme = m3u

(Mopidy's built-in m3u extension must be disabled in order to be able to use the m3u URI scheme with the webm3u extension which is required to make playlists show up within the Iris web GUI, see here.)

The playlist of playlists URL specified by the seed_m3u option is expected to return an EXTM3U-formatted list of tagged *.m3u HTTP URLs, e.g.:

#EXTM3U
#EXTINF:0,Playlist 1
http://localhost:8337/playlists/playlist1.m3u
#EXTINF:0,Playlist 2
http://localhost:8337/playlists/playlist2.m3u

Development

First make sure an example M3U playlist of playlists is served at http://localhost:8337/m3u/playlists/index.m3u, e.g. by running the beets-webm3u development server.

Then you can run a mopidy container with the extension installed (including your local changes) as follows (requires docker):

make run

Once Mopidy started, you can browse the playlists within the Iris UI at http://localhost:6680/iris/library/playlists.

mopidy-webm3u's People

Contributors

mgoltzsche 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.