mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-23 09:13:32 +02:00
Default playlists ordering by modification date
This commit is contained in:
parent
12a02ab6be
commit
9139e0c78a
1 changed files with 3 additions and 2 deletions
|
@ -130,12 +130,13 @@ def get_channels(page=None, q=None, tag=None, pg=None):
|
|||
|
||||
|
||||
@logger.catch
|
||||
def get_playlists(page=None, page_size=None, q=None, pg=None):
|
||||
def get_playlists(page=None, page_size=None, q=None, ordering='-modification_date', pg=None):
|
||||
'''List playlists'''
|
||||
params = {
|
||||
'page': page,
|
||||
'page_size': page_size,
|
||||
'q': q
|
||||
'q': q,
|
||||
'ordering': ordering
|
||||
}
|
||||
if pg:
|
||||
r = s.get(pg)
|
||||
|
|
Loading…
Reference in a new issue