mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
YTparser: supplement to 9af1506c8989a7db181014e4cb320c9a99fc44e7
Origin commit data
------------------
Branch: ni/coolstream
Commit: 261a06a47e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-06-14 (Fri, 14 Jun 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -463,7 +463,7 @@ bool cYTFeedParser::decodeVideoInfo(std::string &answer, cYTVideoInfo &vinfo)
|
||||
#endif
|
||||
cYTVideoUrl yurl;
|
||||
yurl.url = smap["url"];
|
||||
std::size_t lsig = 0;
|
||||
std::size_t sig = std::string::npos;
|
||||
std::string::size_type ptr = smap["url"].find("signature=");
|
||||
if (ptr != std::string::npos)
|
||||
{
|
||||
@@ -473,11 +473,11 @@ bool cYTFeedParser::decodeVideoInfo(std::string &answer, cYTVideoInfo &vinfo)
|
||||
if((ptr = smap["url"].find("&")) != std::string::npos)
|
||||
yurl.sig = smap["url"].substr(0,ptr);
|
||||
}else{
|
||||
lsig = smap["url"].find("lsig=");
|
||||
sig = smap["url"].find("&sig=");
|
||||
}
|
||||
|
||||
int id = atoi(smap["itag"].c_str());
|
||||
if (supportedFormat(id) && !yurl.url.empty() && (!yurl.sig.empty() || lsig)) {
|
||||
if (supportedFormat(id) && !yurl.url.empty() && (!yurl.sig.empty() || (sig != std::string::npos))) {
|
||||
yurl.quality = smap["quality"];
|
||||
yurl.type = smap["type"];
|
||||
vinfo.formats.insert(yt_urlmap_pair_t(id, yurl));
|
||||
|
Reference in New Issue
Block a user