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

AttributeError: 'NoneType' object has no attribute 'span' #5

Closed cndhng closed 1 year ago

cndhng commented 1 year ago

Hi just for around a week now I have encountered this problem. Please help as I don't see the resolution for this error. Thank you

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-4-748143317f59>](https://localhost:8080/#) in <module>
     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",

4 frames
[/usr/local/lib/python3.9/dist-packages/pytube/cipher.py](https://localhost:8080/#) in get_throttling_plan(js)
    409     match = plan_regex.search(raw_code)
    410 
--> 411     transform_plan_raw = find_object_from_startpoint(raw_code, match.span()[1] - 1)
    412 
    413     # Steps are either c[x](c[y]) or c[x](c[y],c[z])

AttributeError: 'NoneType' object has no attribute 'span'
ArthurFDLR commented 1 year ago

I can't replicate the issue. Are you running the Notebook locally or on Google Colab?