Skip to content

Commit

Permalink
Decrease the default size of the smart playlist to 100 entries
Browse files Browse the repository at this point in the history
  • Loading branch information
paulijar committed Aug 26, 2023
1 parent eef55d4 commit d3d5ffa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
### Changed
- Own UI settings storage for each OC/NC instance running on the same server (same HTTP origin). Previously, all instances of the origin shared the settings.
* As a side-effect, any UI settings (like volume, view modes) from the previous version get discarded upon the SW update
* Also, volume settings in the Share and Files embedded players are now distint from the volume in the main app
* Also, volume settings in the Share and Files embedded players are now distinct from the volume in the main app
- Small optimization on the size of the `collection.json` loaded by the web front-end
- Order the playlists by name in the navigation pane, navigate automatically to the created or renamed playlist
[#1083](https://github.com/owncloud/music/issues/1083)
Expand Down
2 changes: 1 addition & 1 deletion js/app/controllers/sidebar/smartlistfilterscontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ angular.module('Music').controller('SmartListFiltersController', [
$scope.artists = OCA.Music.Storage.get('smartlist_artists')?.split(',') || [];
$scope.fromYear = parseInt(OCA.Music.Storage.get('smartlist_from_year')) || '';
$scope.toYear = parseInt(OCA.Music.Storage.get('smartlist_to_year')) || '';
$scope.listSize = parseInt(OCA.Music.Storage.get('smartlist_size') || 300);
$scope.listSize = parseInt(OCA.Music.Storage.get('smartlist_size') || 100);

$scope.fieldsValid = allFieldsValid();

Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/PlaylistApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private function toFullTree($playlist) {
* @NoAdminRequired
* @NoCSRFRequired
*/
public function generate(?string $playRate, ?string $genres, ?string $artists, ?int $fromYear, ?int $toYear, int $size=300) {
public function generate(?string $playRate, ?string $genres, ?string $artists, ?int $fromYear, ?int $toYear, int $size=100) {
$playlist = $this->playlistBusinessLayer->generate(
$playRate, self::toIntArray($genres), self::toIntArray($artists), $fromYear, $toYear, $size, $this->userId);
return $playlist->toAPI();
Expand Down

0 comments on commit d3d5ffa

Please sign in to comment.