diff --git a/mediadb.php b/mediadb.php index 2b3476a..a9cf186 100644 --- a/mediadb.php +++ b/mediadb.php @@ -35,7 +35,7 @@ class MediaDB $line = $item->getHash() . ' ' . implode(' ', $item->getTags()); - if (fwrite($file, $line) == false) + if (fwrite($file, $line . "\n") == false) Json::error('Write operation failed on Item adding')->die(); fclose($file);