mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
style: 清理空白字符
移除代码中的 trailing whitespace 和空行缩进, 提升代码整洁度
This commit is contained in:
@@ -4,7 +4,7 @@ from ..tmdb import TMDb
|
||||
class Collection(TMDb):
|
||||
_urls = {
|
||||
"details": "/collection/%s",
|
||||
"images": "/collection/%s/images",
|
||||
"images": "/collection/%s/images",
|
||||
"translations": "/collection/%s/translations"
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ from ..tmdb import TMDb
|
||||
|
||||
class Company(TMDb):
|
||||
_urls = {
|
||||
"details": "/company/%s",
|
||||
"details": "/company/%s",
|
||||
"alternative_names": "/company/%s/alternative_names",
|
||||
"images": "/company/%s/images",
|
||||
"movies": "/company/%s/movies"
|
||||
|
||||
@@ -101,11 +101,11 @@ class Movie(TMDb):
|
||||
:return:
|
||||
"""
|
||||
return self._request_obj(self._urls["external_ids"] % movie_id)
|
||||
|
||||
|
||||
def images(self, movie_id, include_image_language=None):
|
||||
"""
|
||||
Get the images that belong to a movie.
|
||||
Querying images with a language parameter will filter the results.
|
||||
Querying images with a language parameter will filter the results.
|
||||
If you want to include a fallback language (especially useful for backdrops)
|
||||
you can use the include_image_language parameter.
|
||||
This should be a comma separated value like so: include_image_language=en,null.
|
||||
|
||||
@@ -55,7 +55,7 @@ class Search(TMDb):
|
||||
params="query=%s&page=%s" % (quote(term), page),
|
||||
key="results"
|
||||
)
|
||||
|
||||
|
||||
def movies(self, term, adult=None, region=None, year=None, release_year=None, page=1):
|
||||
"""
|
||||
Search for movies.
|
||||
|
||||
Reference in New Issue
Block a user