sub_timeline_fixer_helper_test.go 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. package sub_timeline_fixer
  2. import (
  3. "testing"
  4. )
  5. // 无需关注这个测试用例,这个方案暂时弃用
  6. func TestSubTimelineFixerHelper_FixRecentlyItemsSubTimeline(t *testing.T) {
  7. // 单独执行这个,第一次是有效的,第二次,就没得效果了,原因是已经替换字幕了啊,当然就不会修正了啊。你懂的
  8. //config := config.GetConfig()
  9. //fixer := NewSubTimelineFixerHelper(config.EmbyConfig, config.SubTimelineFixerConfig)
  10. //err := fixer.FixRecentlyItemsSubTimeline(config.MovieFolder, config.SeriesFolder)
  11. //if err != nil {
  12. // t.Fatal(err)
  13. //}
  14. }
  15. // 无需关注这个测试用例,这个方案暂时弃用
  16. func TestSubTimelineFixerHelper_fixOneVideoSub(t *testing.T) {
  17. // What If - S01E09 171499
  18. // Dan Brown's The Lost Symbol - S01E01 172412
  19. // 基地 S01E03 166840
  20. // 基地 S01E04 173354
  21. // 81873 -- R&M - S05E01
  22. // 145499 -- R&M - S05E10
  23. // 178071 -- The Night House
  24. //config := config.GetConfig()
  25. //fixer := NewSubTimelineFixerHelper(config.EmbyConfig, config.SubTimelineFixerConfig)
  26. //err := fixer.fixOneVideoSub("178071", "X:\\电影\\The Night House (2021)")
  27. //if err != nil {
  28. // t.Fatal(err)
  29. //}
  30. }