Merge pull request #565 from stonerl/private-instances

support for private instances
This commit is contained in:
Arkadiusz Fal 2023-11-25 22:26:13 +01:00 committed by GitHub
commit 2aafe33417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,6 +105,7 @@ extension PlayerModel {
func playerAPI(_ video: Video) -> VideosAPI? {
guard let url = video.instanceURL else { return accounts.api }
if accounts.current?.url == url { return accounts.api }
switch video.app {
case .local:
return nil