modify scripts
This commit is contained in:
@ -220,8 +220,11 @@ def fetch_movies_detail():
|
||||
logging.warning(f'parse_page_movie error. url: {url}')
|
||||
|
||||
elif status_code and status_code == 404:
|
||||
movie_id = db_tools.insert_or_update_movie_404(title=title, href=url)
|
||||
movie_id = db_tools.insert_or_update_movie_404(title=title, href=url, is_full_data=2)
|
||||
logging.warning(f'404 page. id: {movie_id}, title: ({title}), url: {url}, Skiping...')
|
||||
elif status_code and status_code == 401:
|
||||
movie_id = db_tools.insert_or_update_movie_404(title=title, href=url, is_full_data=3)
|
||||
logging.warning(f'401 page(need login). id: {movie_id}, title: ({title}), url: {url}, Skiping...')
|
||||
else:
|
||||
logging.warning(f'fetch_page error. url: {url}')
|
||||
time.sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user