File tree 1 file changed +8
-4
lines changed
src/discover_weekly_archivist
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 44
44
(str (#(f/unparse (f/formatters :year-month-day ) %) (get-monday-from-week (t/now ))) " Discover Weekly" ))
45
45
46
46
(defn do-transfer [user-id, token, name, public?]
47
- (let [playlist-name (if (not (nil? name)) name (create-playlist-name ))]
48
- (sptfy-playlist-copier/do-copy :user-id user-id :token token :playlist-name-to-copy " Discover Weekly" :playlist-name-new playlist-name :public? public?)
49
- (println " Done" )))
47
+ (let [playlist-name (if (not (nil? name)) name (create-playlist-name ))
48
+ {:keys [new-playlist-id]} (sptfy-playlist-copier/do-copy :user-id user-id
49
+ :token token
50
+ :playlist-name-to-copy " Discover Weekly"
51
+ :playlist-name-new playlist-name
52
+ :public? public?)]
53
+ (println (str " Success: https://open.spotify.com/user/" user-id " /playlist/" new-playlist-id))))
50
54
51
55
(defn -main [& args]
52
56
(let [{:keys [options arguments errors summary]} (cli/parse-opts args cli-options)]
61
65
(:login options)
62
66
(:token options)
63
67
(:name options)
64
- (:public options))))
68
+ (:public options))))
You can’t perform that action at this time.
0 commit comments