451
451
void MediaStorePrivate::insert(const MediaFile &m) const {
453
453
throw runtime_error("MediaStorePrivate::insert() is not available in read only mode");
455
455
Statement query(db, "INSERT OR REPLACE INTO media (filename, content_type, etag, title, date, artist, album, album_artist, genre, disc_number, track_number, duration, width, height, latitude, longitude, has_thumbnail, type) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");