Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xi/xspf2m3u
simple XSPF to M3U conversion
https://github.com/xi/xspf2m3u
xspf
Last synced: about 1 month ago
JSON representation
simple XSPF to M3U conversion
- Host: GitHub
- URL: https://github.com/xi/xspf2m3u
- Owner: xi
- Created: 2018-09-12T13:09:36.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-02T07:20:07.000Z (almost 2 years ago)
- Last Synced: 2023-04-03T10:34:24.178Z (almost 2 years ago)
- Topics: xspf
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
xspf2m3u - simple XSPF to M3U conversion
Playlists tend to break whenever you reorder your music collection. The
`XSPF `_ format allows to specify songs by
metadata rather than file location, so it theoretically solves that problem.
Unfortnately, most audio players do not support that format.This script allows to convert XSPF to M3U by finding file locations that match
the given metadata. It is *not* a full content resolver. In fact, it is rather
dumb. It uses the following strategies:- If the input file specifies a location, use that.
- If the path of a file on the local computer looks like it could match, use
that.
- If youtube-dl is installed, use it to search youtube. The resulting URL
will expire after 6 hours.Usage::
xspf2m3u input.xspf /my/music > output.m3u