fix bug
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import re
|
||||
from dataclasses import dataclass, field, asdict
|
||||
from typing import List, Dict, Any, Optional
|
||||
from typing import List, Dict, Any
|
||||
|
||||
from app.core.config import settings
|
||||
from app.core.meta import MetaBase
|
||||
|
@ -324,25 +324,3 @@ class Movie(TMDb):
|
||||
params=params,
|
||||
key="results"
|
||||
)
|
||||
|
||||
def search(self, term, page=1):
|
||||
"""
|
||||
Search for movies.
|
||||
:param term: str
|
||||
:param page: int
|
||||
:return:
|
||||
"""
|
||||
warnings.warn("search method is deprecated use tmdbv3api.Search().movies(term)",
|
||||
DeprecationWarning)
|
||||
return Search().movies(term, page=page)
|
||||
|
||||
def external(self, external_id, external_source):
|
||||
"""
|
||||
The find method makes it easy to search for objects in our database by an external id. For example, an IMDB ID.
|
||||
:param external_id: str
|
||||
:param external_source str
|
||||
:return:
|
||||
"""
|
||||
warnings.warn("external method is deprecated use tmdbv3api.Find().find(external_id, external_source)",
|
||||
DeprecationWarning)
|
||||
return Find().find(external_id, external_source)
|
||||
|
@ -138,14 +138,3 @@ class Person(TMDb):
|
||||
params="page=%s" % page,
|
||||
key="results"
|
||||
)
|
||||
|
||||
def search(self, term, page=1):
|
||||
"""
|
||||
Search for people.
|
||||
:param term: string
|
||||
:param page: int
|
||||
:return:
|
||||
"""
|
||||
warnings.warn("search method is deprecated use tmdbv3api.Search().people(params)",
|
||||
DeprecationWarning)
|
||||
return Search().people(term, page=page)
|
||||
|
Reference in New Issue
Block a user