Skip to content

Commit

Permalink
Update to Jellyfin 10.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danieladov committed Jan 27, 2022
1 parent f2d4c49 commit 45ba528
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
3 changes: 0 additions & 3 deletions Jellyfin.Plugin.MergeVersions/Api/MergeVersionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@
using Jellyfin.Api.Helpers;

using System.Net.Mime;
using MediaBrowser.Controller.Collections;
using MediaBrowser.Controller.Library;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace Jellyfin.Plugin.MergeVersions.Api
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>true</IsPackable>
<AssemblyVersion>10.7.7.0</AssemblyVersion>
<FileVersion>10.7.7.0</FileVersion>
<AssemblyVersion>10.8.0.0</AssemblyVersion>
<FileVersion>10.8.0.0</FileVersion>
<Authors />
<Company />
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Jellyfin.Controller" Version="10.6.0" />
<PackageReference Include="Jellyfin.Controller" Version="10.8.0-alpha5" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.0" />
<PackageReference Include="SQLitePCL.pretty.netstandard" Version="2.1.0" />
Expand All @@ -23,10 +23,7 @@

<ItemGroup>
<Reference Include="Jellyfin.Api">
<HintPath>..\..\jellyfin\Jellyfin.Api\bin\Debug\net5.0\Jellyfin.Api.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Api">
<HintPath>..\..\..\..\..\..\..\..\..\Program Files\Jellyfin\Server\MediaBrowser.Api.dll</HintPath>
<HintPath>..\..\jellyfin\Jellyfin.Api\bin\Debug\net6.0\Jellyfin.Api.dll</HintPath>
</Reference>
</ItemGroup>

Expand Down
21 changes: 17 additions & 4 deletions Jellyfin.Plugin.MergeVersions/MergeVersionsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using Microsoft.Extensions.Logging;
using Jellyfin.Api.Controllers;
using Jellyfin.Api.Helpers;
using Jellyfin.Data.Enums;



Expand Down Expand Up @@ -59,8 +60,20 @@ TranscodingJobHelper transcodingJobHelper
_userManager = userManager;
_logger = logger;
_timer = new Timer(_ => OnTimerElapsed(), null, Timeout.Infinite, Timeout.Infinite);
_videosController = new VideosController(_libraryManager, _userManager, dtoService, dlnaManager, authContext,
mediaSourceManager, serverConfigurationManager, mediaEncoder, fileSystem, subtitleEncoder, null, deviceManager, transcodingJobHelper, null);
_videosController = new VideosController(
_libraryManager,
_userManager,
dtoService,
dlnaManager,
authContext,
mediaSourceManager,
serverConfigurationManager,
mediaEncoder,
deviceManager,
transcodingJobHelper,
null,
null
);


_fileSystem = fileSystem;
Expand All @@ -72,7 +85,7 @@ private IEnumerable<Movie> GetMoviesFromLibrary()
{
var movies = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] {nameof(Movie)},
IncludeItemTypes = new[] { BaseItemKind.Movie },
IsVirtualItem = false,
Recursive = true,
HasTmdbId = true,
Expand All @@ -88,7 +101,7 @@ private IEnumerable<Episode> GetEpisodesFromLibrary()
{
var episodes = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] { nameof(Episode) },
IncludeItemTypes = new[] { BaseItemKind.Episode},
IsVirtualItem = false,
Recursive = true,

Expand Down

0 comments on commit 45ba528

Please sign in to comment.