mirror of
https://github.com/SinTan1729/TvTimeToTrakt.git
synced 2025-04-19 17:40:01 -05:00
Improve logging
This commit is contained in:
parent
033ad1e79b
commit
620a491ac7
2 changed files with 5 additions and 5 deletions
|
@ -148,7 +148,10 @@ class TVShowProcessor(Processor):
|
||||||
# Add the episode to the local database as imported, so it can be skipped,
|
# Add the episode to the local database as imported, so it can be skipped,
|
||||||
# if the process is repeated
|
# if the process is repeated
|
||||||
syncedEpisodesTable.insert({"episodeId": tv_time_show.episode_id})
|
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:
|
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"]
|
tv_show_slug = trakt_show.to_json()["shows"][0]["ids"]["ids"]["slug"]
|
||||||
|
|
|
@ -198,10 +198,7 @@ class Searcher(ABC):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
# Get the user's selection, either a numerical input, or a string 'SKIP' value
|
# Get the user's selection, either a numerical input, or a string 'SKIP' value
|
||||||
index_selected = input(
|
index_selected = input("Please make a selection from above (or enter SKIP): ")
|
||||||
"Please make a selection from above (or enter SKIP):"
|
|
||||||
)
|
|
||||||
|
|
||||||
if index_selected == "SKIP":
|
if index_selected == "SKIP":
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue