dubbletrack_remote 0.7.4 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/dubbletrack_remote/item.rb +3 -3
- data/lib/dubbletrack_remote/reader/dbf.rb +3 -3
- data/lib/dubbletrack_remote/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3f19a602957d1a970cd29d9c323c5ac127133b938eddd9f988c5d6b8ba9650a
|
4
|
+
data.tar.gz: d5d9af295c1882331ca6db41d92afac42661dacc02b7be8581a430f9b729a19d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = "
|
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 = "
|
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
|
-
|
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
|