Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught URIError: URI malformed #22

Closed
Pixeladed opened this issue Oct 14, 2014 · 4 comments
Closed

Uncaught URIError: URI malformed #22

Pixeladed opened this issue Oct 14, 2014 · 4 comments

Comments

@Pixeladed
Copy link

With some files it return this error to the console

Here's one of the file that got the error: http://www.mediafire.com/listen/13evge2b3nw5l1o/Muzzy_Insignia.mp3

@camikazegreen
Copy link

I am having the same issue with an album "Putumayo Presents Acoustic Café"
It is caused by the special character é, and if replaced with a regular e it works fine.

I'm using the minified library, but it is breaking on this line where 'n' is the album title:

if (a) {
            return new Buffer(n).toString()
        } else {
            return decodeURIComponent(escape(n))
        }

The escape is encoding the é as %E9 (Unicode) and the decodeURIComponent only works on UTF-8 characters.

@cqr
Copy link

cqr commented Aug 3, 2015

I saw this with an MP3 that had an image encoded in it, specifically http://traffic.libsyn.com/thefeed/003_thefeed.mp3

What is the purpose of this roundtrip?

@gbiryukov
Copy link

You can use this fork https://github.com/gbiryukov/id3
This error fixed
To use as bower dependency, add to you bower.json dependencies:
"id3": "https://github.com/gbiryukov/id3.git#1.1.4"

@vellaggio
Copy link

Hey, I've fixed this problem by replacing escape function for encodeURIComponent.

So instead of decodeURIComponent(escape(n)) --> decodeURIComponent(encodeURIComponent(n))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants