forked from 0x2620/pandora
default download format
This commit is contained in:
parent
5ce9d605f7
commit
d403125757
4 changed files with 11 additions and 2 deletions
|
|
@ -149,6 +149,9 @@ def load_config(init=False):
|
|||
key['autocompleteSort'] = get_by_id(default['itemKeys'], 'title')['autocompleteSort']
|
||||
sys.stderr.write("adding default value to itemKeys.title.autocompleteSort:\n\t\"autocompleteSort\": %s,\n\n" % json.dumps(key['autocompleteSort']))
|
||||
|
||||
if 'downloadFormat' not in config['video']:
|
||||
config['video']['downloadFormat'] = default['video']['downloadFormat']
|
||||
|
||||
old_formats = getattr(settings, 'CONFIG', {}).get('video', {}).get('formats', [])
|
||||
formats = config.get('video', {}).get('formats')
|
||||
if set(old_formats) != set(formats):
|
||||
|
|
|
|||
|
|
@ -1252,6 +1252,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"torrent": If true, video downloads are offered via BitTorrent
|
||||
*/
|
||||
"video": {
|
||||
"downloadFormat": "webm",
|
||||
"formats": ["webm", "mp4"],
|
||||
"previewRatio": 1.3333333333,
|
||||
"resolutions": [240, 480],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue