mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -07:00
Add collectionSort value for custom sort
This commit is contained in:
parent
d4c8066209
commit
962777284a
1 changed files with 4 additions and 3 deletions
|
@ -169,8 +169,8 @@ def get_collections(section_id=None):
|
||||||
'addedAt': helpers.datetime_to_iso(collection.addedAt),
|
'addedAt': helpers.datetime_to_iso(collection.addedAt),
|
||||||
'art': collection.art,
|
'art': collection.art,
|
||||||
'childCount': collection.childCount,
|
'childCount': collection.childCount,
|
||||||
'collectionMode': helpers.cast_to_int(collection_mode),
|
'collectionMode': collection_mode,
|
||||||
'collectionSort': helpers.cast_to_int(collection_sort),
|
'collectionSort': collection_sort,
|
||||||
'contentRating': collection.contentRating,
|
'contentRating': collection.contentRating,
|
||||||
'guid': collection.guid,
|
'guid': collection.guid,
|
||||||
'librarySectionID': collection.librarySectionID,
|
'librarySectionID': collection.librarySectionID,
|
||||||
|
@ -216,7 +216,8 @@ def get_collections_list(section_id=None, **kwargs):
|
||||||
},
|
},
|
||||||
'collectionSort': {
|
'collectionSort': {
|
||||||
0: 'Release date',
|
0: 'Release date',
|
||||||
1: 'Alphabetical'
|
1: 'Alphabetical',
|
||||||
|
2: 'Custom'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue