diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index fc841b72..45d013d6 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -61,6 +61,7 @@ def stream(video, target, profile, info): H264, should bitrates be a bit lower? other stuff possible? ''' profile, format = profile.split('.') + bpp = 0.17 if profile == '1080p': height = 1080 @@ -105,7 +106,6 @@ def stream(video, target, profile, info): audiobitrate = '22k' audiochannels = 1 - bpp = 0.17 if info['video'] and 'display_aspect_ratio' in info['video'][0]: fps = AspectRatio(info['video'][0]['framerate']) diff --git a/pandora/item/models.py b/pandora/item/models.py index b399c177..d2c4f367 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1086,6 +1086,7 @@ class Item(models.Model): cmd += ['-f', frame] p = subprocess.Popen(cmd) p.wait() + #remove cached versions icons = os.path.abspath(os.path.join(settings.MEDIA_ROOT, icon)) icons = glob(icons.replace('.jpg', '*.jpg')) for f in filter(lambda p: not p.endswith('/icon.jpg'), icons): diff --git a/pandora/padma.jsonc b/pandora/padma.jsonc index ea1f4fc5..5e662aec 100644 --- a/pandora/padma.jsonc +++ b/pandora/padma.jsonc @@ -482,7 +482,7 @@ ], "filtersSize": 176, "find": {"conditions": [], "operator": "&"}, - "icons": "posters", + "icons": "frames", "infoIconSize": 256, "item": "", "itemFind": {"conditions": [], "operator": "&"},