Changeset 23572


Ignore:
Timestamp:
Sep 9, 2013, 11:38:47 PM (7 years ago)
Author:
obi
Message:

fix codecpack check

Location:
titan/plugins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/mc/mc_audioplayer.h

    r23426 r23572  
    7474        // set allowed filemask
    7575        char* filemask = NULL;
    76 //      if((status.expertmodus > 0) || (file_exist("/mnt/swapextensions/etc/.codecpack")) || (checkbox("WHITEBOX") == 1))
    77         if((status.expertmodus > 0) || (file_exist("/mnt/swapextensions/etc/.codecpack")))
     76        if(status.expertmodus >= 11 || file_exist("/mnt/swapextensions/etc/.codecpack") || file_exist("/var/swap/etc/.codecpack") || file_exist("/var/etc/.codecpack"))
    7877                filemask = ostrcat("*.m3u *.pls *.mp3 *.flac *.ogg *.wma *.ra *.wav", NULL, 0, 0);
    7978        else
  • titan/plugins/mc/mc_videoplayer.h

    r23340 r23572  
    6262        // set allowed filemask
    6363        char* filemask = NULL;
    64 //      if((status.expertmodus > 0) || (file_exist("/mnt/swapetensions/etc/.codecpack")) || (checkbox("WHITEBOX") == 1))
    65         if((status.expertmodus > 0) || (file_exist("/mnt/swapetensions/etc/.codecpack")))
     64        if(status.expertmodus >= 11 || file_exist("/mnt/swapextensions/etc/.codecpack") || file_exist("/var/swap/etc/.codecpack") || file_exist("/var/etc/.codecpack"))
    6665                filemask = ostrcat("*.m3u *.pls *.ifo *.rar *.iso *.img *.avi *.dat *.divx *.flv *.mkv *.m4v *.mp4 *.mov *.mpg *.mpeg *.mts *.m2ts *.trp *.ts *.vdr *.vob *.rm", NULL, 0, 0);
    6766        else
  • titan/plugins/tithek/tithek.h

    r23363 r23572  
    144144        if(node->flag == 1000 && hid == 1)
    145145                skip = 1;
    146         else if((node->flag == 9996 || node->flag == 9997 || node->flag == 9998 || node->flag == 9999) && !file_exist("/mnt/swapextensions/etc/.codecpack"))
     146        else if((node->flag == 9996 || node->flag == 9997 || node->flag == 9998 || node->flag == 9999) && !file_exist("/mnt/swapextensions/etc/.codecpack") && !file_exist("/var/swap/etc/.codecpack") && !file_exist("/var/etc/.codecpack"))
    147147                skip = 1;
    148148        else if(node->flag == 16 && pay == 0)
     
    12421242//                                              addmenulist(&mlist, "File Caching Playback (20MB / 240s)", NULL, NULL, 0, 0);
    12431243//                                              addmenulist(&mlist, "File Caching Playback (30MB / 360s)", NULL, NULL, 0, 0);
    1244                                                 if(file_exist("/mnt/swapextensions/etc/.codecpack"))
     1244                                                if(status.expertmodus >= 11 || file_exist("/mnt/swapextensions/etc/.codecpack") || file_exist("/var/swap/etc/.codecpack") || file_exist("/var/etc/.codecpack"))
    12451245                                                {
    12461246                                                        addmenulist(&mlist, "Download Full File", NULL, NULL, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.