diff --git a/lib/src/videos/streams/stream_client.dart b/lib/src/videos/streams/stream_client.dart index b53ef76..5ebeef7 100644 --- a/lib/src/videos/streams/stream_client.dart +++ b/lib/src/videos/streams/stream_client.dart @@ -29,7 +29,7 @@ class StreamClient { /// /// See [YoutubeApiClient] for all the possible clients that can be set using the [ytClients] parameter. /// If [ytClients] is null the library automatically manages the clients, otherwise only the clients provided are used. - /// Currently by default the [YoutubeApiClient.tv] and [YoutubeApiClient.ios] clients are used, if the extraction fails the [YoutubeApiClient.tvSimplyEmbedded] client is used instead. + /// Currently by default the [YoutubeApiClient.ios] clients is used, if the extraction fails [YoutubeApiClient.tvSimplyEmbedded] and [YoutubeApiClient.tv] clients are used instead. /// /// If [requireWatchPage] (default: true) is set to false the watch page is not used to extract the streams (so the process can be faster) but /// it COULD be less reliable (not tested thoroughly). @@ -54,8 +54,7 @@ class StreamClient { List? ytClients, bool requireWatchPage = true}) async { videoId = VideoId.fromString(videoId); - final clients = - ytClients ?? [YoutubeApiClient.ios, YoutubeApiClient.tv]; + final clients = ytClients ?? [YoutubeApiClient.ios]; final uniqueStreams = LinkedHashSet( equals: (a, b) { @@ -106,10 +105,10 @@ class StreamClient { } } - // If the user has not provided any client retry with the tvSimplyEmbedded client, which works also in some restricted videos. + // If the user has not provided any client retry with the tvSimplyEmbedded and client, which work also in some restricted videos. if (uniqueStreams.isEmpty && ytClients == null) { return getManifest(videoId, - ytClients: [YoutubeApiClient.tvSimplyEmbedded]); + ytClients: [YoutubeApiClient.tvSimplyEmbedded, YoutubeApiClient.tv]); } if (uniqueStreams.isEmpty) { throw lastException ?? diff --git a/pubspec.yaml b/pubspec.yaml index ea120ef..9832833 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: html: ^0.15.0 http: ^1.0.0 http_parser: ^4.0.0 - json_annotation: '>=4.9.0' + json_annotation: ^4.9.0 meta: ^1.7.0 xml: ^6.1.0 logging: ^1.2.0