Notice if no avalaible movies in IMDB database

This commit is contained in:
localhost_frssoft 2023-03-01 00:41:58 +03:00
parent 00f2dc33fb
commit 8f07ed7f70

View File

@ -114,8 +114,14 @@ def scan_context_thread():
elif parsed_result_imdb is not None: elif parsed_result_imdb is not None:
suggested_movies = get_title_by_id(parsed_result_imdb) suggested_movies = get_title_by_id(parsed_result_imdb)
if suggested_movies is None:
post_status('❌ Фильм(ы) не найден в базе данных IMDB, пожалуйста обратитесь к администратору, чтобы обновить базу. Примечание: IMDB выкладывает новые изменения не сразу.', id_st)
fail_limit[acct] += 1
continue
message_writer = [] message_writer = []
success = False success = False
for movie in suggested_movies: for movie in suggested_movies:
logger.debug(str(movie)) logger.debug(str(movie))
if movie[index_type] == "404": if movie[index_type] == "404":