From 1df0ba3427157345278b737e8616e7b9377236ba Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 19 Apr 2012 18:08:13 +0200 Subject: [PATCH] add more video modes --- pandora_client/extract.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pandora_client/extract.py b/pandora_client/extract.py index 73358ed..3858fec 100644 --- a/pandora_client/extract.py +++ b/pandora_client/extract.py @@ -96,6 +96,12 @@ def video_cmd(video, target, profile, info): audioquality = 3 audiobitrate = None audiochannels = 2 + elif profile == '432p': + height = 432 + audiorate = 44100 + audioquality = 2 + audiobitrate = None + audiochannels = 2 elif profile == '360p': height = 360 @@ -103,6 +109,13 @@ def video_cmd(video, target, profile, info): audioquality = 1 audiobitrate = None audiochannels = 1 + elif profile == '288p': + height = 288 + + audiorate = 44100 + audioquality = 0 + audiobitrate = None + audiochannels = 1 elif profile == '240p': height = 240 @@ -110,6 +123,13 @@ def video_cmd(video, target, profile, info): audioquality = 0 audiobitrate = None audiochannels = 1 + elif profile == '144p': + height = 144 + + audiorate = 22050 + audioquality = -1 + audiobitrate = '22k' + audiochannels = 1 else: height = 96