diff options
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/tubo/api/channels.clj (renamed from src/backend/tau/api/channels.clj) | 4 | ||||
-rw-r--r-- | src/backend/tubo/api/comments.clj (renamed from src/backend/tau/api/comments.clj) | 2 | ||||
-rw-r--r-- | src/backend/tubo/api/items.clj (renamed from src/backend/tau/api/items.clj) | 7 | ||||
-rw-r--r-- | src/backend/tubo/api/playlists.clj (renamed from src/backend/tau/api/playlists.clj) | 4 | ||||
-rw-r--r-- | src/backend/tubo/api/services.clj (renamed from src/backend/tau/api/services.clj) | 4 | ||||
-rw-r--r-- | src/backend/tubo/api/streams.clj (renamed from src/backend/tau/api/streams.clj) | 4 | ||||
-rw-r--r-- | src/backend/tubo/core.clj (renamed from src/backend/tau/core.clj) | 4 | ||||
-rw-r--r-- | src/backend/tubo/downloader_impl.clj (renamed from src/backend/tau/downloader_impl.clj) | 12 | ||||
-rw-r--r-- | src/backend/tubo/handler.clj (renamed from src/backend/tau/handler.clj) | 18 | ||||
-rw-r--r-- | src/backend/tubo/http.clj (renamed from src/backend/tau/http.clj) | 6 | ||||
-rw-r--r-- | src/backend/tubo/router.clj (renamed from src/backend/tau/router.clj) | 4 |
11 files changed, 34 insertions, 35 deletions
diff --git a/src/backend/tau/api/channels.clj b/src/backend/tubo/api/channels.clj index 2c82767..f19a65e 100644 --- a/src/backend/tau/api/channels.clj +++ b/src/backend/tubo/api/channels.clj @@ -1,8 +1,8 @@ -(ns tau.api.channels +(ns tubo.api.channels (:require [clojure.java.data :as j] [ring.util.codec :refer [url-decode]] - [tau.api.items :as items]) + [tubo.api.items :as items]) (:import org.schabi.newpipe.extractor.channel.ChannelInfo org.schabi.newpipe.extractor.NewPipe diff --git a/src/backend/tau/api/comments.clj b/src/backend/tubo/api/comments.clj index c0891ea..b4f03ba 100644 --- a/src/backend/tau/api/comments.clj +++ b/src/backend/tubo/api/comments.clj @@ -1,4 +1,4 @@ -(ns tau.api.comments +(ns tubo.api.comments (:require [clojure.java.data :as j] [ring.util.codec :refer [url-decode]]) diff --git a/src/backend/tau/api/items.clj b/src/backend/tubo/api/items.clj index 676af3e..63678c1 100644 --- a/src/backend/tau/api/items.clj +++ b/src/backend/tubo/api/items.clj @@ -1,4 +1,4 @@ -(ns tau.api.items) +(ns tubo.api.items) (defn get-stream-item [stream] @@ -13,9 +13,8 @@ :short-description (.getShortDescription stream) :duration (.getDuration stream) :view-count (when-not (= (.getViewCount stream) -1) (.getViewCount stream)) - :uploaded (if (.getUploadDate stream) - (.. stream (getUploadDate) (offsetDateTime) (toInstant) (toEpochMilli)) - false) + :uploaded (when (.getUploadDate stream) + (.. stream (getUploadDate) (offsetDateTime) (toInstant) (toEpochMilli))) :verified? (.isUploaderVerified stream)}) (defn get-channel-item diff --git a/src/backend/tau/api/playlists.clj b/src/backend/tubo/api/playlists.clj index 5520d2b..9ded200 100644 --- a/src/backend/tau/api/playlists.clj +++ b/src/backend/tubo/api/playlists.clj @@ -1,8 +1,8 @@ -(ns tau.api.playlists +(ns tubo.api.playlists (:require [clojure.java.data :as j] [ring.util.codec :refer [url-decode]] - [tau.api.items :as items]) + [tubo.api.items :as items]) (:import org.schabi.newpipe.extractor.playlist.PlaylistInfo org.schabi.newpipe.extractor.Page diff --git a/src/backend/tau/api/services.clj b/src/backend/tubo/api/services.clj index 8b9638f..0bc44af 100644 --- a/src/backend/tau/api/services.clj +++ b/src/backend/tubo/api/services.clj @@ -1,8 +1,8 @@ -(ns tau.api.services +(ns tubo.api.services (:require [clojure.java.data :as j] [ring.util.codec :refer [url-encode url-decode]] - [tau.api.items :as items]) + [tubo.api.items :as items]) (:import org.schabi.newpipe.extractor.kiosk.KioskInfo org.schabi.newpipe.extractor.kiosk.KioskList diff --git a/src/backend/tau/api/streams.clj b/src/backend/tubo/api/streams.clj index e1bd637..274d5f2 100644 --- a/src/backend/tau/api/streams.clj +++ b/src/backend/tubo/api/streams.clj @@ -1,8 +1,8 @@ -(ns tau.api.streams +(ns tubo.api.streams (:require [clojure.java.data :as j] [ring.util.codec :refer [url-decode]] - [tau.api.items :as items]) + [tubo.api.items :as items]) (:import org.schabi.newpipe.extractor.stream.StreamInfo org.schabi.newpipe.extractor.NewPipe diff --git a/src/backend/tau/core.clj b/src/backend/tubo/core.clj index 662f5b9..a587909 100644 --- a/src/backend/tau/core.clj +++ b/src/backend/tubo/core.clj @@ -1,7 +1,7 @@ -(ns tau.core +(ns tubo.core (:gen-class) (:require - [tau.http :as http])) + [tubo.http :as http])) (defn -main [& _] diff --git a/src/backend/tau/downloader_impl.clj b/src/backend/tubo/downloader_impl.clj index cf355e1..1582159 100644 --- a/src/backend/tau/downloader_impl.clj +++ b/src/backend/tubo/downloader_impl.clj @@ -1,24 +1,24 @@ -(ns tau.downloader-impl +(ns tubo.downloader-impl (:import [org.schabi.newpipe.extractor.downloader Response Request] [okhttp3 Request$Builder OkHttpClient$Builder RequestBody])) (gen-class - :name tau.DownloaderImpl + :name tubo.DownloaderImpl :constructors {[okhttp3.OkHttpClient$Builder] []} :extends org.schabi.newpipe.extractor.downloader.Downloader :init downloader-impl) (gen-class - :name tau.DownloaderImpl + :name tubo.DownloaderImpl :constructors {[okhttp3.OkHttpClient$Builder] []} :extends org.schabi.newpipe.extractor.downloader.Downloader :prefix "-" :main false :state state :init downloader-impl - :methods [#^{:static true} [init [] tau.DownloaderImpl] - #^{:static true} [getInstance [] tau.DownloaderImpl]]) + :methods [#^{:static true} [init [] tubo.DownloaderImpl] + #^{:static true} [getInstance [] tubo.DownloaderImpl]]) (def user-agent "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0") (def instance (atom nil)) @@ -33,7 +33,7 @@ ([] (-init (OkHttpClient$Builder.))) ([builder] - (reset! instance (tau.DownloaderImpl. builder)))) + (reset! instance (tubo.DownloaderImpl. builder)))) (defn -getInstance [] (or @instance (-init))) diff --git a/src/backend/tau/handler.clj b/src/backend/tubo/handler.clj index 3ec4469..2012504 100644 --- a/src/backend/tau/handler.clj +++ b/src/backend/tubo/handler.clj @@ -1,13 +1,13 @@ -(ns tau.handler +(ns tubo.handler (:require [clojure.string :as str] [hiccup.page :as hiccup] [ring.util.response :refer [response]] - [tau.api.streams :as streams] - [tau.api.channels :as channels] - [tau.api.playlists :as playlists] - [tau.api.comments :as comments] - [tau.api.services :as services])) + [tubo.api.streams :as streams] + [tubo.api.channels :as channels] + [tubo.api.playlists :as playlists] + [tubo.api.comments :as comments] + [tubo.api.services :as services])) (defn index [_] @@ -16,12 +16,12 @@ [:head [:meta {:charset "UTF-8"}] [:meta {:name "viewport" :content "width=device-width, initial-scale=1"}] - [:title "Tau"] - (hiccup/include-css "/css/tau.css")] + [:title "Tubo"] + (hiccup/include-css "/css/tubo.css")] [:body [:div#app] (hiccup/include-js "/js/main.js") - [:script "tau.core.init();"]]))) + [:script "tubo.core.init();"]]))) (defn search [{:keys [parameters] :as req}] diff --git a/src/backend/tau/http.clj b/src/backend/tubo/http.clj index cbb5896..9e1359f 100644 --- a/src/backend/tau/http.clj +++ b/src/backend/tubo/http.clj @@ -1,9 +1,9 @@ -(ns tau.http +(ns tubo.http (:require [org.httpkit.server :refer [run-server]] - [tau.router :as router]) + [tubo.router :as router]) (:import - tau.DownloaderImpl + tubo.DownloaderImpl org.schabi.newpipe.extractor.NewPipe org.schabi.newpipe.extractor.localization.Localization)) diff --git a/src/backend/tau/router.clj b/src/backend/tubo/router.clj index 5bab278..73e75ee 100644 --- a/src/backend/tau/router.clj +++ b/src/backend/tubo/router.clj @@ -1,4 +1,4 @@ -(ns tau.router +(ns tubo.router (:require [malli.experimental.lite :as l] [reitit.ring :as ring] @@ -9,7 +9,7 @@ [ring.middleware.params :refer [wrap-params]] [ring.middleware.json :refer [wrap-json-response]] [ring.middleware.cors :refer [wrap-cors]] - [tau.handler :as handler])) + [tubo.handler :as handler])) (def router (ring/router |