Skip to content

Commit cb54148

Browse files
committed
Remove AudioBook from search types
1 parent 34a9ee0 commit cb54148

File tree

2 files changed

+9
-9
lines changed
  • .github/workflows
  • src/commonMain/kotlin/com.adamratzman.spotify/endpoints/pub

2 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
test_android_jvm_linux_trusted:
1616
runs-on: ubuntu-latest
17+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
1718
environment: testing
1819
env:
1920
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
@@ -39,9 +40,13 @@ jobs:
3940
with:
4041
name: code-coverage-report
4142
path: build/reports
42-
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
4343
test_android_jvm_linux_untrusted:
4444
runs-on: ubuntu-latest
45+
if:
46+
github.event_name == 'repository_dispatch' &&
47+
github.event.client_payload.slash_command.sha != '' &&
48+
contains(github.event.client_payload.pull_request.head.sha, github.event.client_payload.slash_command.sha) &&
49+
github.event.pull_request.head.repo.full_name != github.repository
4550
environment: testing
4651
env:
4752
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
@@ -68,9 +73,4 @@ jobs:
6873
uses: actions/upload-artifact@v2
6974
with:
7075
name: code-coverage-report
71-
path: build/reports
72-
if:
73-
github.event_name == 'repository_dispatch' &&
74-
github.event.client_payload.slash_command.sha != '' &&
75-
contains(github.event.client_payload.pull_request.head.sha, github.event.client_payload.slash_command.sha) &&
76-
github.event.pull_request.head.repo.full_name != github.repository
76+
path: build/reports

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/pub/SearchApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public open class SearchApi(api: GenericSpotifyApi) : SpotifyEndpoint(api) {
4444
Artist("artist"),
4545
Playlist("playlist"),
4646
Show("show"),
47-
Episode("episode"),
48-
Audiobook("audiobook");
47+
Episode("episode");
48+
//Audiobook("audiobook"); // TODO Spotify API returns 502 when including this in a search
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)