mirror of
https://git.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-10 15:50:56 +01:00
Notice if no avalaible movies in IMDB database
This commit is contained in:
parent
00f2dc33fb
commit
8f07ed7f70
|
@ -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":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user