Skip to content

Commit

Permalink
3.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Dec 26, 2021
1 parent 5126cd9 commit a5e6438
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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.]]></description>
<version>3.2.2</version>
<version>3.2.3</version>
<licence>agpl</licence>
<author>Marcel Scherello</author>
<namespace>audioplayer</namespace>
Expand All @@ -34,7 +35,7 @@ See [README](https://github.com/rello/audioplayer/blob/master/README.md) file fo
<screenshot>https://raw.githubusercontent.com/rello/audioplayer/master/screenshots/audioplayer_logo.png</screenshot>
<screenshot>https://raw.githubusercontent.com/rello/audioplayer/master/screenshots/audioplayer_screen.png</screenshot>
<dependencies>
<nextcloud min-version="21" max-version="23"/>
<nextcloud min-version="21" max-version="25"/>
</dependencies>
<settings>
<admin-section>OCA\audioplayer\Settings\AdminSection</admin-section>
Expand Down
137 changes: 137 additions & 0 deletions lib/Migration/Version3203Date20211226193332.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<?php

declare(strict_types=1);

namespace OCA\audioplayer\Migration;

use Closure;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;

/**
* Auto-generated migration step: Please modify to your needs!
*/
class Version3203Date20211226193332 extends SimpleMigrationStep {

/**
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
*/
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
}

/**
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
* @return null|ISchemaWrapper
*/
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();

if (!$schema->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) {
}
}

0 comments on commit a5e6438

Please sign in to comment.