From a5e6438c2ae26362db8387f41ed2b3e8f1b5e7e9 Mon Sep 17 00:00:00 2001 From: Rello Date: Sun, 26 Dec 2021 09:09:54 +0100 Subject: [PATCH] 3.2.3 --- CHANGELOG.md | 7 +- README.md | 1 + appinfo/info.xml | 5 +- .../Version3203Date20211226193332.php | 137 ++++++++++++++++++ 4 files changed, 147 insertions(+), 3 deletions(-) create mode 100644 lib/Migration/Version3203Date20211226193332.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 54019484..39dc8e7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,14 @@ # Changelog All notable changes to the Audio Player project will be documented in this file. +## 3.2.3 - 2021-12-26 ### Fixed - Fix Tags view #554 -- remove recognize code #560 +- remove 'recognize' code #560 +- Player did not find any mp3 file #535 + +### Added +- Use the Recognize app to classify genres by machine learning ## 3.2.2 - 2021-09-21 ### Changed diff --git a/README.md b/README.md index cde0c51f..889c3309 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ A music player for FLAC, MP3, MP4, AIF, streams, … with playlist support and S - Specifying media folder (with exclude functionality) - Hardware media keys & Chrome/Android/macOS integration - [SONOS player](https://github.com/rello/audioplayer_sonos) via add-on +- Use the Recognize app to classify genres by machine learning ### Supported Formats FLAC, MP3, MP4, Ogg Vorbis, Opus, AIF, AAC and Waveform Audio as well as M3U and PLS playlist files. Playing the formats supported by Audio Player depends on the browser. [More information…](https://github.com/rello/audioplayer/wiki/audio-files-and-mime-types) diff --git a/appinfo/info.xml b/appinfo/info.xml index 2bfd09db..9836c37e 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -13,9 +13,10 @@ - Specifying media folder (with exclude functionality) - Hardware media keys & Chrome/Android/macOS integration - [SONOS player](https://github.com/rello/audioplayer_sonos) via add-on +- Use the Recognize app to classify genres by machine learning See [README](https://github.com/rello/audioplayer/blob/master/README.md) file for all supported MIME types and additional information.]]> - 3.2.2 + 3.2.3 agpl Marcel Scherello audioplayer @@ -34,7 +35,7 @@ See [README](https://github.com/rello/audioplayer/blob/master/README.md) file fo https://raw.githubusercontent.com/rello/audioplayer/master/screenshots/audioplayer_logo.png https://raw.githubusercontent.com/rello/audioplayer/master/screenshots/audioplayer_screen.png - + OCA\audioplayer\Settings\AdminSection diff --git a/lib/Migration/Version3203Date20211226193332.php b/lib/Migration/Version3203Date20211226193332.php new file mode 100644 index 00000000..6e2d1127 --- /dev/null +++ b/lib/Migration/Version3203Date20211226193332.php @@ -0,0 +1,137 @@ +hasTable('audioplayer_albums')) { + $table = $schema->createTable('audioplayer_albums'); + $table->addColumn('id', 'integer', [ + 'autoincrement' => true, + 'notnull' => true, + 'unsigned' => true, + ]); + $table->addColumn('user_id', 'string', [ + 'notnull' => true, + 'length' => 64, + ]); + $table->addColumn('name', 'string', [ + 'notnull' => false, + 'length' => 256, + ]); + $table->addColumn('year', 'integer', [ + 'notnull' => false, + 'unsigned' => true, + ]); + $table->addColumn('genre_id', 'integer', [ + 'notnull' => false, + ]); + $table->addColumn('cover', 'text', [ + 'notnull' => false, + ]); + $table->addColumn('bgcolor', 'string', [ + 'notnull' => false, + 'length' => 40, + ]); + $table->addColumn('artist_id', 'integer', [ + 'notnull' => false, + ]); + $table->addColumn('folder_id', 'integer', [ + 'notnull' => false, + ]); + $table->setPrimaryKey(['id']); + $table->addIndex(['user_id'], 'albums_user_id_idx'); + $table->addIndex(['id', 'user_id'], 'albums_album_user_idx'); + } else { + $table = $schema->getTable('audioplayer_albums'); + if (!$table->hasColumn('id')) { + $table->addColumn('id', 'integer', [ + 'autoincrement' => true, + 'notnull' => true, + 'unsigned' => true, + ]); + } + if (!$table->hasColumn('user_id')) { + $table->addColumn('user_id', 'string', [ + 'notnull' => true, + 'length' => 64, + ]); + } + if (!$table->hasColumn('name')) { + $table->addColumn('name', 'string', [ + 'notnull' => false, + 'length' => 256, + ]); + } + if (!$table->hasColumn('year')) { + $table->addColumn('year', 'integer', [ + 'notnull' => false, + 'unsigned' => true, + ]); + } + if (!$table->hasColumn('genre_id')) { + $table->addColumn('genre_id', 'integer', [ + 'notnull' => false, + ]); + } + if (!$table->hasColumn('cover')) { + $table->addColumn('cover', 'text', [ + 'notnull' => false, + ]); + } + if (!$table->hasColumn('bgcolor')) { + $table->addColumn('bgcolor', 'string', [ + 'notnull' => false, + 'length' => 40, + ]); + } + if (!$table->hasColumn('artist_id')) { + $table->addColumn('artist_id', 'integer', [ + 'notnull' => false, + ]); + } + if (!$table->hasColumn('folder_id')) { + $table->addColumn('folder_id', 'integer', [ + 'notnull' => false, + ]); + } + } + return $schema; + } + + /** + * @param IOutput $output + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param array $options + */ + public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { + } +} \ No newline at end of file