1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 22:00:31 +05:30

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? { func playerAPI(_ video: Video) -> VideosAPI? {
guard let url = video.instanceURL else { return accounts.api } guard let url = video.instanceURL else { return accounts.api }
if accounts.current?.url == url { return accounts.api }
switch video.app { switch video.app {
case .local: case .local:
return nil return nil