youtube-py / youtube.py

YouTube Python is a light python module for youtube videos/playlists inbuilt multiple connection downloader.
https://youtube-python.mayankfawkes.xyz/
MIT License
2 stars 2 forks source link

ERROR:youtube.Extract:Video Info not found #158

Open sugizo opened 7 months ago

sugizo commented 7 months ago

code taken from pypi and already test the utube url it's work on browser

from youtube import Video
video_url = "https://www.youtube.com/watch?v=3AtDnEC4zak"
v = Video(video_url)

result

ERROR:youtube.Extract:Video Info not found <https://youtube.com/get_video_info?video_id=3AtDnEC4zak&ps=default&eurl=https://www.youtube.com/watch?v=3AtDnEC4zak&hl=en_US&html5=1&c=TVHTML5&cver=6.20180913> please contact <https://github.com/youtube-py/youtube.py/issues>
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/youtube/Extract.py](https://localhost:8080/#) in Get_video_info(req, url)
     71                 r=req._GET(url).text
---> 72                 Fdata = {unquote(o.split("=")[0]):unquote(o.split("=")[1]) for o in r.split("&")}
     73                 data = json.loads(Fdata["player_response"])

4 frames
IndexError: list index out of range

During handling of the above exception, another exception occurred:

VideoInfo                                 Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/youtube/Extract.py](https://localhost:8080/#) in Get_video_info(req, url)
     81         except:
     82                 logg.error(f"Video Info not found <{url}> please contact <{__issues__}>")
---> 83                 raise VideoInfo(f"Video Info not found <{url}> please contact <{__issues__}>, help us make it more stable for everyone")
     84 def Videodata_parse(data:Dict[Any, Any]) -> bool:
     85     '''

VideoInfo: Video Info not found <https://youtube.com/get_video_info?video_id=3AtDnEC4zak&ps=default&eurl=https://www.youtube.com/watch?v=3AtDnEC4zak&hl=en_US&html5=1&c=TVHTML5&cver=6.20180913> please contact <https://github.com/youtube-py/youtube.py/issues>, help us make it more stable for everyone

best regards

Matrixow commented 3 months ago

I'm getting this same error