Changeset 30013


Ignore:
Timestamp:
09/20/14 11:31:27 (10 years ago)
Author:
obi
Message:

fix moveshare

File:
1 edited

Legend:

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

    r29526 r30013  
    3030        }
    3131       
    32 
    3332        if(tmplink == NULL || ostrncmp("http://", tmplink, 7))
    3433        {
     
    7473        debug(99, "tmpstr: %s", tmpstr);
    7574        titheklog(debuglevel, "/tmp/movshare1_get", NULL, NULL, NULL, tmpstr);
    76        
     75
     76        if(tmpstr == NULL || ostrstr(tmpstr, "error=1&error_msg=The video no longer exists") != NULL)
     77        {
     78                textbox(_("Message"), _("The video no longer exists") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
     79                goto end;
     80        }
     81
    7782        file = string_replace("/embed.php?v=", "", tmppath, 0);
    7883        if(file == NULL)
     
    154159        }
    155160
     161        if(tmpstr == NULL || ostrstr(tmpstr, "error=1&error_msg=The video no longer exists") != NULL)
     162        {
     163                textbox(_("Message"), _("The video no longer exists") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
     164                goto end;
     165        }
     166
    156167        streamlink = string_resub("url=", "&", tmpstr, 0);
    157168end:
Note: See TracChangeset for help on using the changeset viewer.