Changeset 20034


Ignore:
Timestamp:
02/11/13 21:58:48 (10 years ago)
Author:
obi
Message:

fix mediadb

Location:
titan/plugins
Files:
4 edited

Legend:

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

    r19884 r20034  
    498498        char* search = NULL;
    499499
    500         if(path == NULL || file == NULL)
     500        if(path == NULL || file == NULL || !file_exist(getconfig("mediadbpath", NULL)))
    501501                skin_b2->hidden = YES;
    502502        else
  • titan/plugins/imdbapi/imdbapi.h

    r19884 r20034  
    219219        char* search = NULL;
    220220
    221         if(path == NULL || file == NULL)
     221        if(path == NULL || file == NULL || !file_exist(getconfig("mediadbpath", NULL)))
    222222                skin_b2->hidden = YES;
    223223        else
  • titan/plugins/mc/mc_main.h

    r19549 r20034  
    122122                system("emu.sh halt");
    123123
     124        if(!file_exist(getconfig("mediadbpath", NULL)))
     125                mkdir(getconfig("mediadbpath", NULL), 0777);
     126               
    124127        debug(50, "drop_caches");
    125128        writesysint("/proc/sys/vm/drop_caches", 3, 0);
  • titan/plugins/tmdb/tmdb.h

    r19884 r20034  
    817817//              skin_b3->hidden = NO;
    818818
    819         if(path == NULL || file == NULL)
     819        if(path == NULL || file == NULL || !file_exist(getconfig("mediadbpath", NULL)))
    820820                skin_b3->hidden = YES;
    821821        else
Note: See TracChangeset for help on using the changeset viewer.