Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #76 from jellyfin/baseitemkind
Browse files Browse the repository at this point in the history
  • Loading branch information
crobibero committed Jan 5, 2022
2 parents 8b5f017 + d138990 commit 0960855
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions AutoOrganize/Core/EpisodeFileOrganizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Emby.Naming.Common;
using Emby.Naming.TV;
using Emby.Naming.Video;
using Jellyfin.Data.Enums;
using MediaBrowser.Controller.Dto;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.TV;
Expand Down Expand Up @@ -830,7 +831,7 @@ private Series GetMatchingSeries(string seriesName, int? seriesYear, string targ

var series = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] { typeof(Series).Name },
IncludeItemTypes = new[] { BaseItemKind.Series },
Recursive = true,
DtoOptions = new DtoOptions(true)
})
Expand All @@ -849,7 +850,7 @@ private Series GetMatchingSeries(string seriesName, int? seriesYear, string targ
{
series = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] { typeof(Series).Name },
IncludeItemTypes = new[] { BaseItemKind.Series },
Recursive = true,
Name = info.ItemName,
DtoOptions = new DtoOptions(true)
Expand Down
3 changes: 2 additions & 1 deletion AutoOrganize/Core/MovieFileOrganizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using AutoOrganize.Model;
using Emby.Naming.Common;
using Emby.Naming.Video;
using Jellyfin.Data.Enums;
using MediaBrowser.Controller.Dto;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Movies;
Expand Down Expand Up @@ -478,7 +479,7 @@ private Movie GetMatchingMovie(string movieName, int? movieYear, string targetFo

var movie = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] { typeof(Movie).Name },
IncludeItemTypes = new[] { BaseItemKind.Movie },
Recursive = true,
DtoOptions = new DtoOptions(true),
})
Expand Down

0 comments on commit 0960855

Please sign in to comment.