yt: revert to original quality selection order)

Origin commit data
------------------
Branch: ni/coolstream
Commit: b90497fc69
Author: martii <m4rtii@gmx.de>
Date: 2013-06-10 (Mon, 10 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-06-10 12:56:05 +02:00
committed by [CST] Focus
parent 347ad94e58
commit 1ee39e109b

View File

@@ -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 "";
}