mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-19 11:59:02 -07:00
25 lines
653 B
C#
25 lines
653 B
C#
using System;
|
|
using System.IO;
|
|
using MediaBrowser.Controller.Events;
|
|
using MediaBrowser.Controller.Resolvers;
|
|
using MediaBrowser.Movies.Entities;
|
|
|
|
namespace MediaBrowser.Movies.Resolvers
|
|
{
|
|
public class BoxSetResolver : BaseFolderResolver<BoxSet>
|
|
{
|
|
protected override BoxSet Resolve(ItemResolveEventArgs args)
|
|
{
|
|
if (args.IsFolder)
|
|
{
|
|
if (Path.GetFileName(args.Path).IndexOf("[boxset]", StringComparison.OrdinalIgnoreCase) != -1)
|
|
{
|
|
return new BoxSet();
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|