Comments (12)
Does it work, if you click on the song title?
from mympd.
If i click on the song title it will be added successfully.
from mympd.
Thanks for your confirmation. I think I found the bug
from mympd.
from mympd.
Should now be fixed in devel. Can you test it?
from mympd.
SyntaxError: JSON.parse: unterminated string at line 1 column 133 of the JSON data[Learn More] mympd.min.js:121:1
showMenu/</<
http://192.168.0.206/js/mympd.min.js:121:1
Same error jc...
from mympd.
var cmd = JSON.parse(dh.replace(/'/g, '"'));
If i replace minified with normal js the Web Console indicate this line when i hit "Append to queue".
I do not know if it helps somewhere.
from mympd.
Oh you have another one here:
el.addEventListener('shown.bs.popover', function(event) {
document.getElementsByClassName('popover-content')[0].addEventListener('click', function(event) {
event.preventDefault();
event.stopPropagation();
if (event.target.nodeName == 'A') {
var dh = event.target.getAttribute('data-href');
if (dh) {
**var cmd = JSON.parse(dh.replace(/\'/g, '"'));**
from mympd.
var cmd = JSON.parse(dh);
is here right. But this doesn't fix the bug.
It seems that saving the ouptut of JSON.stringify can't be saved in a data-* attribute in the dom, if it contains ' or " characters in values.
Encoding the output in base64 works. I commited the fix in devel.
from mympd.
Perfect jc
Case closed!
Thank you.
from mympd.
Hi JC,
Is this the same issue?
I tried to add an album with " ' " in title... Sgt. Pepper's - Beatles
from mympd.
Is an another issue, please open a new issue and attach debug logs of myMPD and verbose logs of mpd. If JavaScript errors occurs these also.
from mympd.
Related Issues (20)
- Can't change highlight color HOT 2
- "Last modified" button should show the last modified first HOT 1
- Feat: migrate js from XMLHTTPRequest to fetch() api
- choose ligature - ligatures to choose from are not visible HOT 1
- "Last modified" button should show the last modified first
- Update long-press-event to 2.4.6
- Update bootstrap.native to 5.0.5
- Update Bootstrap 5.3.0-alpha3
- configuration step by step for a newby
- Home icon added from webradios not editable HOT 1
- Volume dropup is not displayed if clicked on button text
- Early crash (v10.3.0) HOT 19
- Remove data-bs-auto-close="outside"
- Integrate tests into a βmake testβ target HOT 1
- Update Mongoose to 7.10
- TypeError messages HOT 12
- Queue list drag & drop: song disappears if drop on itself HOT 1
- Add Pos column to playlist detail view
- Improve mpd error handling
- Word-wrap in album view
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 mympd.