Skip to content

Commit ec2c89f

Browse files
Set offer icons format to "PNG"
1 parent aaea87e commit ec2c89f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/simplejustwatchapi/query.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
$country: Country!,
1616
$language: Language!,
1717
$first: Int!,
18-
$format: ImageFormat,
18+
$formatPoster: ImageFormat,
19+
$formatIcon: ImageFormat,
1920
$profile: PosterProfile,
2021
$backdropProfile: BackdropProfile,
2122
$filter: OfferFilter!,
@@ -53,8 +54,8 @@
5354
imdbId
5455
__typename
5556
}
56-
posterUrl(profile: $profile, format: $format)
57-
backdrops(profile: $backdropProfile, format: $format) {
57+
posterUrl(profile: $profile, format: $formatPoster)
58+
backdrops(profile: $backdropProfile, format: $formatPoster) {
5859
backdropUrl
5960
__typename
6061
}
@@ -72,7 +73,7 @@
7273
packageId
7374
clearName
7475
technicalName
75-
icon(profile: S100)
76+
icon(profile: S100, format: $formatIcon)
7677
__typename
7778
}
7879
id
@@ -145,7 +146,8 @@ def prepare_search_request(
145146
"searchTitlesFilter": {"searchQuery": title},
146147
"language": language,
147148
"country": country.upper(),
148-
"format": "JPG",
149+
"formatPoster": "JPG",
150+
"formatIcon": "PNG",
149151
"profile": "S718",
150152
"backdropProfile": "S1920",
151153
"filter": {"bestOnly": best_only},

0 commit comments

Comments
 (0)