Skip to content

Commit

Permalink
Make "blank" the default commmethod when --skipdb is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Jul 13, 2011
1 parent b223c83 commit cba6ab1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mythtv/programs/mythcommflag/main.cpp
Expand Up @@ -770,15 +770,15 @@ static int FlagCommercials(ProgramInfo *program_info, int jobid,
(enum SkipTypes)gCoreContext->GetNumSetting(
"CommercialSkipMethod", COMM_DETECT_ALL);

if (cmdline.toBool("commmethod"))
if (cmdline.toBool("commmethod") || cmdline.toBool("skipdb"))
{
// pull commercial detection method from command line
QString commmethod = cmdline.toString("commmethod");
QString commmethod = cmdline.toBool("commmethod") ?
cmdline.toString("commmethod") : "blank";

// assume definition as integer value
bool ok = true;
if (cmdline.toBool("commmethod"))
commDetectMethod = (SkipTypes) commmethod.toInt(&ok);
commDetectMethod = (SkipTypes) commmethod.toInt(&ok);
if (!ok)
{
// not an integer, attempt comma separated list
Expand Down

0 comments on commit cba6ab1

Please sign in to comment.