Changeset 16538 for titan/plugins/tmdb


Ignore:
Timestamp:
06/13/12 20:53:50 (12 years ago)
Author:
nit
Message:

[titan] fix and add save choice to tmdb

File:
1 edited

Legend:

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

    r16529 r16538  
    279279                        if(flag1 != 2 && ostrstr(tmpstr1, "size=\"original\"") != NULL)
    280280//                              tnode->backdrop = string_resub("<image type=\"backdrop\" url=\"", "\" size=\"original\"", tmpstr1, 1);
    281                                 tnode->backdrop = oregex(".*<image type=\"backdrop\" url=\".*(http://.*/original/.*)\" size=\"original\" width=\"1920" height=\"1080\".*", tmpstr1);
     281                                tnode->backdrop = oregex(".*<image type=\"backdrop\" url=\".*(http://.*/original/.*)\" size=\"original\" width=\"1920\" height=\"1080\".*", tmpstr1);
    282282
    283283                        if(ostrstr(tmpstr1, "<rating>") != NULL)
     
    368368}
    369369
    370 void screentmdb(char* title)
     370//flag 0: only view
     371//flag 1: can return tmdb node
     372struct tmdb* screentmdb(char* title, int flag)
    371373{
    372374        int rcret = 0;
     
    380382        struct skin* skin_cover = getscreennode(tmdbskin, "cover");
    381383        struct skin* skin_votes = getscreennode(tmdbskin, "votes");
    382         struct tmdb* node = NULL;
     384        struct skin* b3 = getscreennode(tmdbskin, "b3");
     385        struct tmdb* node = NULL, *retnode = NULL;
    383386        char* search = NULL;
    384387
    385388        setfbtransparent(255);
    386389        status.hangtime = 99999;
     390
     391        if(flag == 0)
     392                b3->hidden = YES;
     393        else
     394                b3->hidden = NO;
    387395
    388396        if(title == NULL) title = getepgakttitle(NULL);
     
    452460                        continue;
    453461                }
    454         }
    455 
    456         freetmdb(&node, 0); node = NULL;
     462                if(rcret == getrcconfigint("rcyellow", NULL))
     463                {
     464                        retnode = node;
     465                        break;
     466                }
     467        }
     468
     469        if(retnode == NULL)
     470        {
     471                freetmdb(&node, 0);
     472                node = NULL;
     473        }
     474
    457475        setosdtransparent(getskinconfigint("osdtransparent", NULL));
    458476        status.hangtime = getconfigint("hangtime", NULL);
    459477        clearscreen(tmdbskin);
     478
     479        return retnode;
    460480}
    461481
Note: See TracChangeset for help on using the changeset viewer.