mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
ytparser: prefer 720p (due to 1080p playback problems with ffmpeg/eplayer3/spark, and I'm not even sure which of those is at fault)
Origin commit data
------------------
Branch: ni/coolstream
Commit: eb00181c52
Author: martii <m4rtii@gmx.de>
Date: 2013-06-08 (Sat, 08 Jun 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -67,11 +67,11 @@ std::string cYTVideoInfo::GetUrl(int fmt)
|
||||
return it->second.GetUrl();
|
||||
return "";
|
||||
}
|
||||
if ((it = formats.find(37)) != formats.end())
|
||||
if ((it = formats.find(22)) != formats.end()) // 720p
|
||||
return it->second.GetUrl();
|
||||
if ((it = formats.find(22)) != formats.end())
|
||||
if ((it = formats.find(37)) != formats.end()) // 1080p
|
||||
return it->second.GetUrl();
|
||||
if ((it = formats.find(18)) != formats.end())
|
||||
if ((it = formats.find(18)) != formats.end()) // 270p/360p
|
||||
return it->second.GetUrl();
|
||||
return "";
|
||||
}
|
||||
|
Reference in New Issue
Block a user