Changeset 30012


Ignore:
Timestamp:
Sep 20, 2014, 11:22:54 AM (6 years ago)
Author:
obi
Message:

fix solarmovie

Location:
titan/plugins/tithek
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/played.h

    r30011 r30012  
    4747
    4848/////////////
    49 
    5049
    5150/*
     
    174173        }
    175174
    176 
    177         streamlink = string_resub("file: \"", "\"", tmpstr, 0);         
     175        streamlink = string_resub("file: \"", "\"", tmpstr, 0);
    178176
    179177        titheklog(debuglevel, "/tmp/played4_streamlink", NULL, NULL, NULL, streamlink);
  • titan/plugins/tithek/solarmovie.h

    r30009 r30012  
    5454                tmpstr1 = string_resub("<div class=\"thirdPartyEmbContainer\">", "</div>", tmpstr, 0);
    5555                stringreplacechar(tmpstr1, '\n', ' ');
    56                 url = string_resub("<center><iframe src=\"", "\"", tmpstr1, 0);
     56
     57                url = oregex(".*(http://.*).*\"", tmpstr1);
     58                stringreplacechar(url, '"', '\0');
     59
     60                if(url == NULL)
     61                        url = string_resub("<center><iframe src=\"", "\"", tmpstr1, 0);
    5762                if(url == NULL)
    5863                        url = string_resub("<center><IFRAME SRC=\"", "\"", tmpstr1, 0);
Note: See TracChangeset for help on using the changeset viewer.