mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using System;
|
|
using MediaBrowser.Model.Entities;
|
|
using MediaBrowser.Providers.Tmdb.Models.General;
|
|
|
|
namespace MediaBrowser.Providers.Tmdb
|
|
{
|
|
public static class TmdbUtils
|
|
{
|
|
public const string BaseTmdbUrl = "https://www.themoviedb.org/";
|
|
public const string BaseTmdbApiUrl = "https://api.themoviedb.org/";
|
|
public const string ProviderName = "TheMovieDb";
|
|
public const string ApiKey = "4219e299c89411838049ab0dab19ebd5";
|
|
public const string AcceptHeader = "application/json,image/*";
|
|
|
|
public static string MapCrewToPersonType(Crew crew)
|
|
{
|
|
if (crew.Department.Equals("production", StringComparison.InvariantCultureIgnoreCase)
|
|
&& crew.Job.IndexOf("producer", StringComparison.InvariantCultureIgnoreCase) != -1)
|
|
{
|
|
return PersonType.Producer;
|
|
}
|
|
|
|
if (crew.Department.Equals("writing", StringComparison.InvariantCultureIgnoreCase))
|
|
{
|
|
return PersonType.Writer;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|