options: Add enable_subtitles config option

Enable generic subtitle support by default for unknown clients.  Set the
new enable_subtitles option to false to revert to the old behavior.
This commit is contained in:
Justin Maggard
2018-01-09 14:50:15 -08:00
parent 33fd018828
commit 8bdba2f40d
8 changed files with 21 additions and 2 deletions

View File

@ -756,6 +756,10 @@ init(int argc, char **argv)
if (strcasecmp(ary_options[i].value, "beacon") == 0)
CLEARFLAG(TIVO_BONJOUR_MASK);
break;
case ENABLE_SUBTITLES:
if (!strtobool(ary_options[i].value))
CLEARFLAG(SUBTITLES_MASK);
break;
default:
DPRINTF(E_ERROR, L_GENERAL, "Unknown option in file %s\n",
optionsfile);