     (catch Exception e 0.0)))
 
 (defn- remove-comma [s]
-  (str/replace-first s "," ""))
+  (string/replace-first s "," ""))
 
 (defn imdb-rating-count [dp]
   (try
     (->> dp
-         (h/select (h/descendant
-                     (h/id :ratings-bar)
-                     h/first-child
-                     (h/class :inline-block)
-                     (h/class :text-muted)))
+         (hickory/select (hickory/descendant
+                           (hickory/id :ratings-bar)
+                           hickory/first-child
+                           (hickory/class :inline-block)
+                           (hickory/class :text-muted)))
          first
          :content
          last


(defn imdb-title [sp]
  (->> sp
       (h/select (h/descendant
                   (h/class :posters)
                   (h/class :poster)
                   (h/class :title)
                   (h/tag :a)))
       first
       :content
       first))

(defn imdb-url [sp]
  (->> sp
       (h/select (h/descendant
                   (h/class :posters)
                   (h/class :poster)
                   (h/class :title)
                   (h/tag :a)))
       (mapv :attrs)
       (mapv :href)
       first

(ns yorck-ratings.core
  (:require [org.httpkit.client :as http]
            [clojure.core.async :as async]
            [hickory.select :as hickory]
            [clojure.string :as string])
  (:use [hickory.core])
  (:import (java.util.regex Pattern)
           (java.net URLEncoder)))
