Changeset 179 for smplayer/vendor/current/src/youtube/sig.cpp
- Timestamp:
- Aug 31, 2016, 5:19:25 PM (9 years ago)
- File:
-
- 1 edited
-
smplayer/vendor/current/src/youtube/sig.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/youtube/sig.cpp
r175 r179 63 63 int pos = text.indexOf("var " + sig_name + "=function"); 64 64 if (pos == -1) pos = text.indexOf("," + sig_name + "=function"); 65 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 77 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.
