Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Importing artists with a & in their name #39

@whachoe

Description

@whachoe

Hi,

When trying to import an album of an artist with '&' in their name (ex: Djihan & Kamien), i get a unique constraint-error from the Artist-model.
I can fix it by changing the following method:

public function setNameAttribute($value)
    {
        $this->attributes['name'] = html_entity_decode($value);
    }

to this:

public function setNameAttribute($value)
    {
        $this->attributes['name'] = $value;
    }

I'm not sure if i should send a PR for this, since you kind of mentioned the html_entity_decode is necessary in some cases. And seems it's only in some rare cases. Might have something to do with a weirdly formatted id3-tag. I'll try to find the file that caused the mayhem and update my report afterwards..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions