xi / xspf2m3u Goto Github PK
View Code? Open in Web Editor NEWsimple XSPF to M3U conversion
simple XSPF to M3U conversion
Hello the output is just the list of the files, it is in fact not in the m3u format which is more complicated
With a xspf like:
<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1">
<title>Playlist</title>
<trackList>
<track>
<location>https://www.youmaker.com/v/2GJoyNg88o76</location>
<title>China Light Parade in Strasbourg during the 2022 Christmas Market</title>
<creator>sos-productions.com</creator>
<info>http://media.sos-productions.com/20221210-parade-of-the-light-of-china-strasbourg/</info>
<image>https://i0.wp.com/media.sos-productions.com/wp-content/uploads/2022/10/SoS-20221102-Poster-parade-Stras_A3-V5_en-scaled.jpg</image>
<duration>686000</duration>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>0</vlc:id>
</extension>
</track>
</trackList>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:item tid="0"/>
</extension>
</playlist>
after setting /usr/bin/python3 in to of the xspf2m3u.py to avoid confusion with python2.x,
it should return instead of simply https://www.youmaker.com/v/2GJoyNg88o76 this:
#EXTM3U
#EXTINF:686,China Light Parade in Strasbourg during the 2022 Christmas Market,logo=https://i0.wp.com/media.sos-productions.com/wp-content/uploads/2022/10/SoS-20221102-Poster-parade-Stras_A3-V5_en-scaled.jpg
https://www.youmaker.com/v/2GJoyNg88o76
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.