You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When id3v2 field TRD is non-empty, dropcaster tries to parse pubDate from that field, but unfortunately there's a typo in the parse line and it is looking for nonexistent field TDR. I'm suggesting following change (fix typo and use v2.3 field names)
diff --git a/lib/dropcaster/item.rb b/lib/dropcaster/item.rb
index 323afa8..5b8df16 100644
--- a/lib/dropcaster/item.rb
+++ b/lib/dropcaster/item.rb
@@ -27,11 +27,11 @@ module Dropcaster
@file_size = File.new(file_path).stat.size
@uuid = Digest::SHA1.hexdigest(File.read(file_path))
- if tag2.TRD.blank?
+ if tag2.TRDA.blank?
logger.info("#{file_path} has no pub date set, using the file's modification time")
@pub_date = Time.parse(File.new(file_path).mtime.to_s)
else
- @pub_date = Time.parse(tag2.TDR)
+ @pub_date = Time.parse(tag2.TRDA)
end
end
end
The text was updated successfully, but these errors were encountered:
When id3v2 field TRD is non-empty, dropcaster tries to parse pubDate from that field, but unfortunately there's a typo in the parse line and it is looking for nonexistent field TDR. I'm suggesting following change (fix typo and use v2.3 field names)
The text was updated successfully, but these errors were encountered: