Add missing streamlink option & make preferredQuality lowercase

This commit is contained in:
confuseh 2018-01-17 17:40:16 +00:00 committed by fourtf
parent f3357cf0f4
commit 84186da16c
2 changed files with 2 additions and 1 deletions

View file

@ -11,7 +11,7 @@
#define LAST_MSG "Show last read message indicator" #define LAST_MSG "Show last read message indicator"
#define PAUSE_HOVERING "When hovering" #define PAUSE_HOVERING "When hovering"
#define STREAMLINK_QUALITY "Source", "High", "Medium", "Low", "Audio only" #define STREAMLINK_QUALITY "Choose", "Source", "High", "Medium", "Low", "Audio only"
namespace chatterino { namespace chatterino {
namespace widgets { namespace widgets {

View file

@ -371,6 +371,7 @@ void Split::doOpenStreamlink()
{ {
singletons::SettingManager &settings = singletons::SettingManager::getInstance(); singletons::SettingManager &settings = singletons::SettingManager::getInstance();
QString preferredQuality = settings.preferredQuality; QString preferredQuality = settings.preferredQuality;
preferredQuality = preferredQuality.toLower();
// TODO(Confuseh): Default streamlink paths // TODO(Confuseh): Default streamlink paths
QString path = settings.streamlinkPath; QString path = settings.streamlinkPath;
QString channel = QString::fromStdString(this->channelName.getValue()); QString channel = QString::fromStdString(this->channelName.getValue());