dubbletrack_remote 0.7.4 → 0.7.6

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: b3f19a602957d1a970cd29d9c323c5ac127133b938eddd9f988c5d6b8ba9650a
4
+ data.tar.gz: d5d9af295c1882331ca6db41d92afac42661dacc02b7be8581a430f9b729a19d
5
5
  SHA512:
6
- metadata.gz: 5695418121c7082992f346519fdb5c2a47a7d09a487993b83ebddba930fdfe9e7c31684d25f21c3b405914de91463fc116b13dce94a3cc4660076839ca5fda7c
7
- data.tar.gz: '07851eabdf68a7693df72716fe0a375ceb589a13e8664ae0776ea706055af6e6fbe898be8018805d6ddf275aaf417600741277b8fe1fd42cdc9b813af9a87dd3'
6
+ metadata.gz: 9588dd28c7cc4fa3a777b6661890c406880262f4178d7b7e7492c36f7644b9f182631494661bf871010f6f7506fffddf37e29a6da4abcbcc493076356d1d0c4b
7
+ data.tar.gz: 233b9b24c04cb436c9ca9716e0f0ab2350fcabd4a9257b1dfd9350a0b88e2a0ad48a6d840416dc5d4569b31beffde3d89e2faf6e416cbb629110bebe34e681f6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  dubbletrack remote changelog
2
2
 
3
+ ## [0.7.6](https://github.com/dubbletrack/remote/compare/v0.7.5...v0.7.6) (2023-06-15)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * remove debug statements ([8756eef](https://github.com/dubbletrack/remote/commit/8756eef2ff9322eb35d225d42d1c15a505c9db44))
9
+
10
+ ## [0.7.5](https://github.com/dubbletrack/remote/compare/v0.7.4...v0.7.5) (2023-06-15)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * only ingest cuts that have a guid ([798906a](https://github.com/dubbletrack/remote/commit/798906a184665c0c9d273da1e625fc4a56d8a7ed))
16
+
3
17
  ## [0.7.4](https://github.com/dubbletrack/remote/compare/v0.7.3...v0.7.4) (2023-06-15)
4
18
 
5
19
 
@@ -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
@@ -51,7 +51,7 @@ module DubbletrackRemote
51
51
  ids = @db.entries.pluck("CUT")
52
52
 
53
53
  @cuts.each do |entry|
54
- if entry && ids.include?(entry.cut)
54
+ if entry && ids.include?(entry.cut) && entry.guid.present?
55
55
  hash[entry.cut] = entry.attributes
56
56
  end
57
57
  end
@@ -83,12 +83,12 @@ module DubbletrackRemote
83
83
  label = (hash["PRODUCER"] || "").strip
84
84
  date = (hash["DATE"] || "").strip
85
85
  time = (hash["ACTSTART"] || "").strip
86
- duration = hash["LENGTH"] || 0
86
+
87
+ duration = (hash["LENGTH"] || "0.0").to_f
87
88
  automation_id = (hash["CUT"] || "").strip
88
89
  automation_group = (hash["GROUP"] || "").strip
89
90
  genre = (hash["GENRE"] || "").strip
90
91
  guid = (hash["GUID"] || "").strip
91
- puts date, time, hash
92
92
  played_at = timestamp(date, time)
93
93
 
94
94
  begin
@@ -1,3 +1,3 @@
1
1
  module DubbletrackRemote
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.6"
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Keen