dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] splitfx: warn on improper encodings for titles


From: Eric Wong
Subject: [PATCH] splitfx: warn on improper encodings for titles
Date: Fri, 1 Apr 2022 09:00:41 +0000

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 @@ def parse_track(argv)
       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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]