mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
fully replaced TVDB with Trakt.tv
This commit is contained in:
parent
af3282630f
commit
a052a9389e
63 changed files with 353 additions and 2529 deletions
8
NzbDrone.Core/MetadataSource/Trakt/Actor.cs
Normal file
8
NzbDrone.Core/MetadataSource/Trakt/Actor.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class Actor
|
||||
{
|
||||
public string name { get; set; }
|
||||
public string character { get; set; }
|
||||
}
|
||||
}
|
18
NzbDrone.Core/MetadataSource/Trakt/Episode.cs
Normal file
18
NzbDrone.Core/MetadataSource/Trakt/Episode.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
|
||||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class Episode
|
||||
{
|
||||
public int season { get; set; }
|
||||
public int episode { get; set; }
|
||||
public int number { get; set; }
|
||||
public int tvdb_id { get; set; }
|
||||
public string title { get; set; }
|
||||
public string overview { get; set; }
|
||||
public DateTime? first_aired { get; set; }
|
||||
public string url { get; set; }
|
||||
public string screen { get; set; }
|
||||
public Ratings ratings { get; set; }
|
||||
}
|
||||
}
|
9
NzbDrone.Core/MetadataSource/Trakt/Images.cs
Normal file
9
NzbDrone.Core/MetadataSource/Trakt/Images.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class Images
|
||||
{
|
||||
public string poster { get; set; }
|
||||
public string fanart { get; set; }
|
||||
public string banner { get; set; }
|
||||
}
|
||||
}
|
9
NzbDrone.Core/MetadataSource/Trakt/People.cs
Normal file
9
NzbDrone.Core/MetadataSource/Trakt/People.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class People
|
||||
{
|
||||
public List<Actor> actors { get; set; }
|
||||
}
|
||||
}
|
10
NzbDrone.Core/MetadataSource/Trakt/Ratings.cs
Normal file
10
NzbDrone.Core/MetadataSource/Trakt/Ratings.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class Ratings
|
||||
{
|
||||
public int percentage { get; set; }
|
||||
public int votes { get; set; }
|
||||
public int loved { get; set; }
|
||||
public int hated { get; set; }
|
||||
}
|
||||
}
|
12
NzbDrone.Core/MetadataSource/Trakt/Season.cs
Normal file
12
NzbDrone.Core/MetadataSource/Trakt/Season.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class Season
|
||||
{
|
||||
public int season { get; set; }
|
||||
public List<Episode> episodes { get; set; }
|
||||
public string url { get; set; }
|
||||
public string poster { get; set; }
|
||||
}
|
||||
}
|
34
NzbDrone.Core/MetadataSource/Trakt/Show.cs
Normal file
34
NzbDrone.Core/MetadataSource/Trakt/Show.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class Show
|
||||
{
|
||||
public string title { get; set; }
|
||||
public int year { get; set; }
|
||||
public string url { get; set; }
|
||||
public DateTime? first_aired { get; set; }
|
||||
public string country { get; set; }
|
||||
public string overview { get; set; }
|
||||
public int runtime { get; set; }
|
||||
public string status { get; set; }
|
||||
public string network { get; set; }
|
||||
public string air_day { get; set; }
|
||||
public string air_time { get; set; }
|
||||
public string certification { get; set; }
|
||||
public string imdb_id { get; set; }
|
||||
public int tvdb_id { get; set; }
|
||||
public int tvrage_id { get; set; }
|
||||
public int last_updated { get; set; }
|
||||
public string poster { get; set; }
|
||||
public Images images { get; set; }
|
||||
public List<TopWatcher> top_watchers { get; set; }
|
||||
public List<TopEpisode> top_episodes { get; set; }
|
||||
public Ratings ratings { get; set; }
|
||||
public Stats stats { get; set; }
|
||||
public People people { get; set; }
|
||||
public List<string> genres { get; set; }
|
||||
public List<Season> seasons { get; set; }
|
||||
}
|
||||
}
|
14
NzbDrone.Core/MetadataSource/Trakt/Stats.cs
Normal file
14
NzbDrone.Core/MetadataSource/Trakt/Stats.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class Stats
|
||||
{
|
||||
public int watchers { get; set; }
|
||||
public int plays { get; set; }
|
||||
public int scrobbles { get; set; }
|
||||
public int scrobbles_unique { get; set; }
|
||||
public int checkins { get; set; }
|
||||
public int checkins_unique { get; set; }
|
||||
public int collection { get; set; }
|
||||
public int collection_unique { get; set; }
|
||||
}
|
||||
}
|
12
NzbDrone.Core/MetadataSource/Trakt/TopEpisode.cs
Normal file
12
NzbDrone.Core/MetadataSource/Trakt/TopEpisode.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class TopEpisode
|
||||
{
|
||||
public int plays { get; set; }
|
||||
public int season { get; set; }
|
||||
public int number { get; set; }
|
||||
public string title { get; set; }
|
||||
public string url { get; set; }
|
||||
public int first_aired { get; set; }
|
||||
}
|
||||
}
|
17
NzbDrone.Core/MetadataSource/Trakt/TopWatcher.cs
Normal file
17
NzbDrone.Core/MetadataSource/Trakt/TopWatcher.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
namespace NzbDrone.Core.MetadataSource.Trakt
|
||||
{
|
||||
public class TopWatcher
|
||||
{
|
||||
public int plays { get; set; }
|
||||
public string username { get; set; }
|
||||
public bool @protected { get; set; }
|
||||
public object full_name { get; set; }
|
||||
public object gender { get; set; }
|
||||
public string age { get; set; }
|
||||
public object location { get; set; }
|
||||
public object about { get; set; }
|
||||
public int joined { get; set; }
|
||||
public string avatar { get; set; }
|
||||
public string url { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue