|
1 | 1 | /// TODO: |
2 | | -/// profanity and cap files browse mode |
3 | 2 | /// quant , oem, dvb/mkv/ocrlang, teletextstuff in UI this is also in hardsubx |
4 | 3 | /// hardsubx settings |
5 | 4 |
|
@@ -61,7 +60,9 @@ class SettingsModel { |
61 | 60 | bool trim; |
62 | 61 | String defaultcolor; |
63 | 62 | bool sentencecap; |
| 63 | + String capFile; |
64 | 64 | bool kf; |
| 65 | + String profanityFile; |
65 | 66 | bool splitbysentence; |
66 | 67 | bool datets; |
67 | 68 | bool sects; |
@@ -156,7 +157,9 @@ class SettingsModel { |
156 | 157 | this.trim = false, |
157 | 158 | this.defaultcolor = '', |
158 | 159 | this.sentencecap = false, |
| 160 | + this.capFile = '', |
159 | 161 | this.kf = false, |
| 162 | + this.profanityFile = '', |
160 | 163 | this.splitbysentence = false, |
161 | 164 | this.datets = false, |
162 | 165 | this.sects = false, |
@@ -243,7 +246,9 @@ class SettingsModel { |
243 | 246 | bool? trim, |
244 | 247 | String? defaultcolor, |
245 | 248 | bool? sentencecap, |
| 249 | + String? capFile, |
246 | 250 | bool? kf, |
| 251 | + String? profanityFile, |
247 | 252 | bool? splitbysentence, |
248 | 253 | bool? datets, |
249 | 254 | bool? sects, |
@@ -329,7 +334,9 @@ class SettingsModel { |
329 | 334 | trim: trim ?? this.trim, |
330 | 335 | defaultcolor: defaultcolor ?? this.defaultcolor, |
331 | 336 | sentencecap: sentencecap ?? this.sentencecap, |
| 337 | + capFile: capFile ?? this.capFile, |
332 | 338 | kf: kf ?? this.kf, |
| 339 | + profanityFile: profanityFile ?? this.profanityFile, |
333 | 340 | splitbysentence: splitbysentence ?? this.splitbysentence, |
334 | 341 | datets: datets ?? this.datets, |
335 | 342 | sects: sects ?? this.sects, |
@@ -420,7 +427,9 @@ class SettingsModel { |
420 | 427 | 'trim': '-trim', |
421 | 428 | 'defaultcolor': '--defaultcolor', |
422 | 429 | 'sentencecap': '--sentencecap', |
| 430 | + 'capFile': '--capfile', |
423 | 431 | 'kf': '--kf', |
| 432 | + 'profanityFile': '--profanity-file', |
424 | 433 | 'splitbysentence': '--splitbysentence', |
425 | 434 | 'datets': '-datets', |
426 | 435 | 'sects': '-sects', |
@@ -534,7 +543,9 @@ class SettingsModel { |
534 | 543 | 'trim': trim, |
535 | 544 | 'defaultcolor': defaultcolor, |
536 | 545 | 'sentencecap': sentencecap, |
| 546 | + 'capFile': capFile, |
537 | 547 | 'kf': kf, |
| 548 | + 'profanityFile': profanityFile, |
538 | 549 | 'splitbysentence': splitbysentence, |
539 | 550 | 'datets': datets, |
540 | 551 | 'sects': sects, |
@@ -623,7 +634,9 @@ class SettingsModel { |
623 | 634 | trim: map['trim'], |
624 | 635 | defaultcolor: map['defaultcolor'], |
625 | 636 | sentencecap: map['sentencecap'], |
| 637 | + capFile: map['capFile'], |
626 | 638 | kf: map['kf'], |
| 639 | + profanityFile: map['profanityFile'], |
627 | 640 | splitbysentence: map['splitbysentence'], |
628 | 641 | datets: map['datets'], |
629 | 642 | sects: map['sects'], |
@@ -670,7 +683,7 @@ class SettingsModel { |
670 | 683 |
|
671 | 684 | @override |
672 | 685 | String toString() { |
673 | | - 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, kf: $kf, 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)'; |
| 686 | + 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)'; |
674 | 687 | } |
675 | 688 |
|
676 | 689 | @override |
@@ -720,7 +733,9 @@ class SettingsModel { |
720 | 733 | other.trim == trim && |
721 | 734 | other.defaultcolor == defaultcolor && |
722 | 735 | other.sentencecap == sentencecap && |
| 736 | + other.capFile == capFile && |
723 | 737 | other.kf == kf && |
| 738 | + other.profanityFile == profanityFile && |
724 | 739 | other.splitbysentence == splitbysentence && |
725 | 740 | other.datets == datets && |
726 | 741 | other.sects == sects && |
@@ -808,7 +823,9 @@ class SettingsModel { |
808 | 823 | trim.hashCode ^ |
809 | 824 | defaultcolor.hashCode ^ |
810 | 825 | sentencecap.hashCode ^ |
| 826 | + capFile.hashCode ^ |
811 | 827 | kf.hashCode ^ |
| 828 | + profanityFile.hashCode ^ |
812 | 829 | splitbysentence.hashCode ^ |
813 | 830 | datets.hashCode ^ |
814 | 831 | sects.hashCode ^ |
|
0 commit comments