Comments (3)
There's nothing "intelligent" about it. If MPD unescapes all %20 to a space, what happens with a file whose name really contains a "%20"? This potentially breaks existing playlists. Can you point me to the M3u specification which defines the escaping rules for the URIs contained therein?
from mpd.
For the URI case, the URI spec exists and defines percent encoding should be used and what to do for literal '%' characters. So if you know it's a URI then it's clear what to do.
The problem is, as Max knows, the M3U spec doesn't exist. Don't waste your time looking. You might consider RFC 8216 to be the closest thing but just using that would break some existing playlists. This is because M3U parsers generally support both URIs and bare file paths, but it's not trivial (or maybe even possible on some platforms?) to identify which you have. I think you could do something pretty sensible in most cases but maybe it's too complex.
Arguably mpd could have a "strict RFC 8216" option when parsing M3U files and treat everything as URIs. Alternatively you could post-process your M3U files but unless you can automate that it doesn't seem like a good solution.
from mpd.
Understood the spec isn't going to help. To brainstorm:
- Could MPD try both interpretations, and use the one that resolves to a real file? Or both if it resolves to 2 files (which would be weird but possible I guess).
- Could the user specify how to interpret it?
from mpd.
Related Issues (20)
- Modify audio output device system/master volume on Windows HOT 3
- CPU spike, API unresponsive after samba folder deletion / library update HOT 6
- DSD Native not working HOT 8
- Question: is there a MaxFileSize in MPD? HOT 1
- NetEase cloud music(V9.0.60.201911) upnp push mpd+upmpdcli tear sound HOT 1
- musicpd.org HTTPS certificate is expired HOT 1
- mpd 0.24 (0.23.15) will not play via icecast as a drop-in replacement f/0.23.14 - mpd hangs until SIGTERM HOT 1
- Add commands to protocol to align with Mpc's Capabilities HOT 19
- NetEase cloud music upnp mpd+upmpdcli tear sound HOT 6
- MPD satellite mode with NFSv4 does not work HOT 1
- [Feature request] Satellite mode with NFSv4 HOT 7
- Satellite mode with NFSv3 server and "version=4" argument results in crash
- Satellite mode with NFSv4 server results in infinite loop HOT 5
- build: --prefix install location HOT 3
- Ubuntu 24.04 mpd: error while loading shared libraries: libfmt.so.8: cannot open shared object file: No such file or directory HOT 10
- mp3 files are played completely noisy HOT 2
- Crossfade noise on line out with FLAC files HOT 2
- openwrt安装mpd和upmpdcli,重启后不能运行 HOT 1
- When unpausing, there is a 1 second delay before audio resumes with fifo visualizer HOT 2
- Support CD De-emphasis HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpd.