diff --git a/gmusicapi_wrapper/utils.py b/gmusicapi_wrapper/utils.py index 21cd10e..3121c02 100644 --- a/gmusicapi_wrapper/utils.py +++ b/gmusicapi_wrapper/utils.py @@ -54,7 +54,7 @@ def _split_field_to_single_value(field): split_field = re.match(r'(\d+)/\d+', field) - return split_field.group(1) or field + return split_field and split_field.group(1) or field def _filter_comparison_fields(song):