mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 13:50:32 +05:30
Merge pull request #565 from stonerl/private-instances
support for private instances
This commit is contained in:
commit
2aafe33417
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user