diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05db03e1..8c670f6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,9 +94,9 @@ jobs: run: | failures=(neutral, skipped, timed_out, action_required) if [[ ${array[@]} =~ $WORKFLOW_CONCLUSION ]]; then - echo ::set-output name=status::failure + echo "status=failure" >> $GITHUB_OUTPUT else - echo ::set-output name=status::$WORKFLOW_CONCLUSION + echo "status=$WORKFLOW_CONCLUSION" >> $GITHUB_OUTPUT fi - name: Post Status to Discord uses: sarisia/actions-status-discord@v1 diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 6e0d8f3d..e1e93de0 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v3 - name: Get the version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd6b2616..fb609e53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,9 +69,9 @@ jobs: run: | git fetch --prune --tags if [[ $GITHUB_REF == refs/tags/* || $GITHUB_REF == refs/heads/master ]]; then - echo ::set-output name=RELEASE::stable + echo "RELEASE=stable" >> $GITHUB_OUTPUT else - echo ::set-output name=RELEASE::edge + echo "RELEASE=edge" >> $GITHUB_OUTPUT fi - name: Set Up QEMU uses: docker/setup-qemu-action@v2 @@ -93,8 +93,9 @@ jobs: snap: ${{ steps.build.outputs.snap }} - name: Publish Snap Package uses: snapcore/action-publish@v1 + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_LOGIN }} with: - store_login: ${{ secrets.SNAP_LOGIN }} snap: ${{ steps.build.outputs.snap }} release: ${{ steps.prepare.outputs.RELEASE }} @@ -111,9 +112,9 @@ jobs: run: | failures=(neutral, skipped, timed_out, action_required) if [[ ${array[@]} =~ $WORKFLOW_CONCLUSION ]]; then - echo ::set-output name=status::failure + echo "status=failure" >> $GITHUB_OUTPUT else - echo ::set-output name=status::$WORKFLOW_CONCLUSION + echo "status=$WORKFLOW_CONCLUSION" >> $GITHUB_OUTPUT fi - name: Post Status to Discord uses: sarisia/actions-status-discord@v1 diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml index bf00e04d..880c1d9e 100644 --- a/.github/workflows/snap.yaml +++ b/.github/workflows/snap.yaml @@ -35,9 +35,9 @@ jobs: run: | git fetch --prune --unshallow --tags if [[ $GITHUB_REF == refs/tags/* || $GITHUB_REF == refs/heads/master ]]; then - echo ::set-output name=RELEASE::stable + echo "RELEASE=stable" >> $GITHUB_OUTPUT else - echo ::set-output name=RELEASE::edge + echo "RELEASE=edge" >> $GITHUB_OUTPUT fi - name: Set Up QEMU uses: docker/setup-qemu-action@v2 @@ -57,8 +57,9 @@ jobs: snap: ${{ steps.build.outputs.snap }} - name: Publish Snap Package uses: snapcore/action-publish@v1 + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_LOGIN }} with: - store_login: ${{ secrets.SNAP_LOGIN }} snap: ${{ steps.build.outputs.snap }} release: ${{ steps.prepare.outputs.RELEASE }} @@ -75,9 +76,9 @@ jobs: run: | failures=(neutral, skipped, timed_out, action_required) if [[ ${array[@]} =~ $WORKFLOW_CONCLUSION ]]; then - echo ::set-output name=status::failure + echo "status=failure" >> $GITHUB_OUTPUT else - echo ::set-output name=status::$WORKFLOW_CONCLUSION + echo "status=$WORKFLOW_CONCLUSION" >> $GITHUB_OUTPUT fi - name: Post Status to Discord uses: sarisia/actions-status-discord@v1 diff --git a/overseerr-api.yml b/overseerr-api.yml index ef31c749..443a9c94 100644 --- a/overseerr-api.yml +++ b/overseerr-api.yml @@ -4418,7 +4418,7 @@ paths: - in: query name: genre schema: - type: number + type: string example: 18 - in: query name: network diff --git a/server/api/themoviedb/index.ts b/server/api/themoviedb/index.ts index 7aad32c1..4c931ff9 100644 --- a/server/api/themoviedb/index.ts +++ b/server/api/themoviedb/index.ts @@ -85,7 +85,7 @@ interface DiscoverTvOptions { voteAverageLte?: string; includeEmptyReleaseDate?: boolean; originalLanguage?: string; - genre?: number; + genre?: string; network?: number; keywords?: string; sortBy?: SortOptions; diff --git a/server/routes/discover.ts b/server/routes/discover.ts index ce9e3aff..2c3c665f 100644 --- a/server/routes/discover.ts +++ b/server/routes/discover.ts @@ -356,7 +356,7 @@ discoverRoutes.get('/tv', async (req, res, next) => { page: Number(query.page), sortBy: query.sortBy as SortOptions, language: req.locale ?? query.language, - genre: query.genre ? Number(query.genre) : undefined, + genre: query.genre, network: query.network ? Number(query.network) : undefined, firstAirDateLte: query.firstAirDateLte ? new Date(query.firstAirDateLte).toISOString().split('T')[0] @@ -491,7 +491,7 @@ discoverRoutes.get<{ genreId: string }>( const data = await tmdb.getDiscoverTv({ page: Number(req.query.page), language: req.locale ?? (req.query.language as string), - genre: Number(req.params.genreId), + genre: req.params.genreId, }); const media = await Media.getRelatedMedia( @@ -770,7 +770,9 @@ discoverRoutes.get<{ language: string }, GenreSliderItem[]>( await Promise.all( genres.map(async (genre) => { - const genreData = await tmdb.getDiscoverTv({ genre: genre.id }); + const genreData = await tmdb.getDiscoverTv({ + genre: genre.id.toString(), + }); mappedGenres.push({ id: genre.id, diff --git a/src/components/Discover/DiscoverTv/index.tsx b/src/components/Discover/DiscoverTv/index.tsx index bd3a1701..52739367 100644 --- a/src/components/Discover/DiscoverTv/index.tsx +++ b/src/components/Discover/DiscoverTv/index.tsx @@ -91,10 +91,10 @@ const DiscoverTv = () => { - -