@@ -120,7 +120,7 @@ class SettingsModel {
120
120
bool detectItalics;
121
121
String confThresh;
122
122
String whiteThresh;
123
-
123
+ bool splitMode;
124
124
SettingsModel ({
125
125
this .out = 'auto/default' ,
126
126
this .inp = 'auto/default' ,
@@ -216,6 +216,7 @@ class SettingsModel {
216
216
this .detectItalics = false ,
217
217
this .confThresh = '' ,
218
218
this .whiteThresh = '' ,
219
+ this .splitMode = false ,
219
220
});
220
221
221
222
static Map <String , String > get paramsLookUpMap {
@@ -312,6 +313,7 @@ class SettingsModel {
312
313
'detectItalics' : '-detect_italics' ,
313
314
'confThresh' : '-conf_thresh' ,
314
315
'whiteThresh' : '-whiteness_thresh' ,
316
+ 'splitMode' : '' , // splitMode is not a ccx setting
315
317
};
316
318
}
317
319
@@ -341,102 +343,102 @@ class SettingsModel {
341
343
return enabledtextfields;
342
344
}
343
345
344
- SettingsModel copyWith ({
345
- String ? out,
346
- String ? inp,
347
- String ? outputfilename,
348
- bool ? fixptsjumps,
349
- bool ? append,
350
- String ? outInterval,
351
- bool ? segmentonkeyonly,
352
- bool ? goptime,
353
- bool ? nogoptime,
354
- bool ? fixpadding,
355
- bool ? freqEs15,
356
- String ? stream,
357
- bool ? videoedited,
358
- bool ? usepicorder,
359
- bool ? myth,
360
- bool ? nomyth,
361
- bool ? wtvconvertfix,
362
- bool ? wtvmpeg2,
363
- String ? program_number,
364
- bool ? autoprogram,
365
- bool ? multiprogram,
366
- String ? streamtype,
367
- bool ? hauppauge,
368
- bool ? mp4vidtrack,
369
- bool ? noautotimeref,
370
- bool ? noscte20,
371
- bool ? webvttcss,
372
- bool ? analyzevideo,
373
- bool ? notimestamp,
374
- bool ? nolevdist,
375
- String ? minlevdist,
376
- String ? maxlevdist,
377
- bool ? chapters,
378
- bool ? bom,
379
- bool ? nobom,
380
- String ? encoder,
381
- bool ? nofontcolor,
382
- bool ? nohtmlescape,
383
- bool ? notypesetting,
384
- bool ? trim,
385
- String ? defaultcolor,
386
- bool ? sentencecap,
387
- String ? capFile,
388
- bool ? kf,
389
- String ? profanityFile,
390
- bool ? splitbysentence,
391
- bool ? datets,
392
- bool ? sects,
393
- bool ? latrusmap,
394
- bool ? xds,
395
- bool ? lf,
396
- bool ? df,
397
- bool ? autodash,
398
- String ? xmltv,
399
- String ? xmltvliveinterval,
400
- String ? xmltvoutputinterval,
401
- bool ? xmltvonlycurrent,
402
- bool ? sem,
403
- String ? dvblang,
404
- String ? mkvlang,
405
- String ? ocrlang,
406
- String ? quant,
407
- String ? oem,
408
- bool ? bufferinput,
409
- bool ? nobufferinput,
410
- String ? buffersize,
411
- bool ? koc,
412
- bool ? dru,
413
- bool ? norollup,
414
- String ? rollUp,
415
- String ? delay,
416
- String ? startat,
417
- String ? endat,
418
- String ? codec,
419
- String ? nocodec,
420
- String ? startcreditstext,
421
- String ? startcreditsnotbefore,
422
- String ? startcreditsnotafter,
423
- String ? startcreditsforatleast,
424
- String ? startcreditsforatmost,
425
- String ? endcreditstext,
426
- String ? endcreditsforatleast,
427
- String ? endcreditsforatmost,
428
- String ? tpage,
429
- bool ? teletext,
430
- bool ? noteletext,
431
- bool ? hardsubx,
432
- bool ? tickertext,
433
- String ? ocrMode,
434
- String ? subcolor,
435
- String ? minSubDuration,
436
- bool ? detectItalics,
437
- String ? confThresh,
438
- String ? whiteThresh,
439
- }) {
346
+ SettingsModel copyWith (
347
+ { String ? out,
348
+ String ? inp,
349
+ String ? outputfilename,
350
+ bool ? fixptsjumps,
351
+ bool ? append,
352
+ String ? outInterval,
353
+ bool ? segmentonkeyonly,
354
+ bool ? goptime,
355
+ bool ? nogoptime,
356
+ bool ? fixpadding,
357
+ bool ? freqEs15,
358
+ String ? stream,
359
+ bool ? videoedited,
360
+ bool ? usepicorder,
361
+ bool ? myth,
362
+ bool ? nomyth,
363
+ bool ? wtvconvertfix,
364
+ bool ? wtvmpeg2,
365
+ String ? program_number,
366
+ bool ? autoprogram,
367
+ bool ? multiprogram,
368
+ String ? streamtype,
369
+ bool ? hauppauge,
370
+ bool ? mp4vidtrack,
371
+ bool ? noautotimeref,
372
+ bool ? noscte20,
373
+ bool ? webvttcss,
374
+ bool ? analyzevideo,
375
+ bool ? notimestamp,
376
+ bool ? nolevdist,
377
+ String ? minlevdist,
378
+ String ? maxlevdist,
379
+ bool ? chapters,
380
+ bool ? bom,
381
+ bool ? nobom,
382
+ String ? encoder,
383
+ bool ? nofontcolor,
384
+ bool ? nohtmlescape,
385
+ bool ? notypesetting,
386
+ bool ? trim,
387
+ String ? defaultcolor,
388
+ bool ? sentencecap,
389
+ String ? capFile,
390
+ bool ? kf,
391
+ String ? profanityFile,
392
+ bool ? splitbysentence,
393
+ bool ? datets,
394
+ bool ? sects,
395
+ bool ? latrusmap,
396
+ bool ? xds,
397
+ bool ? lf,
398
+ bool ? df,
399
+ bool ? autodash,
400
+ String ? xmltv,
401
+ String ? xmltvliveinterval,
402
+ String ? xmltvoutputinterval,
403
+ bool ? xmltvonlycurrent,
404
+ bool ? sem,
405
+ String ? dvblang,
406
+ String ? mkvlang,
407
+ String ? ocrlang,
408
+ String ? quant,
409
+ String ? oem,
410
+ bool ? bufferinput,
411
+ bool ? nobufferinput,
412
+ String ? buffersize,
413
+ bool ? koc,
414
+ bool ? dru,
415
+ bool ? norollup,
416
+ String ? rollUp,
417
+ String ? delay,
418
+ String ? startat,
419
+ String ? endat,
420
+ String ? codec,
421
+ String ? nocodec,
422
+ String ? startcreditstext,
423
+ String ? startcreditsnotbefore,
424
+ String ? startcreditsnotafter,
425
+ String ? startcreditsforatleast,
426
+ String ? startcreditsforatmost,
427
+ String ? endcreditstext,
428
+ String ? endcreditsforatleast,
429
+ String ? endcreditsforatmost,
430
+ String ? tpage,
431
+ bool ? teletext,
432
+ bool ? noteletext,
433
+ bool ? hardsubx,
434
+ bool ? tickertext,
435
+ String ? ocrMode,
436
+ String ? subcolor,
437
+ String ? minSubDuration,
438
+ bool ? detectItalics,
439
+ String ? confThresh,
440
+ String ? whiteThresh,
441
+ bool ? splitMode }) {
440
442
return SettingsModel (
441
443
out: out ?? this .out,
442
444
inp: inp ?? this .inp,
@@ -535,6 +537,7 @@ class SettingsModel {
535
537
detectItalics: detectItalics ?? this .detectItalics,
536
538
confThresh: confThresh ?? this .confThresh,
537
539
whiteThresh: whiteThresh ?? this .whiteThresh,
540
+ splitMode: splitMode ?? this .splitMode,
538
541
);
539
542
}
540
543
@@ -634,6 +637,7 @@ class SettingsModel {
634
637
'detectItalics' : detectItalics,
635
638
'confThresh' : confThresh,
636
639
'whiteThresh' : whiteThresh,
640
+ 'splitMode' : splitMode,
637
641
};
638
642
}
639
643
@@ -733,12 +737,13 @@ class SettingsModel {
733
737
detectItalics: map['detectItalics' ],
734
738
confThresh: map['confThresh' ],
735
739
whiteThresh: map['whiteThresh' ],
740
+ splitMode: map['splitMode' ],
736
741
);
737
742
}
738
743
739
744
@override
740
745
String toString () {
741
- return 'SettingsModel(out: $out, inp: $inp, outputfilename: $outputfilename, fixptsjumps: $fixptsjumps, append: $append, outInterval: $outInterval, segmentonkeyonly: $segmentonkeyonly, goptime: $goptime, nogoptime: $nogoptime, fixpadding: $fixpadding, freqEs15: $freqEs15, stream: $stream, videoedited: $videoedited, usepicorder: $usepicorder, myth: $myth, nomyth: $nomyth, wtvconvertfix: $wtvconvertfix, wtvmpeg2: $wtvmpeg2, program_number: $program_number, autoprogram: $autoprogram, multiprogram: $multiprogram, streamtype: $streamtype, hauppauge: $hauppauge, mp4vidtrack: $mp4vidtrack, noautotimeref: $noautotimeref, noscte20: $noscte20, webvttcss: $webvttcss, analyzevideo: $analyzevideo, notimestamp: $notimestamp, nolevdist: $nolevdist, minlevdist: $minlevdist, maxlevdist: $maxlevdist, chapters: $chapters, bom: $bom, nobom: $nobom, encoder: $encoder, nofontcolor: $nofontcolor, nohtmlescape: $nohtmlescape, notypesetting: $notypesetting, trim: $trim, defaultcolor: $defaultcolor, sentencecap: $sentencecap, capFile: $capFile, kf: $kf, profanityFile: $profanityFile, splitbysentence: $splitbysentence, datets: $datets, sects: $sects, latrusmap: $latrusmap, xds: $xds, lf: $lf, df: $df, autodash: $autodash, xmltv: $xmltv, xmltvliveinterval: $xmltvliveinterval, xmltvoutputinterval: $xmltvoutputinterval, xmltvonlycurrent: $xmltvonlycurrent, sem: $sem, dvblang: $dvblang, mkvlang: $mkvlang, ocrlang: $ocrlang, quant: $quant, oem: $oem, bufferinput: $bufferinput, nobufferinput: $nobufferinput, buffersize: $buffersize, koc: $koc, dru: $dru, norollup: $norollup, rollUp: $rollUp, delay: $delay, startat: $startat, endat: $endat, codec: $codec, nocodec: $nocodec, startcreditstext: $startcreditstext, startcreditsnotbefore: $startcreditsnotbefore, startcreditsnotafter: $startcreditsnotafter, startcreditsforatleast: $startcreditsforatleast, startcreditsforatmost: $startcreditsforatmost, endcreditstext: $endcreditstext, endcreditsforatleast: $endcreditsforatleast, endcreditsforatmost: $endcreditsforatmost, tpage: $tpage, teletext: $teletext, noteletext: $noteletext, hardsubx: $hardsubx, tickertext: $tickertext, ocrMode: $ocrMode, subcolor: $subcolor, minSubDuration: $minSubDuration, detectItalics: $detectItalics, confThresh: $confThresh, whiteThresh: $whiteThresh)';
746
+ return 'SettingsModel(out: $out, inp: $inp, outputfilename: $outputfilename, fixptsjumps: $fixptsjumps, append: $append, outInterval: $outInterval, segmentonkeyonly: $segmentonkeyonly, goptime: $goptime, nogoptime: $nogoptime, fixpadding: $fixpadding, freqEs15: $freqEs15, stream: $stream, videoedited: $videoedited, usepicorder: $usepicorder, myth: $myth, nomyth: $nomyth, wtvconvertfix: $wtvconvertfix, wtvmpeg2: $wtvmpeg2, program_number: $program_number, autoprogram: $autoprogram, multiprogram: $multiprogram, streamtype: $streamtype, hauppauge: $hauppauge, mp4vidtrack: $mp4vidtrack, noautotimeref: $noautotimeref, noscte20: $noscte20, webvttcss: $webvttcss, analyzevideo: $analyzevideo, notimestamp: $notimestamp, nolevdist: $nolevdist, minlevdist: $minlevdist, maxlevdist: $maxlevdist, chapters: $chapters, bom: $bom, nobom: $nobom, encoder: $encoder, nofontcolor: $nofontcolor, nohtmlescape: $nohtmlescape, notypesetting: $notypesetting, trim: $trim, defaultcolor: $defaultcolor, sentencecap: $sentencecap, capFile: $capFile, kf: $kf, profanityFile: $profanityFile, splitbysentence: $splitbysentence, datets: $datets, sects: $sects, latrusmap: $latrusmap, xds: $xds, lf: $lf, df: $df, autodash: $autodash, xmltv: $xmltv, xmltvliveinterval: $xmltvliveinterval, xmltvoutputinterval: $xmltvoutputinterval, xmltvonlycurrent: $xmltvonlycurrent, sem: $sem, dvblang: $dvblang, mkvlang: $mkvlang, ocrlang: $ocrlang, quant: $quant, oem: $oem, bufferinput: $bufferinput, nobufferinput: $nobufferinput, buffersize: $buffersize, koc: $koc, dru: $dru, norollup: $norollup, rollUp: $rollUp, delay: $delay, startat: $startat, endat: $endat, codec: $codec, nocodec: $nocodec, startcreditstext: $startcreditstext, startcreditsnotbefore: $startcreditsnotbefore, startcreditsnotafter: $startcreditsnotafter, startcreditsforatleast: $startcreditsforatleast, startcreditsforatmost: $startcreditsforatmost, endcreditstext: $endcreditstext, endcreditsforatleast: $endcreditsforatleast, endcreditsforatmost: $endcreditsforatmost, tpage: $tpage, teletext: $teletext, noteletext: $noteletext, hardsubx: $hardsubx, tickertext: $tickertext, ocrMode: $ocrMode, subcolor: $subcolor, minSubDuration: $minSubDuration, detectItalics: $detectItalics, confThresh: $confThresh, whiteThresh: $whiteThresh, splitMode: $splitMode,)';
742
747
}
743
748
744
749
@override
@@ -839,7 +844,8 @@ class SettingsModel {
839
844
other.minSubDuration == minSubDuration &&
840
845
other.detectItalics == detectItalics &&
841
846
other.confThresh == confThresh &&
842
- other.whiteThresh == whiteThresh;
847
+ other.whiteThresh == whiteThresh &&
848
+ other.splitMode == splitMode;
843
849
}
844
850
845
851
@override
@@ -937,6 +943,7 @@ class SettingsModel {
937
943
minSubDuration.hashCode ^
938
944
detectItalics.hashCode ^
939
945
confThresh.hashCode ^
940
- whiteThresh.hashCode;
946
+ whiteThresh.hashCode ^
947
+ splitMode.hashCode;
941
948
}
942
949
}
0 commit comments