From 076562c1063f9d7de8eb06d8739c2c9dab1beb7e Mon Sep 17 00:00:00 2001 From: Markus Nyman Date: Sat, 14 Jan 2023 16:01:31 +0200 Subject: [PATCH] WIP: refactor --- TimeToTrakt.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/TimeToTrakt.py b/TimeToTrakt.py index 954c365..91e0ac7 100644 --- a/TimeToTrakt.py +++ b/TimeToTrakt.py @@ -189,6 +189,33 @@ def get_items_with_same_name(title: Title, items: List[SearchResult]) -> List[Se 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): # Parse the TV Show's name for year, if one is present in the string title = get_year_from_title(name)