Commit 6ef3b69d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Media: Ensure we use a correct default duration

Using 0 as the default value would cause the VLCMetadataService to
wrongly assume the media was already parsed in case the media gets
loaded from the database (so, if the media isn't parsed during the first
application run)
parent 2ee39a5d
...@@ -323,7 +323,7 @@ bool Media::createTable( DBConnection connection ) ...@@ -323,7 +323,7 @@ bool Media::createTable( DBConnection connection )
std::string req = "CREATE TABLE IF NOT EXISTS " + policy::MediaTable::Name + "(" std::string req = "CREATE TABLE IF NOT EXISTS " + policy::MediaTable::Name + "("
"id_media INTEGER PRIMARY KEY AUTOINCREMENT," "id_media INTEGER PRIMARY KEY AUTOINCREMENT,"
"type INTEGER," "type INTEGER,"
"duration INTEGER," "duration INTEGER DEFAULT -1,"
"play_count UNSIGNED INTEGER," "play_count UNSIGNED INTEGER,"
"show_episode_id UNSIGNED INTEGER," "show_episode_id UNSIGNED INTEGER,"
"mrl TEXT UNIQUE ON CONFLICT FAIL," "mrl TEXT UNIQUE ON CONFLICT FAIL,"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment