diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 4bbd5da1..7423f1f3 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -485,7 +485,7 @@ class File(models.Model): 'wanted': self.wanted, } for key in ('folder', 'filename'): - if keys and key in keys: + if key in keys: data[key] = getattr(self, key) if error: data['error'] = error diff --git a/pandora/config.0xdb.jsonc b/pandora/config.0xdb.jsonc index 0d4b1aae..9170569a 100644 --- a/pandora/config.0xdb.jsonc +++ b/pandora/config.0xdb.jsonc @@ -1402,7 +1402,7 @@ 240, 288, 360, 432, 480, 720 and 1080. */ "video": { - "formats": ["mp4"], + "formats": ["webm", "mp4"], // fixme: this should be named "ratio" or "defaultRatio", // as it also applies to clip lists (on load) "previewRatio": 1.7777777778, diff --git a/pandora/config.indiancinema.jsonc b/pandora/config.indiancinema.jsonc index 9c22a02f..1dae93b4 100644 --- a/pandora/config.indiancinema.jsonc +++ b/pandora/config.indiancinema.jsonc @@ -1888,7 +1888,7 @@ 240, 288, 360, 432, 480, 720 and 1080. */ "video": { - "formats": ["mp4"], + "formats": ["webm", "mp4"], "previewRatio": 1.375, "resolutions": [240, 480] } diff --git a/pandora/config.padma.jsonc b/pandora/config.padma.jsonc index a3e41988..82fe120c 100644 --- a/pandora/config.padma.jsonc +++ b/pandora/config.padma.jsonc @@ -1392,7 +1392,7 @@ 240, 288, 360, 432, 480, 720 and 1080. */ "video": { - "formats": ["mp4"], + "formats": ["webm", "mp4"], "previewRatio": 1.3333333333, //supported resolutions are //1080, 720, 480, 432, 360, 288, 240, 144, 96 diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index b0a64ab4..5f08873f 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -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": "mp4", - "formats": ["mp4"], + "downloadFormat": "webm", + "formats": ["webm", "mp4"], "previewRatio": 1.3333333333, "resolutions": [240, 480] }