From b90497fc69b0f6489c80453ee25df8d7c2e62de0 Mon Sep 17 00:00:00 2001 From: martii Date: Mon, 10 Jun 2013 12:56:05 +0200 Subject: [PATCH] yt: revert to original quality selection order) --- src/system/ytparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/ytparser.cpp b/src/system/ytparser.cpp index 29fce2986..3e9eb1d46 100644 --- a/src/system/ytparser.cpp +++ b/src/system/ytparser.cpp @@ -72,6 +72,8 @@ std::string cYTVideoInfo::GetUrl(int fmt, bool mandatory) if (mandatory) return ""; } + if ((it = formats.find(37)) != formats.end()) // 1080p MP4 + return it->second.GetUrl(); if ((it = formats.find(22)) != formats.end()) // 720p MP4 return it->second.GetUrl(); #if 0 @@ -82,8 +84,6 @@ std::string cYTVideoInfo::GetUrl(int fmt, bool mandatory) #endif if ((it = formats.find(18)) != formats.end()) // 270p/360p MP4 return it->second.GetUrl(); - if ((it = formats.find(37)) != formats.end()) // 1080p MP4 - return it->second.GetUrl(); return ""; }