mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-12-22 20:43:32 +02:00
Notice if no avalaible movies in IMDB database
This commit is contained in:
parent
00f2dc33fb
commit
8f07ed7f70
1 changed files with 6 additions and 0 deletions
|
@ -114,8 +114,14 @@ def scan_context_thread():
|
|||
elif parsed_result_imdb is not None:
|
||||
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 = []
|
||||
success = False
|
||||
|
||||
for movie in suggested_movies:
|
||||
logger.debug(str(movie))
|
||||
if movie[index_type] == "404":
|
||||
|
|
Loading…
Reference in a new issue