dubbletrack_remote 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 181a168e9a9c822104ed6ab1f50abc3a08813a0014f2838c32ed2a22d014ab1e
4
- data.tar.gz: c59ea7283377b80857f62a80d4cb577220975e3298ac17ad6a2995218f5cc40a
3
+ metadata.gz: da200a7c41fdf5c680e89a74a2424717f90789e950177a60e9d089ef9f072167
4
+ data.tar.gz: c80f31216df67ae33bc569d85d5ea0c64d75b8ad991393b27aed227b067a251f
5
5
  SHA512:
6
- metadata.gz: 5695418121c7082992f346519fdb5c2a47a7d09a487993b83ebddba930fdfe9e7c31684d25f21c3b405914de91463fc116b13dce94a3cc4660076839ca5fda7c
7
- data.tar.gz: '07851eabdf68a7693df72716fe0a375ceb589a13e8664ae0776ea706055af6e6fbe898be8018805d6ddf275aaf417600741277b8fe1fd42cdc9b813af9a87dd3'
6
+ metadata.gz: 47302702a8666b9d6e340937288c5b3016ca045f6ea59797cfdd01ba660256aa8293e32f25fa6dac65e9a7f1b52b58dbaa80cb06d2340f4ecee563855b08bafc
7
+ data.tar.gz: 7fda2dc35136f7d907821f18a63236bee17f7b92f0e5b958d45e6314bbaffce03bc5ea07f2aa6676e017508e3417e8a307564512dcac6468019f39ecb97238a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  dubbletrack remote changelog
2
2
 
3
+ ## [0.7.5](https://github.com/dubbletrack/remote/compare/v0.7.4...v0.7.5) (2023-06-15)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * only ingest cuts that have a guid ([798906a](https://github.com/dubbletrack/remote/commit/798906a184665c0c9d273da1e625fc4a56d8a7ed))
9
+
3
10
  ## [0.7.4](https://github.com/dubbletrack/remote/compare/v0.7.3...v0.7.4) (2023-06-15)
4
11
 
5
12
 
@@ -59,14 +59,14 @@ module DubbletrackRemote
59
59
  else
60
60
  "[ ] "
61
61
  end
62
- duration_s = duration ? " [#{duration}s]" : ""
62
+ duration_s = duration ? " [#{duration}s]" : "[DURATION MISSING]"
63
63
  if track?
64
- line = "TRACK: #{state}#{id}:#{played_at.utc.iso8601}".ljust(30) + "#{title} - #{artist_name}" "\r\n" +
64
+ line = "#{state}#{id}:#{played_at.utc.iso8601}".ljust(30) + " " + "#{title} - #{artist_name}" "\r\n" +
65
65
  " ".ljust(32) + "#{release_name} // #{label_name} \r\n" +
66
66
  " ".ljust(32) + "#{genre}, #{duration_s}, #{automation_group}, #{automation_id}" + "\r\n" +
67
67
  (last_error_code ? "".ljust(30) + "[#{last_error_code}] #{last_error_text}" : "") + "\r\n"
68
68
  elsif traffic?
69
- line = "TRAFFIC: #{state}#{id}:#{played_at.utc.iso8601}".ljust(30) + title.to_s + "\r\n" +
69
+ line = "#{state}#{id}:#{played_at.utc.iso8601}".ljust(30) + " " + title.to_s + "\r\n" +
70
70
  "#{genre}, #{duration_s}, #{automation_group}, #{automation_id}" + "\r\n" +
71
71
  (last_error_code ? "".ljust(30) + "[#{last_error_code}] #{last_error_text}" : "") + "\r\n"
72
72
  else
@@ -43,6 +43,8 @@ module DubbletrackRemote
43
43
  attrs[key] = attrs[key].mb_chars.tidy_bytes.to_s
44
44
  end
45
45
 
46
+ debugger unless attrs["LENGTH"]
47
+
46
48
  attrs
47
49
  end
48
50
 
@@ -51,7 +53,7 @@ module DubbletrackRemote
51
53
  ids = @db.entries.pluck("CUT")
52
54
 
53
55
  @cuts.each do |entry|
54
- if entry && ids.include?(entry.cut)
56
+ if entry && ids.include?(entry.cut) && entry.guid.present?
55
57
  hash[entry.cut] = entry.attributes
56
58
  end
57
59
  end
@@ -83,12 +85,13 @@ module DubbletrackRemote
83
85
  label = (hash["PRODUCER"] || "").strip
84
86
  date = (hash["DATE"] || "").strip
85
87
  time = (hash["ACTSTART"] || "").strip
86
- duration = hash["LENGTH"] || 0
88
+
89
+ debugger if hash["TITLE"] == "PSA CSA Juneteenth 23"
90
+ duration = (hash["LENGTH"] || "0.0").to_f
87
91
  automation_id = (hash["CUT"] || "").strip
88
92
  automation_group = (hash["GROUP"] || "").strip
89
93
  genre = (hash["GENRE"] || "").strip
90
94
  guid = (hash["GUID"] || "").strip
91
- puts date, time, hash
92
95
  played_at = timestamp(date, time)
93
96
 
94
97
  begin
@@ -1,3 +1,3 @@
1
1
  module DubbletrackRemote
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dubbletrack_remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Keen