Changeset 31680 for trunk/ippTools/src/addtool.c
- Timestamp:
- Jun 22, 2011, 1:59:04 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/addtool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/addtool.c
r31596 r31680 161 161 PXOPT_LOOKUP_BOOL(minidvodb, config->args, "-set_minidvodb", false); 162 162 PXOPT_LOOKUP_BOOL(destreaked, config->args, "-destreaked", false); 163 PXOPT_LOOKUP_BOOL(uncensored, config->args, "-uncensored", false); 163 164 PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false); 164 165 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 168 169 psString dvodb_string = NULL; 169 170 psString bare_query = NULL; 171 172 if (!(destreaked && uncensored) && (destreaked || uncensored)) { 173 //if one of destreaked and uncensored is true, but not both 174 if (destreaked) { 175 psTrace("addtool.c", PS_LOG_INFO, "using -destreaked\n"); 176 } else { 177 psTrace("addtool.c", PS_LOG_INFO, "using -unscensored\n"); 178 } 179 } else { 180 if (destreaked && uncensored) { 181 psError(PS_ERR_UNKNOWN, false, "Both -destreaked and -uncensored are selected. Please use one or the other, not both, \n"); 182 return false; 183 } 184 if (!destreaked && !uncensored) { 185 psError(PS_ERR_UNKNOWN, false, "Neither -destreaked or -uncensored are selected. Please use one.\n"); 186 return false; 187 } 188 } 189 190 191 170 192 171 193 if (strcmp(stage,"cam") == 0 ) { … … 240 262 241 263 if (destreaked) { 264 //This picks the magicked/censored ones 242 265 if (strcmp(stage,"cam") == 0) { 243 266 psStringAppend(&query, " AND (camRun.magicked > 0)"); … … 247 270 } 248 271 // staticSky has no magicked column. 272 } else { 273 //This picks only the unmagicked/uncensored ones 274 if (strcmp(stage,"cam") == 0) { 275 psStringAppend(&query, " AND (camRun.magicked = 0)"); 276 } 277 if (strcmp(stage,"stack") == 0) { 278 psStringAppend(&query, " AND (stackRun.magicked = 0)"); 279 } 280 249 281 } 250 282
Note:
See TracChangeset
for help on using the changeset viewer.
