Add retry to all site.

This commit is contained in:
Lovi-0 2024-08-24 15:39:27 +02:00
parent 7603f45575
commit 732507c14e
11 changed files with 36 additions and 7 deletions

View File

@ -33,3 +33,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -33,3 +33,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -32,3 +32,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -34,3 +34,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -34,3 +34,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -40,3 +40,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -33,3 +33,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -40,3 +40,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -34,3 +34,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -42,3 +42,6 @@ def search():
else:
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
# Retry
search()

View File

@ -12,6 +12,11 @@ from rich.console import Console
from Src.Util.table import TVShowManager
# Variable
tv_show_manager = TVShowManager()
api_key = "a800ed6c93274fb857ea61bd9e7256c5"
class TheMovieDB:
def __init__(self, api_key, tv_show_manager):
"""
@ -204,11 +209,5 @@ class TheMovieDB:
]
self._display_with_title(f"Search Results for: {title}", data, columns)
# Create an instance of TVShowManager
tv_show_manager = TVShowManager()
# Replace with your actual API key
api_key = "a800ed6c93274fb857ea61bd9e7256c5"
# Output
tmdb = TheMovieDB(api_key, tv_show_manager)