1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Allow to specify weight for collection (matters only as last resort for sorting results)

This commit is contained in:
Anton Romanov
2016-11-30 12:13:50 -08:00
parent 584aa76582
commit 6910e5dd3b
3 changed files with 6 additions and 1 deletions

View File

@@ -1766,6 +1766,9 @@ Tomahawk.Collection = {
this.settings.capabilities = [Tomahawk.Collection.BrowseCapability.Artists,
Tomahawk.Collection.BrowseCapability.Albums,
Tomahawk.Collection.BrowseCapability.Tracks];
if (!this.settings.weight && this.resolver.settings.weight) {
this.settings.weight = this.resolver.settings.weight;
}
return this.settings;
},