added isLocal method to GuidInterface to check whether the given guid local or not.
This commit is contained in:
@@ -43,4 +43,13 @@ interface GuidInterface
|
||||
* @return bool
|
||||
*/
|
||||
public function has(array $guids, array $context = []): bool;
|
||||
|
||||
/**
|
||||
* Is the given identifier a local id?
|
||||
*
|
||||
* @param string $guid
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isLocal(string $guid): bool;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,11 @@ class JellyfinGuid implements iGuid
|
||||
return count($this->ListExternalIds(guids: $guids, context: $context, log: false)) >= 1;
|
||||
}
|
||||
|
||||
public function isLocal(string $guid): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get All Supported external ids.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user