Ignore:
Timestamp:
Aug 31, 2016, 5:31:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.8.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/youtube/sig.cpp

    r176 r181  
    6363                int pos = text.indexOf("var " + sig_name + "=function");
    6464                if (pos == -1) pos = text.indexOf("," + sig_name + "=function");
     65                if (pos == -1) pos = text.indexOf(sig_name + "=function");
    6566                if (pos > -1) {
    6667                        int endpos = text.indexOf("}", pos);
     
    7374                                else
    7475                                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);
    7578                        }
    7679                }
     
    9497                                #endif
    9598                                if ((possible_var != "a") && (possible_var != "")) {
    96                                         QString s = findText(text, "var "+ possible_var, "};");
     99                                        QString s = findText(text, "var "+ possible_var +"=", "};");
    97100                                        #ifdef ULTRAVERBOSE
    98101                                        qDebug() << "Sig::findFunctions: s:" << s;
    99102                                        #endif
    100103                                        if (!s.isEmpty()) {
    101                                                 function2 = "var "+ possible_var +" "+ s +" };";
     104                                                function2 = "var "+ possible_var +" = "+ s +" };";
    102105                                                break;
    103106                                        }
Note: See TracChangeset for help on using the changeset viewer.