Skip to content

Error on import when people mess with dates #196

Description

@P-EB

Hey,

I found a funny thing importing my music library, some artist put full date in year field.

That made this happen: "Error: SQLSTATE[22P02]: Invalid text representation: 7 ERREUR: syntaxe en entrée invalide pour l'entier : « 2011-04-19 »"

I suggest in parseMetadata, you do something like

$metadata['year'] = strptime(end($file_infos['comments']['year']), "%Y")['tm_year'] + 1900;

In app/Lib/SongManager/SongManager.php

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions