mirror of
https://github.com/SinTan1729/TvTimeToTrakt.git
synced 2025-04-19 17:40:01 -05:00
WIP: refactor
This commit is contained in:
parent
5d2143c6f6
commit
076562c106
1 changed files with 27 additions and 0 deletions
|
@ -189,6 +189,33 @@ def get_items_with_same_name(title: Title, items: List[SearchResult]) -> List[Se
|
||||||
return shows_with_same_name
|
return shows_with_same_name
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class GetItemInput:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class GetTVShowInput(GetItemInput):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class GetMovieInput(GetItemInput):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def get_item():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def get_show() -> TraktTVShow:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def get_movie() -> TraktMovie:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def get_show_by_name(name: str, season_number: str, episode_number: str):
|
def get_show_by_name(name: str, season_number: str, episode_number: str):
|
||||||
# Parse the TV Show's name for year, if one is present in the string
|
# Parse the TV Show's name for year, if one is present in the string
|
||||||
title = get_year_from_title(name)
|
title = get_year_from_title(name)
|
||||||
|
|
Loading…
Reference in a new issue