diff --git a/controllers/Validate.php b/controllers/Validate.php index c834966b..aba07bb6 100644 --- a/controllers/Validate.php +++ b/controllers/Validate.php @@ -3,7 +3,7 @@ * Zookeeper Online * * @author Jim Mason - * @copyright Copyright (C) 1997-2023 Jim Mason + * @copyright Copyright (C) 1997-2024 Jim Mason * @link https://zookeeper.ibinx.com/ * @license GPL-3.0 * @@ -464,7 +464,8 @@ public function validateLibrary() { 'coll' => false, 'tracks' => [ [ - 'track' => 'TEST track 1' + 'track' => 'TEST track 1', + 'duration' => '00:01:23' ],[ 'track' => 'TEST track 2' ] diff --git a/db/zkdbSchema.sql b/db/zkdbSchema.sql index ec251b43..eebdb4e0 100644 --- a/db/zkdbSchema.sql +++ b/db/zkdbSchema.sql @@ -2,7 +2,7 @@ * Zookeeper Online * * @author Jim Mason - * @copyright Copyright (C) 1997-2023 Jim Mason + * @copyright Copyright (C) 1997-2024 Jim Mason * @link https://zookeeper.ibinx.com/ * @license GPL-3.0 * @@ -192,6 +192,7 @@ CREATE TABLE IF NOT EXISTS `colltracknames` ( `artist` varchar(80) DEFAULT NULL, `url` varchar(2083) NOT NULL DEFAULT '', `seq` smallint(6) DEFAULT NULL, + `duration` time DEFAULT NULL, PRIMARY KEY (`id`), KEY `tag` (`tag`), KEY `track` (`track`), @@ -412,6 +413,7 @@ CREATE TABLE IF NOT EXISTS `tracknames` ( `track` varchar(80) DEFAULT NULL, `url` varchar(2083) NOT NULL DEFAULT '', `seq` smallint(6) DEFAULT NULL, + `duration` time DEFAULT NULL, PRIMARY KEY (`id`), KEY `tag` (`tag`), KEY `track` (`track`),