ArthurFDLR / whisper-youtube

🔉 Youtube Videos Transcription with OpenAI's Whisper
https://colab.research.google.com/github/ArthurFDLR/whisper-youtube/blob/main/whisper_youtube.ipynb
MIT License
352 stars 105 forks source link

Youtube Video selection #9

Closed htkolab closed 1 year ago

htkolab commented 1 year ago

Hi, when I go to the validation of the url I get this message. I've been using it for several weeks now and I've never had a problem.

KeyError                                  Traceback (most recent call last)
[<ipython-input-5-ecc820123036>](https://localhost:8080/#) in <cell line: 18>()
     38             raise(RuntimeError(f"{URL} isn't available."))
     39         video_path_local = Path(".").resolve() / (video_yt.video_id+".mp4")
---> 40         video_yt.streams.filter(
     41             type="audio",
     42             mime_type="audio/mp4",

2 frames
[/usr/local/lib/python3.9/dist-packages/pytube/__main__.py](https://localhost:8080/#) in streaming_data(self)
    159         else:
    160             self.bypass_age_gate()
--> 161             return self.vid_info['streamingData']
    162 
    163     @property

KeyError: 'streamingData'
ArthurFDLR commented 1 year ago

Closing for duplicate; c.f. https://github.com/ArthurFDLR/whisper-youtube/issues/8

htkolab commented 1 year ago

Ok, sorry !