diff --git a/Fixtures/Video+Fixtures.swift b/Fixtures/Video+Fixtures.swift index 4f2bb08c..b72bd2f8 100644 --- a/Fixtures/Video+Fixtures.swift +++ b/Fixtures/Video+Fixtures.swift @@ -1,9 +1,8 @@ import Foundation extension Video { - static var fixtureID: Video.ID { - "FIXTURE" - } + static var fixtureID: Video.ID = "video-fixture" + static var fixtureChannelID: Channel.ID = "channel-fixture" static var fixture: Video { 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", genre: "Music", channel: Channel( - id: "AbCdEFgHI", + id: fixtureChannelID, name: "The Channel", thumbnailURL: URL(string: thumbnailURL)!, subscriptionsCount: 2300, diff --git a/Model/NavigationModel.swift b/Model/NavigationModel.swift index 12a5e7d9..f33bdd53 100644 --- a/Model/NavigationModel.swift +++ b/Model/NavigationModel.swift @@ -74,6 +74,10 @@ final class NavigationModel: ObservableObject { navigationStyle: NavigationStyle, delay: Bool = true ) { + guard channel.id != Video.fixtureChannelID else { + return + } + let recent = RecentItem(from: channel) #if os(macOS) Windows.main.open()