mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-10 23:11:47 +08:00
style: 清理空白字符
移除代码中的 trailing whitespace 和空行缩进, 提升代码整洁度
This commit is contained in:
@@ -59,7 +59,7 @@ class AsObj:
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
return setattr(self, key, value)
|
||||
|
||||
|
||||
def __str__(self):
|
||||
return str(self._obj_list) if self._list_only else str(self._dict())
|
||||
|
||||
@@ -91,10 +91,10 @@ class AsObj:
|
||||
|
||||
def pop(self, key, value=None):
|
||||
return self.__dict__.pop(key, value)
|
||||
|
||||
|
||||
def popitem(self):
|
||||
return self.__dict__.popitem()
|
||||
|
||||
|
||||
def setdefault(self, key, value=None):
|
||||
return self.__dict__.setdefault(key, value)
|
||||
|
||||
|
||||
@@ -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