File tree 4 files changed +2
-28
lines changed
app/src/main/scala/com/kubukoz/next
4 files changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ object OAuth {
36
36
37
37
def fromKernel [F [_]: Config .Ask : Concurrent ](client : Client [F ], kernel : Kernel [F ]): OAuth [F ] = new OAuth [F ] {
38
38
39
- private val baseUri = uri " https://accounts.spotify.com "
40
-
41
39
def refreshToken (token : RefreshToken ): F [Token ] =
42
40
kernel
43
41
.refreshToken(token)
Original file line number Diff line number Diff line change 1
1
package com .kubukoz .next
2
2
3
- import cats .ApplicativeError
4
3
import cats .FlatMap
5
4
import cats .MonadError
6
5
import cats .data .OptionT
7
6
import cats .effect .Concurrent
8
- import cats .effect .Ref
9
7
import cats .implicits .*
10
- import com .kubukoz .next .api .sonos
11
8
import com .kubukoz .next .client .spotify .Item
12
9
import com .kubukoz .next .client .spotify .Player
13
10
import com .kubukoz .next .client .spotify .PlayerContext
14
- import com .kubukoz .next .client .spotify .TrackUri
15
11
import com .kubukoz .next .sonos .GroupId
16
12
import com .kubukoz .next .sonos .Milliseconds
17
13
import com .kubukoz .next .sonos .SonosApi
18
14
import com .kubukoz .next .spotify .SpotifyApi
19
15
import com .kubukoz .next .spotify .Track
20
- import io .circe .syntax .*
21
- import org .http4s .Method .DELETE
22
- import org .http4s .Method .POST
23
- import org .http4s .Method .PUT
24
- import org .http4s .Request
25
- import org .http4s .Status
26
- import org .http4s .Uri
27
- import org .http4s .circe .CirceEntityCodec .*
28
- import org .http4s .client .Client
29
-
30
- import scala .concurrent .duration .*
31
16
import scala .util .chaining .*
32
17
import cats .data .NonEmptyList
33
- import com .kubukoz .next .client .spotify .PlaylistUri
18
+ import org .http4s .Status
19
+ import concurrent .duration .*
34
20
35
21
trait Spotify [F [_]] {
36
22
def skipTrack : F [Unit ]
Original file line number Diff line number Diff line change @@ -6,13 +6,6 @@ import cats.effect.Ref
6
6
import cats .implicits .*
7
7
import com .kubukoz .next .Spotify .DeviceInfo
8
8
import com .kubukoz .next .Spotify .SonosInfo
9
- import com .kubukoz .next .api .sonos
10
- import com .kubukoz .next .client .spotify .Item
11
- import com .kubukoz .next .client .spotify .Player
12
- import com .kubukoz .next .client .spotify .PlayerContext
13
- import com .kubukoz .next .client .spotify .TrackUri
14
- import io .circe .syntax .*
15
- import scala .concurrent .duration .*
16
9
import cats .data .NonEmptyList
17
10
18
11
trait SpotifyChoice [F [_]] {
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ import org.http4s.client.Client
15
15
import org .http4s .headers .`Content-Type`
16
16
import org .http4s .headers .Authorization
17
17
import org .http4s .EntityEncoder
18
- import org .http4s .Uri .Path
19
- import java .nio .charset .StandardCharsets
20
- import org .http4s .Uri .Path .Segment
21
18
22
19
object middlewares {
23
20
You can’t perform that action at this time.
0 commit comments