Skip to content

Commit

Permalink
Correcting an oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
Cornishman committed Dec 18, 2021
1 parent e122e59 commit 5ef97f5
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Trakttv.bundle/Contents/Libraries/Shared/plugin/core/identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@

class Identifier(object):
@classmethod
def get_ids(cls, guid, strict=True):
def get_ids(cls, guids, strict=True):
ids = {}

if not guid:
if not guids:
return ids

if type(guid) is str:
# Parse raw guid
guid = Guid.parse(guid, strict=strict)
for guid in guids:
if type(guid.id) is str:
# Parse raw guid
guid = Guid.parse(guid.id, strict=strict)

if guid and guid.valid and guid.service in GUID_SERVICES:
ids[guid.service] = guid.id
elif strict:
return None
if guid and guid.valid and guid.service in GUID_SERVICES:
ids[guid.service] = guid.id
elif strict:
return None

return ids

0 comments on commit 5ef97f5

Please sign in to comment.