1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00

Add ability to sort videos by file size

This commit is contained in:
Chocobozzz 2024-03-08 15:15:03 +01:00
parent b080ccc3ee
commit 4596ec2a9f
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 55 additions and 8 deletions

View file

@ -110,7 +110,19 @@ const SORTABLE_COLUMNS = {
RUNNER_REGISTRATION_TOKENS: [ 'createdAt' ],
RUNNER_JOBS: [ 'updatedAt', 'createdAt', 'priority', 'state', 'progress' ],
VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'trending', 'hot', 'best' ],
VIDEOS: [
'name',
'duration',
'createdAt',
'publishedAt',
'originallyPublishedAt',
'views',
'likes',
'trending',
'hot',
'best',
'localVideoFilesSize'
],
// Don't forget to update peertube-search-index with the same values
VIDEOS_SEARCH: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'match' ],