Skip to content

Commit

Permalink
Allow indexing element in Traktor nml files (#43)
Browse files Browse the repository at this point in the history
* Allow indexing element in Traktor nml files

* Use luchiniatwork cambada for native-image alias
  • Loading branch information
alza-bitz authored Sep 6, 2021
1 parent 6cca488 commit 8c9c424
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
"-m" "converter.cli"
"--app-artifact-id" "dj-data-converter"
"--app-version" "SNAPSHOT"]}
:native-image {:extra-deps {luchiniatwork/cambada {:git/url "https://github.com/xfthhxk/cambada.git"
:sha "c8a01477c856fc28c53f34aa3f268f8eaf683869"}}
:native-image {:extra-deps {luchiniatwork/cambada {:mvn/version "1.0.5"}}
:main-opts ["-m" "cambada.native-image"
"-m" "converter.cli"
"--graalvm-opt"
Expand Down
5 changes: 4 additions & 1 deletion src/converter/traktor/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@
:playlists (s/? (std/spec {:name ::playlists
:spec {:tag (s/spec #{:PLAYLISTS})}}))
:sorting-order (s/* (std/spec {:name ::sorting-order
:spec {:tag (s/spec #{:SORTING_ORDER})}})))})
:spec {:tag (s/spec #{:SORTING_ORDER})}}))
:indexing (s/? (std/spec {:name ::indexing
:spec {:tag (s/spec #{:INDEXING})}}))
)})

(defn nml-spec
[config]
Expand Down
1 change: 1 addition & 0 deletions test-resources/collection.nml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@
<CUE_V2 NAME="n.n." DISPL_ORDER="0" TYPE="0" START="325703.367576" LEN="0.000000" REPEATS="-1" HOTCUE="7"></CUE_V2>
</ENTRY>
</COLLECTION>
<INDEXING></INDEXING>
</NML>

0 comments on commit 8c9c424

Please sign in to comment.