From 2cfb6b0a1a92bbfd1811a15893ac9563f027c0c4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 1 Apr 2022 08:58:44 +0000 Subject: splitfx: warn on improper encodings for titles Sometimes I get non-English song titles and copy+paste them from non-UTF8 texts. --- lib/dtas/splitfx.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-24-ge0c7