    (c-player app-state initial-load? playlist-index show-playlist fullscreen)
    (c-playlist app-state)])
 
-(playlist/reload app-state)
-
 (rum/mount (app) (.querySelector js/document "#app"))
 


(secretary/set-config! :prefix "#")

;;(set-hash! (str "/r/" (-> @app-state :subreddit)))

;; Providing Channels via /r/
(defroute subreddit-path "/r/:subreddit" 
  [subreddit]
  (swap! app-state assoc :subreddit subreddit))

(defroute subreddit-path-with-index #"/r/([\w\d]+)/(\d+)"
  [subreddit index]
  (swap! app-state assoc
         :subreddit subreddit
         :playlist-selected-index (parse-int index)
         ))

;; Quick and dirty history configuration.
(let [h (History.)]

            [goog.history.EventType :as EventType]

            ;; Local
            [redditv.utils :refer [parse-int set-hash! force-app-reload!]]
            [redditv.player :as p]
            [redditv.youtube :as yt]
            [redditv.utils :as utils]
