Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit b48f6b7

Browse files
[v2] Add TMDB json tests (#153 #158)
1 parent 2aba68f commit b48f6b7

26 files changed

+1005
-18
lines changed

src/Trakt.NET.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Trakt.NET.HttpClientFactory
126126
EndProject
127127
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trakt.NET.Extensions.TMDB", "libs\Trakt.NET.Extensions.TMDB\Trakt.NET.Extensions.TMDB.csproj", "{5E6FE4C0-07D9-010B-E19B-DA162549E9E3}"
128128
EndProject
129-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "shared", "shared", "{B88173E7-DD80-40D7-B443-73E914D48D26}"
130-
ProjectSection(SolutionItems) = preProject
131-
libs\shared\Directory.Build.props = libs\shared\Directory.Build.props
132-
EndProjectSection
133-
EndProject
134129
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trakt.NET.Extensions.TMDB.Tests", "tests\libs\Trakt.NET.Extensions.TMDB.Tests\Trakt.NET.Extensions.TMDB.Tests.csproj", "{CC693155-5F85-4C13-9082-8B9443FB85DA}"
135130
EndProject
136131
Global
@@ -215,7 +210,6 @@ Global
215210
{991F0FB1-CDFD-412E-B7B2-81946E12D6D7} = {50AD22EC-EB56-476B-8DCE-4AF2B5BD8B09}
216211
{AE64986B-39E8-49C2-A3E0-48FBA888B437} = {E7B2A7FC-F550-4546-8F2C-6FC9AA49F6B5}
217212
{5E6FE4C0-07D9-010B-E19B-DA162549E9E3} = {E7B2A7FC-F550-4546-8F2C-6FC9AA49F6B5}
218-
{B88173E7-DD80-40D7-B443-73E914D48D26} = {377A7F6A-A4B9-45F6-AB2A-492F0E1F71AD}
219213
{CC693155-5F85-4C13-9082-8B9443FB85DA} = {50AD22EC-EB56-476B-8DCE-4AF2B5BD8B09}
220214
EndGlobalSection
221215
GlobalSection(ExtensibilityGlobals) = postSolution

src/libs/Trakt.NET.Extensions.TMDB/Enums/TMDBStillSize.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public enum TMDBStillSize
66
Unspecified,
77

88
[TraktEnumMember(JsonValue = "w92", DisplayName = "Width 92")]
9-
Width82,
9+
Width92,
1010

1111
[TraktEnumMember(JsonValue = "w185", DisplayName = "Width 185")]
1212
Width185,
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"change_keys": [
3+
"adult",
4+
"air_date",
5+
"also_known_as",
6+
"alternative_titles",
7+
"biography",
8+
"birthday",
9+
"budget",
10+
"cast",
11+
"certifications",
12+
"character_names",
13+
"created_by",
14+
"crew",
15+
"deathday",
16+
"episode",
17+
"episode_number",
18+
"episode_run_time",
19+
"freebase_id",
20+
"freebase_mid",
21+
"general",
22+
"genres",
23+
"guest_stars",
24+
"homepage",
25+
"images",
26+
"imdb_id",
27+
"languages",
28+
"name",
29+
"network",
30+
"origin_country",
31+
"original_name",
32+
"original_title",
33+
"overview",
34+
"parts",
35+
"place_of_birth",
36+
"plot_keywords",
37+
"production_code",
38+
"production_companies",
39+
"production_countries",
40+
"releases",
41+
"revenue",
42+
"runtime",
43+
"season",
44+
"season_number",
45+
"season_regular",
46+
"spoken_languages",
47+
"status",
48+
"tagline",
49+
"title",
50+
"translations",
51+
"tvdb_id",
52+
"tvrage_id",
53+
"type",
54+
"video",
55+
"videos"
56+
],
57+
"images": {
58+
"base_url": "http://image.tmdb.org/t/p/",
59+
"secure_base_url": "https://image.tmdb.org/t/p/",
60+
"backdrop_sizes": [
61+
"w300",
62+
"w780",
63+
"w1280",
64+
"original"
65+
],
66+
"logo_sizes": [
67+
"w45",
68+
"w92",
69+
"w154",
70+
"w185",
71+
"w300",
72+
"w500",
73+
"original"
74+
],
75+
"poster_sizes": [
76+
"w92",
77+
"w154",
78+
"w185",
79+
"w342",
80+
"w500",
81+
"w780",
82+
"original"
83+
],
84+
"profile_sizes": [
85+
"w45",
86+
"w185",
87+
"h632",
88+
"original"
89+
],
90+
"still_sizes": [
91+
"w92",
92+
"w185",
93+
"w300",
94+
"original"
95+
]
96+
}
97+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"base_url": "http://image.tmdb.org/t/p/",
3+
"secure_base_url": "https://image.tmdb.org/t/p/",
4+
"backdrop_sizes": [
5+
"w300",
6+
"w780",
7+
"w1280",
8+
"original"
9+
],
10+
"logo_sizes": [
11+
"w45",
12+
"w92",
13+
"w154",
14+
"w185",
15+
"w300",
16+
"w500",
17+
"original"
18+
],
19+
"poster_sizes": [
20+
"w92",
21+
"w154",
22+
"w185",
23+
"w342",
24+
"w500",
25+
"w780",
26+
"original"
27+
],
28+
"profile_sizes": [
29+
"w45",
30+
"w185",
31+
"h632",
32+
"original"
33+
],
34+
"still_sizes": [
35+
"w92",
36+
"w185",
37+
"w300",
38+
"original"
39+
]
40+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"id": 63056,
3+
"stills": [
4+
{
5+
"aspect_ratio": 1.778,
6+
"height": 1080,
7+
"iso_639_1": null,
8+
"file_path": "/9hGF3WUkBf7cSjMg0cdMDHJkByd.jpg",
9+
"vote_average": 6.312,
10+
"vote_count": 8,
11+
"width": 1920
12+
},
13+
{
14+
"aspect_ratio": 1.778,
15+
"height": 1080,
16+
"iso_639_1": null,
17+
"file_path": "/wrGWeW4WKxnaeA8sxJb2T9O6ryo.jpg",
18+
"vote_average": 5.06,
19+
"vote_count": 11,
20+
"width": 1920
21+
}
22+
]
23+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"aspect_ratio": 1.778,
3+
"height": 2160,
4+
"iso_639_1": "en",
5+
"file_path": "/ueDw7djPgKPZfph0vC43aD2EMyF.jpg",
6+
"vote_average": 6.346,
7+
"vote_count": 13,
8+
"width": 3840
9+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"backdrops": [
3+
{
4+
"aspect_ratio": 1.778,
5+
"height": 2160,
6+
"iso_639_1": null,
7+
"file_path": "/ueDw7djPgKPZfph0vC43aD2EMyF.jpg",
8+
"vote_average": 6.346,
9+
"vote_count": 13,
10+
"width": 3840
11+
},
12+
{
13+
"aspect_ratio": 1.778,
14+
"height": 1620,
15+
"iso_639_1": null,
16+
"file_path": "/odblUdMERDmhQ4ei9Ja8tRZ4br6.jpg",
17+
"vote_average": 5.786,
18+
"vote_count": 7,
19+
"width": 2880
20+
}
21+
],
22+
"id": 85,
23+
"logos": [
24+
{
25+
"aspect_ratio": 2.893,
26+
"height": 271,
27+
"iso_639_1": "en",
28+
"file_path": "/yCZMIJaNriW79rR8NL4Kiq1mvWr.png",
29+
"vote_average": 3.334,
30+
"vote_count": 2,
31+
"width": 784
32+
},
33+
{
34+
"aspect_ratio": 2.9,
35+
"height": 269,
36+
"iso_639_1": "en",
37+
"file_path": "/hZMakoW3Uh8ZGDMYVFMuj7KoaLa.png",
38+
"vote_average": 3.334,
39+
"vote_count": 1,
40+
"width": 780
41+
}
42+
],
43+
"posters": [
44+
{
45+
"aspect_ratio": 0.667,
46+
"height": 3000,
47+
"iso_639_1": "en",
48+
"file_path": "/ceG9VzoRAVGwivFU403Wc3AHRys.jpg",
49+
"vote_average": 4.854,
50+
"vote_count": 48,
51+
"width": 2000
52+
},
53+
{
54+
"aspect_ratio": 0.667,
55+
"height": 1800,
56+
"iso_639_1": "en",
57+
"file_path": "/6vyOkDUnxzJsoJWlX6TwzfxekeJ.jpg",
58+
"vote_average": 5.25,
59+
"vote_count": 12,
60+
"width": 1200
61+
}
62+
]
63+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"id": 3,
3+
"profiles": [
4+
{
5+
"aspect_ratio": 0.667,
6+
"height": 838,
7+
"iso_639_1": null,
8+
"file_path": "/zVnHagUvXkR2StdOtquEwsiwSVt.jpg",
9+
"vote_average": 6.2,
10+
"vote_count": 15,
11+
"width": 559
12+
},
13+
{
14+
"aspect_ratio": 0.667,
15+
"height": 1923,
16+
"iso_639_1": null,
17+
"file_path": "/n4dwIg6NbQzeMaS1yEKKlfNJH7a.jpg",
18+
"vote_average": 5.566,
19+
"vote_count": 15,
20+
"width": 1282
21+
}
22+
]
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"id": 3624,
3+
"posters": [
4+
{
5+
"aspect_ratio": 0.667,
6+
"height": 1500,
7+
"iso_639_1": "en",
8+
"file_path": "/wgfKiqzuMrFIkU1M68DDDY8kGC1.jpg",
9+
"vote_average": 6.0,
10+
"vote_count": 19,
11+
"width": 1000
12+
},
13+
{
14+
"aspect_ratio": 0.692,
15+
"height": 578,
16+
"iso_639_1": "en",
17+
"file_path": "/zwaj4egrhnXOBIit1tyb4Sbt3KP.jpg",
18+
"vote_average": 5.45,
19+
"vote_count": 33,
20+
"width": 400
21+
}
22+
]
23+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"backdrops": [
3+
{
4+
"aspect_ratio": 1.778,
5+
"height": 2160,
6+
"iso_639_1": null,
7+
"file_path": "/zZqpAXxVSBtxV9qPBcscfXBcL2w.jpg",
8+
"vote_average": 7.19,
9+
"vote_count": 7,
10+
"width": 3840
11+
},
12+
{
13+
"aspect_ratio": 1.777,
14+
"height": 1491,
15+
"iso_639_1": null,
16+
"file_path": "/jJojoFmsuLPQz8AOdkeV0b686RN.jpg",
17+
"vote_average": 5.25,
18+
"vote_count": 12,
19+
"width": 2650
20+
}
21+
],
22+
"id": 1399,
23+
"logos": [
24+
{
25+
"aspect_ratio": 8.107,
26+
"height": 525,
27+
"iso_639_1": "en",
28+
"file_path": "/9h2EzzhkWyC5g305xDZnd0dp6Ac.png",
29+
"vote_average": 3.334,
30+
"vote_count": 2,
31+
"width": 4256
32+
},
33+
{
34+
"aspect_ratio": 2.245,
35+
"height": 404,
36+
"iso_639_1": "en",
37+
"file_path": "/huXYbSsXMKDStsP6EI0crRGG6Oz.svg",
38+
"vote_average": 2.278,
39+
"vote_count": 3,
40+
"width": 907
41+
}
42+
],
43+
"posters": [
44+
{
45+
"aspect_ratio": 0.667,
46+
"height": 3000,
47+
"iso_639_1": "en",
48+
"file_path": "/1XS1oqL89opfnbLl8WnZY1O1uJx.jpg",
49+
"vote_average": 7.442,
50+
"vote_count": 26,
51+
"width": 2000
52+
},
53+
{
54+
"aspect_ratio": 0.667,
55+
"height": 1125,
56+
"iso_639_1": "en",
57+
"file_path": "/tFCX1cXH4vO8i2oGINdgRgkFZMg.jpg",
58+
"vote_average": 8.77,
59+
"vote_count": 8,
60+
"width": 750
61+
}
62+
]
63+
}

0 commit comments

Comments
 (0)