mirror of
https://github.com/jellyfin/jellyfin-plugin-trakt.git
synced 2024-11-23 13:50:15 +00:00
10.8 support
This commit is contained in:
parent
baba7a9c35
commit
ebcfbcb711
3
.github/workflows/build-dotnet.yml
vendored
3
.github/workflows/build-dotnet.yml
vendored
@ -19,7 +19,8 @@ jobs:
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
dotnet-version: 6.0.x
|
||||
include-prerelease: true
|
||||
|
||||
- name: Build Jellyfin Plugin
|
||||
uses: oddstr13/jellyfin-plugin-repository-manager@v0.4.2
|
||||
|
3
.github/workflows/codeql-analysis.yml
vendored
3
.github/workflows/codeql-analysis.yml
vendored
@ -30,7 +30,8 @@ jobs:
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
dotnet-version: 6.0.x
|
||||
include-prerelease: true
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
|
21
.github/workflows/command-dispatch.yaml
vendored
Normal file
21
.github/workflows/command-dispatch.yaml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
# Allows for the definition of PR and Issue /commands
|
||||
name: Slash Command Dispatcher
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types:
|
||||
- created
|
||||
|
||||
jobs:
|
||||
launcher:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Command Dispatch
|
||||
uses: peter-evans/slash-command-dispatch@v2
|
||||
with:
|
||||
token: ${{ secrets.JF_BOT_TOKEN }}
|
||||
permission: write
|
||||
issue-type: pull-request
|
||||
commands: |-
|
||||
rebase
|
||||
update-prep
|
34
.github/workflows/command-rebase.yaml
vendored
Normal file
34
.github/workflows/command-rebase.yaml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: PR Rebase Command
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
types:
|
||||
- rebase-command
|
||||
|
||||
jobs:
|
||||
rebase:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Rebase PR
|
||||
uses: peter-evans/rebase@v1
|
||||
id: rebase
|
||||
with:
|
||||
head: ${{ github.event.client_payload.pull_request.head.label }}
|
||||
|
||||
- name: Add Success Reaction
|
||||
if: ${{ steps.rebase.outputs.rebased-count == 1 }}
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
with:
|
||||
token: ${{ secrets.JF_BOT_TOKEN }}
|
||||
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
|
||||
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
|
||||
reaction-type: hooray
|
||||
|
||||
- name: Add Failure Reaction
|
||||
if: ${{ steps.rebase.outputs.rebased-count == 0 || failure() }}
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
with:
|
||||
token: ${{ secrets.JF_BOT_TOKEN }}
|
||||
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
|
||||
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
|
||||
reaction-type: confused, -1
|
3
.github/workflows/test-dotnet.yml
vendored
3
.github/workflows/test-dotnet.yml
vendored
@ -19,7 +19,8 @@ jobs:
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
dotnet-version: 6.0.x
|
||||
include-prerelease: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
|
22
.github/workflows/update-release-draft.yml
vendored
22
.github/workflows/update-release-draft.yml
vendored
@ -1,11 +1,16 @@
|
||||
# Automates creation of Release Drafts using Release Drafter
|
||||
name: Update Release Draft
|
||||
name: Update Release Draft & Create Release Bump PR
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths-ignore:
|
||||
- build.yaml
|
||||
workflow_dispatch:
|
||||
repository_dispatch:
|
||||
types:
|
||||
- update-prep-command
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
@ -23,9 +28,9 @@ jobs:
|
||||
- name: Setup YQ
|
||||
uses: chrisdickinson/setup-yq@latest
|
||||
with:
|
||||
yq-version: v4.9.6
|
||||
yq-version: v4.12.2
|
||||
|
||||
- name: Parse changelog
|
||||
- name: Set-up Environment
|
||||
run: |
|
||||
TAG="${{ steps.draft.outputs.tag_name }}"
|
||||
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
|
||||
@ -41,16 +46,22 @@ jobs:
|
||||
cat cl.md >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
|
||||
echo "HAS_CHANGES=$(grep -qie 'No changes$' cl.md && echo false || echo true)" >> $GITHUB_ENV
|
||||
rm cl.md
|
||||
|
||||
- name: Checkout repository
|
||||
echo "ABI_VERSION=$(curl -s https://api.jellyfin.org/openapi/jellyfin-openapi-stable.json | jq -r '.info.version').0" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout Repository
|
||||
if: ${{ env.HAS_CHANGES == 'true' }}
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Update build.yaml
|
||||
if: ${{ env.HAS_CHANGES == 'true' }}
|
||||
run: |
|
||||
yq eval '.version = env(VERSION) | .changelog = strenv(CHANGELOG) | .changelog style="literal"' -i build.yaml
|
||||
yq eval '.version = env(VERSION) | .targetAbi = env(ABI_VERSION) | .changelog = strenv(CHANGELOG) | .changelog style="literal"' -i build.yaml
|
||||
|
||||
- name: Commit Changes
|
||||
if: ${{ env.HAS_CHANGES == 'true' }}
|
||||
run: |
|
||||
git config user.name "jellyfin-bot"
|
||||
git config user.email "team@jellyfin.org"
|
||||
@ -59,6 +70,7 @@ jobs:
|
||||
git push -f origin prepare-${{ env.VERSION }}
|
||||
|
||||
- name: Create or Update PR
|
||||
if: ${{ env.HAS_CHANGES == 'true' }}
|
||||
uses: k3rnels-actions/pr-update@v1
|
||||
with:
|
||||
token: ${{ secrets.JF_BOT_TOKEN }}
|
||||
|
@ -5,7 +5,6 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using Microsoft.Net.Http.Headers;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@ -30,8 +29,8 @@ using TraktEpisodeCollected = Trakt.Api.DataContracts.Sync.Collection.TraktEpiso
|
||||
using TraktMovieCollected = Trakt.Api.DataContracts.Sync.Collection.TraktMovieCollected;
|
||||
using TraktShowCollected = Trakt.Api.DataContracts.Sync.Collection.TraktShowCollected;
|
||||
using System.Text.Json;
|
||||
using MediaBrowser.Common.Json;
|
||||
using System.Net.Mime;
|
||||
using Jellyfin.Extensions.Json;
|
||||
|
||||
namespace Trakt.Api
|
||||
{
|
||||
@ -47,7 +46,7 @@ namespace Trakt.Api
|
||||
private readonly IServerApplicationHost _appHost;
|
||||
private readonly IUserDataManager _userDataManager;
|
||||
private readonly IFileSystem _fileSystem;
|
||||
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.GetOptions();
|
||||
private readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
|
||||
|
||||
public TraktApi(
|
||||
ILogger<TraktApi> logger,
|
||||
|
@ -22,7 +22,7 @@ namespace Trakt
|
||||
public override string Name => "Trakt";
|
||||
|
||||
/// <inheritdoc />
|
||||
public override Guid Id { get; } = new Guid("4fe3201e-d6ae-4f2e-8917-e12bda571281");
|
||||
public override Guid Id => new Guid("4fe3201e-d6ae-4f2e-8917-e12bda571281");
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string Description
|
||||
|
@ -19,8 +19,6 @@ using Trakt.Api;
|
||||
using Trakt.Api.DataContracts.Sync;
|
||||
using Trakt.Helpers;
|
||||
using Trakt.Model;
|
||||
using System.Text.Json;
|
||||
using MediaBrowser.Common.Json;
|
||||
|
||||
namespace Trakt.ScheduledTasks
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<AssemblyVersion>12.0.0.0</AssemblyVersion>
|
||||
<FileVersion>12.0.0.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
@ -4,7 +4,7 @@ guid: "4fe3201e-d6ae-4f2e-8917-e12bda571281"
|
||||
imageUrl: "https://repo.jellyfin.org/releases/plugin/images/jellyfin-plugin-trakt.png"
|
||||
version: "12.0.0.0"
|
||||
targetAbi: "10.7.0.0"
|
||||
framework: "net5.0"
|
||||
framework: "net6.0"
|
||||
owner: "jellyfin"
|
||||
overview: "Record your watched media with Trakt"
|
||||
description: >
|
||||
|
Loading…
Reference in New Issue
Block a user