about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-04-01 08:58:44 +0000
committerEric Wong <e@80x24.org>2022-07-16 06:13:00 +0000
commit2cfb6b0a1a92bbfd1811a15893ac9563f027c0c4 (patch)
treed24e8baf6f040b7831e340fbbec8c5f9a3769078
parent7e3d2bf2f097c2f9a226f93a2ec7fac3688f0a0e (diff)
downloaddtas-2cfb6b0a1a92bbfd1811a15893ac9563f027c0c4.tar.gz
Sometimes I get non-English song titles and copy+paste them from
non-UTF8 texts.
-rw-r--r--lib/dtas/splitfx.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb
index 1584e16..bb31ab5 100644
--- a/lib/dtas/splitfx.rb
+++ b/lib/dtas/splitfx.rb
@@ -290,6 +290,7 @@ class DTAS::SplitFX # :nodoc:
       t = T.new
       t.tbeg = @t2s.call(start_time)
       t.comments = @comments.dup
+      title.valid_encoding? or warn "#{title.inspect} encoding invalid"
       t.comments["TITLE"] = title
       t.env = @env.dup