Skip to content

Commit afd7cde

Browse files
committed
chore: deprecate TrendingVideosResponse because YouTube removed it
1 parent 2fca03b commit afd7cde

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.swiftpm/xcode/xcshareddata/xcschemes/YouTubeKit.xcscheme

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
BlueprintName = "YouTubeKitTests"
5353
ReferencedContainer = "container:">
5454
</BuildableReference>
55+
<SkippedTests>
56+
<Test
57+
Identifier = "YouTubeKitTests/testTrendingTab()">
58+
</Test>
59+
</SkippedTests>
5560
</TestableReference>
5661
</Testables>
5762
</TestAction>

Sources/YouTubeKit/YouTubeResponseTypes/Trending/TrendingVideosResponse.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import Foundation
1010

11+
@available(*, deprecated, message: "YouTube removed the Trending tab and it is no longer accessible. This struct will be removed in a future version.")
1112
public struct TrendingVideosResponse: YouTubeResponse {
1213
public static let headersType: HeaderTypes = .trendingVideosHeaders
1314

Tests/YouTubeKitTests/YouTubeKitTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,7 @@ final class YouTubeKitTests: XCTestCase {
12581258
}
12591259
}
12601260

1261+
@available(*, deprecated, message: "Trending tabs were removed by YouTube")
12611262
func testTrendingTab() async throws {
12621263
let TEST_NAME = "Test: testTrendingTab() -> "
12631264

0 commit comments

Comments
 (0)