Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
- fixed posibility that the path can be None instead of string, now returns None if it is None which is later processed correctly
  • Loading branch information
Makhuta committed Feb 24, 2025
1 parent d613398 commit aacccaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/plex_recently_added/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def parse_library(root):
return output

def extract_metadata_and_type(path):
if not path: return None
pattern = re.compile(r"/library/metadata/(\d+)/(thumb|art)/(\d+)")
match = pattern.search(path)

Expand Down

0 comments on commit aacccaf

Please sign in to comment.