Changeset 181 for smplayer/trunk/src/youtube/sig.cpp
- Timestamp:
- Aug 31, 2016, 5:31:04 PM (9 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 179
- Property svn:mergeinfo changed
-
smplayer/trunk/src/youtube/sig.cpp
r176 r181 63 63 int pos = text.indexOf("var " + sig_name + "=function"); 64 64 if (pos == -1) pos = text.indexOf("," + sig_name + "=function"); 65 if (pos == -1) pos = text.indexOf(sig_name + "=function"); 65 66 if (pos > -1) { 66 67 int endpos = text.indexOf("}", pos); … … 73 74 else 74 75 if (sig_code.startsWith(",")) sig_code.replace("," + sig_name + "=function", "function " + sig_name); 76 else 77 if (sig_code.startsWith(sig_name+"=")) sig_code.replace(sig_name + "=function", "function " + sig_name); 75 78 } 76 79 } … … 94 97 #endif 95 98 if ((possible_var != "a") && (possible_var != "")) { 96 QString s = findText(text, "var "+ possible_var , "};");99 QString s = findText(text, "var "+ possible_var +"=", "};"); 97 100 #ifdef ULTRAVERBOSE 98 101 qDebug() << "Sig::findFunctions: s:" << s; 99 102 #endif 100 103 if (!s.isEmpty()) { 101 function2 = "var "+ possible_var +" "+ s +" };";104 function2 = "var "+ possible_var +" = "+ s +" };"; 102 105 break; 103 106 }
Note:
See TracChangeset
for help on using the changeset viewer.