ignoring html extract errors for now

This commit is contained in:
simon 2021-04-02 13:28:50 +07:00
parent b24c1124ad
commit 66d0eea533
1 changed files with 5 additions and 1 deletions

View File

@ -114,7 +114,11 @@ def get_show_id(file_details):
showname_clean = result['show']['name']
status = result['show']['status']
desc_raw = result['show']['summary']
desc = re.sub('<[^<]+?>', '', desc_raw)
# TODO better html extract method
try:
desc = re.sub('<[^<]+?>', '', desc_raw)
except:
desc = desc_raw
result_dict = {}
result_dict['list_id'] = list_id
result_dict['show_id'] = show_id