diff --git a/innertube/src/main/java/com/zionhuang/innertube/InnerTube.kt b/innertube/src/main/java/com/zionhuang/innertube/InnerTube.kt index e4b65beb2..c1e576640 100644 --- a/innertube/src/main/java/com/zionhuang/innertube/InnerTube.kt +++ b/innertube/src/main/java/com/zionhuang/innertube/InnerTube.kt @@ -128,7 +128,7 @@ class InnerTube { setBody( PlayerBody( context = client.toContext(locale, visitorData).let { - if (client == YouTubeClient.TVHTML5) { + if (client == YouTubeClient.TVHTML5_SIMPLY_EMBEDDED_PLAYER) { it.copy( thirdParty = Context.ThirdParty( embedUrl = "https://www.youtube.com/watch?v=${videoId}" diff --git a/innertube/src/main/java/com/zionhuang/innertube/models/YouTubeClient.kt b/innertube/src/main/java/com/zionhuang/innertube/models/YouTubeClient.kt index 818d2c83b..3a18bed31 100644 --- a/innertube/src/main/java/com/zionhuang/innertube/models/YouTubeClient.kt +++ b/innertube/src/main/java/com/zionhuang/innertube/models/YouTubeClient.kt @@ -62,7 +62,7 @@ data class YouTubeClient( useSignatureTimestamp = true, ) - val TVHTML5 = YouTubeClient( + val TVHTML5_SIMPLY_EMBEDDED_PLAYER = YouTubeClient( clientName = "TVHTML5_SIMPLY_EMBEDDED_PLAYER", clientVersion = "2.0", clientId = "85",