Improve logging

This commit is contained in:
Markus Nyman 2023-01-17 02:01:21 +02:00
parent 033ad1e79b
commit 620a491ac7
2 changed files with 5 additions and 5 deletions

View file

@ -148,7 +148,10 @@ class TVShowProcessor(Processor):
# Add the episode to the local database as imported, so it can be skipped,
# if the process is repeated
syncedEpisodesTable.insert({"episodeId": tv_time_show.episode_id})
logging.info(f"'{tv_time_show.name}' marked as seen")
logging.info(
f"'{tv_time_show.name} Season {tv_time_show.season_number},"
f" Episode {tv_time_show.episode_number}' marked as seen"
)
def _handle_index_error(self, tv_time_show: TVTimeTVShow, trakt_show: TraktTVShow, progress: float) -> None:
tv_show_slug = trakt_show.to_json()["shows"][0]["ids"]["ids"]["slug"]

View file

@ -198,10 +198,7 @@ class Searcher(ABC):
while True:
try:
# Get the user's selection, either a numerical input, or a string 'SKIP' value
index_selected = input(
"Please make a selection from above (or enter SKIP):"
)
index_selected = input("Please make a selection from above (or enter SKIP): ")
if index_selected == "SKIP":
break