download mana symbols into same directory as other symbols

to simplify the client-side symbol image formatting text code (doesn't
need to determine which symbols are mana and which aren't)
This commit is contained in:
Gered 2016-06-29 10:21:06 -04:00
parent 2c419eeab9
commit 3bc4cc44f8

View file

@ -81,11 +81,13 @@
(defn download-gatherer-symbol-images! (defn download-gatherer-symbol-images!
[] []
;; note: intentionally using "symbols" as type arg to download-gatherer-symbol-image!
;; as it's just simpler to have both sets of images saved into the same "symbols" directory
(println "Downloading mana symbol images from Gatherer") (println "Downloading mana symbol images from Gatherer")
(doseq [symbol-name mana-symbols] (doseq [symbol-name mana-symbols]
(println "Getting images for mana symbol:" symbol-name) (println "Getting images for mana symbol:" symbol-name)
(doseq [size sizes] (doseq [size sizes]
(if-not (download-gatherer-symbol-image! size "mana" symbol-name) (if-not (download-gatherer-symbol-image! size "symbols" symbol-name)
(println "Unable to download" size "image for mana symbol:" symbol-name)))) (println "Unable to download" size "image for mana symbol:" symbol-name))))
; other symbols ; other symbols
(doseq [symbol-name other-symbols] (doseq [symbol-name other-symbols]