Changeset 15286 for titan/plugins/imdb


Ignore:
Timestamp:
04/16/12 01:47:59 (12 years ago)
Author:
nit
Message:

[titan] add search to imdb

File:
1 edited

Legend:

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

    r15276 r15286  
    121121        struct skin* skin_cast = getscreennode(imdbskin, "cast");
    122122        struct imdb* node = NULL;
     123        char* search = NULL;
    123124
    124125        setfbtransparent(255);
    125126        status.hangtime = 99999;
    126127
    127         if(title = NULL) title = getepgakttitle(NULL);
     128        if(title == NULL) title = getepgakttitle(NULL);
    128129
    129130        node = getimdb(title);
     131start:
    130132        if(node != NULL)
    131133        {
     
    147149                if(rcret == getrcconfigint("rcexit", NULL)) break;
    148150                if(rcret == getrcconfigint("rcok", NULL)) break;
     151
     152                if(rcret == getrcconfigint("rcred", NULL))
     153                {
     154                        search = textinput("Search", NULL);
     155                        if(search != NULL)
     156                        {
     157                                freeimdb(node); node = NULL;
     158                                node = getimdb(search);
     159                                free(search); search = NULL;
     160                                goto start;
     161                        }
     162                        drawscreen(imdbskin, 0);
     163                        continue;
     164                }
    149165        }
    150166
Note: See TracChangeset for help on using the changeset viewer.