Changeset 19180 for titan/plugins/imdb


Ignore:
Timestamp:
12/19/12 11:43:07 (11 years ago)
Author:
obi
Message:

[titan] add internet check on imdb/imdbapi/tmdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/imdb/imdb.h

    r18982 r19180  
    4848//      tmpsearch = ostrcat("find?s=tt;q=", NULL, 0, 0);
    4949        tmpsearch = ostrcat("find?q=", NULL, 0, 0);
     50
     51        if(checkinternet == 1)
     52        {
     53                debug(133, ""Error, Internet Connection not found"");
     54                return NULL;
     55        }
    5056
    5157        if(flag == 0)
     
    470476        int rcret = 0;
    471477
     478        if(checkinternet == 1)
     479        {
     480                textbox(_("Message"), _("Error, Internet Connection not found"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1100, 500, 10, 0);
     481                return NULL;
     482        }
     483
    472484        struct skin* imdbskin = getscreen("imdb");
    473485        struct skin* skin_plot = getscreennode(imdbskin, "plot");
Note: See TracChangeset for help on using the changeset viewer.