Skip to content

Commit aacccaf

Browse files
committed
Fix
- fixed posibility that the path can be None instead of string, now returns None if it is None which is later processed correctly
1 parent d613398 commit aacccaf

File tree

1 file changed

+1
-0
lines changed
  • custom_components/plex_recently_added

1 file changed

+1
-0
lines changed

custom_components/plex_recently_added/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def parse_library(root):
3131
return output
3232

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

0 commit comments

Comments
 (0)