KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
30.82k stars 1.27k forks source link

Cannot play videos that have the "Viewer discretion is advised" youtube warning #2008

Open Bowarc opened 1 month ago

Bowarc commented 1 month ago

Is there an existing issue for this? (Please read the description)

Current Behavior

In the current version (3.8.3), trying to play a song where the yt video has a "Viewer discretion is advised" warning (like Jake Hill & Josh A - Suicidal Thoughts) does not work.

Expected Behavior

To be able to play that song.

Maybe using yt login ? idk, that's what the log suggests

Steps to reproduce

  1. Open the app
  2. Search suicidal thoughts jake hill
  3. Play the first one

Logs

Logs ``` ---------------------------------------- [2024-10-17 12:03:33.819436]--------------------- VideoUnplayableException: Video 'VFSg01HDqAk' is unplayable. Streams are not available for this video. In most cases, this error indicates that there are some restrictions in place that prevent watching this video. Reason: Please sign in #0 StreamClient._getCipherStream (package:youtube_explode_dart/src/videos/streams/stream_client.dart:179) #1 StreamClient._getStreams (package:youtube_explode_dart/src/videos/streams/stream_client.dart:137) #2 Stream.toList. (dart:async/stream.dart:1351) #3 StreamClient.getManifest. (package:youtube_explode_dart/src/videos/streams/stream_client.dart:37) #4 retry (package:youtube_explode_dart/src/retry.dart:16) #5 Future.timeout. (dart:async/future_impl.dart:963) #6 YoutubeSourcedTrack.toSiblingType (package:spotube/services/sourced_track/sources/youtube.dart:145) #7 YoutubeSourcedTrack.fetchSiblings (package:spotube/services/sourced_track/sources/youtube.dart:239) #8 YoutubeSourcedTrack.fetchFromTrack (package:spotube/services/sourced_track/sources/youtube.dart:63) #9 SourcedTrack.fetchFromTrack (package:spotube/services/sourced_track/sourced_track.dart:117) #10 sourcedTrackProvider. (package:spotube/provider/server/sourced_track.dart:25) #11 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:348) ```

Operating System

W 10

Spotube version

3.8.3

Installation source

Website (spotube.krtirtho.dev)

Additional information

No response

Self grab

KRTirtho commented 1 month ago

This is an underlying bug in the youtube_explode_dart library. But invidious or piped can get streams for these kind of videos. So this should be something fixable

Bowarc commented 1 month ago

I tried some piped instances but none worked atm

KRTirtho commented 1 month ago

Upstream issue https://github.com/Hexer10/youtube_explode_dart/issues/299