mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Disable placeholder channel link
This commit is contained in:
parent
8d36f57271
commit
db5765a84b
@ -1,9 +1,8 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
extension Video {
|
extension Video {
|
||||||
static var fixtureID: Video.ID {
|
static var fixtureID: Video.ID = "video-fixture"
|
||||||
"FIXTURE"
|
static var fixtureChannelID: Channel.ID = "channel-fixture"
|
||||||
}
|
|
||||||
|
|
||||||
static var fixture: Video {
|
static var fixture: Video {
|
||||||
let thumbnailURL = "https://yt3.ggpht.com/ytc/AKedOLR-pT_JEsz_hcaA4Gjx8DHcqJ8mS42aTRqcVy6P7w=s88-c-k-c0x00ffffff-no-rj-mo"
|
let thumbnailURL = "https://yt3.ggpht.com/ytc/AKedOLR-pT_JEsz_hcaA4Gjx8DHcqJ8mS42aTRqcVy6P7w=s88-c-k-c0x00ffffff-no-rj-mo"
|
||||||
@ -18,7 +17,7 @@ extension Video {
|
|||||||
description: "Some relaxing live piano music",
|
description: "Some relaxing live piano music",
|
||||||
genre: "Music",
|
genre: "Music",
|
||||||
channel: Channel(
|
channel: Channel(
|
||||||
id: "AbCdEFgHI",
|
id: fixtureChannelID,
|
||||||
name: "The Channel",
|
name: "The Channel",
|
||||||
thumbnailURL: URL(string: thumbnailURL)!,
|
thumbnailURL: URL(string: thumbnailURL)!,
|
||||||
subscriptionsCount: 2300,
|
subscriptionsCount: 2300,
|
||||||
|
@ -74,6 +74,10 @@ final class NavigationModel: ObservableObject {
|
|||||||
navigationStyle: NavigationStyle,
|
navigationStyle: NavigationStyle,
|
||||||
delay: Bool = true
|
delay: Bool = true
|
||||||
) {
|
) {
|
||||||
|
guard channel.id != Video.fixtureChannelID else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let recent = RecentItem(from: channel)
|
let recent = RecentItem(from: channel)
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
Windows.main.open()
|
Windows.main.open()
|
||||||
|
Loading…
Reference in New Issue
Block a user