Default playlists ordering by modification date

This commit is contained in:
localhost_frssoft 2022-11-15 03:40:58 +03:00
parent 12a02ab6be
commit 9139e0c78a

View file

@ -130,12 +130,13 @@ def get_channels(page=None, q=None, tag=None, pg=None):
@logger.catch @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''' '''List playlists'''
params = { params = {
'page': page, 'page': page,
'page_size': page_size, 'page_size': page_size,
'q': q 'q': q,
'ordering': ordering
} }
if pg: if pg:
r = s.get(pg) r = s.get(pg)