guessit-io / guessit

GuessIt is a python library that extracts as much information as possible from a video filename.
https://guessit-io.github.io/guessit
GNU Lesser General Public License v3.0
816 stars 92 forks source link

Fix GuessitException when using Assrt Provider to download subtitles #658

Closed LASER-Yi closed 3 years ago

LASER-Yi commented 4 years ago

GuessitException occur when using Assrt to download subtitles in project morpheus65535/bazarr

Occur Series Fleabag Season 2 Episode 3

When Assrt download a new episode and use guessit to parse info,merge_options will merge the None value in options to config

'allow_countries' in config

image

'allow_countries' in options

image

result

'allowed_countries': ['au', 'gb', 'us', None]

This pull request will fix this issue by adding an None check when merging option value

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.4%) to 97.527% when pulling 13dd7b26138d8c6132c8d53498bcdd46fe4639e7 on LASER-Yi:fix-assrt into 6e4ead187ef98f405487301b7ddc89cb5461ac5d on guessit-io:develop.