Compare commits

...

2 commits

Author SHA1 Message Date
j
194b286e30 fix keys=None 2025-02-06 15:06:27 +00:00
j
ba71665bc5 default to single format, patents have expired. 2025-02-02 11:47:20 +05:30
5 changed files with 6 additions and 6 deletions

View file

@ -485,7 +485,7 @@ class File(models.Model):
'wanted': self.wanted,
}
for key in ('folder', 'filename'):
if key in keys:
if keys and key in keys:
data[key] = getattr(self, key)
if error:
data['error'] = error

View file

@ -1402,7 +1402,7 @@
240, 288, 360, 432, 480, 720 and 1080.
*/
"video": {
"formats": ["webm", "mp4"],
"formats": ["mp4"],
// fixme: this should be named "ratio" or "defaultRatio",
// as it also applies to clip lists (on load)
"previewRatio": 1.7777777778,

View file

@ -1888,7 +1888,7 @@
240, 288, 360, 432, 480, 720 and 1080.
*/
"video": {
"formats": ["webm", "mp4"],
"formats": ["mp4"],
"previewRatio": 1.375,
"resolutions": [240, 480]
}

View file

@ -1392,7 +1392,7 @@
240, 288, 360, 432, 480, 720 and 1080.
*/
"video": {
"formats": ["webm", "mp4"],
"formats": ["mp4"],
"previewRatio": 1.3333333333,
//supported resolutions are
//1080, 720, 480, 432, 360, 288, 240, 144, 96

View file

@ -1281,8 +1281,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
240, 288, 360, 432, 480, 720 and 1080.
*/
"video": {
"downloadFormat": "webm",
"formats": ["webm", "mp4"],
"downloadFormat": "mp4",
"formats": ["mp4"],
"previewRatio": 1.3333333333,
"resolutions": [240, 480]
}