mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
yt: revert to original quality selection order)
This commit is contained in:
@@ -72,6 +72,8 @@ std::string cYTVideoInfo::GetUrl(int fmt, bool mandatory)
|
|||||||
if (mandatory)
|
if (mandatory)
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
if ((it = formats.find(37)) != formats.end()) // 1080p MP4
|
||||||
|
return it->second.GetUrl();
|
||||||
if ((it = formats.find(22)) != formats.end()) // 720p MP4
|
if ((it = formats.find(22)) != formats.end()) // 720p MP4
|
||||||
return it->second.GetUrl();
|
return it->second.GetUrl();
|
||||||
#if 0
|
#if 0
|
||||||
@@ -82,8 +84,6 @@ std::string cYTVideoInfo::GetUrl(int fmt, bool mandatory)
|
|||||||
#endif
|
#endif
|
||||||
if ((it = formats.find(18)) != formats.end()) // 270p/360p MP4
|
if ((it = formats.find(18)) != formats.end()) // 270p/360p MP4
|
||||||
return it->second.GetUrl();
|
return it->second.GetUrl();
|
||||||
if ((it = formats.find(37)) != formats.end()) // 1080p MP4
|
|
||||||
return it->second.GetUrl();
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user