JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
http://pytubefix.rtfd.io/
MIT License
717 stars 100 forks source link

get_extra_audio_track() not working #343

Open bigbear22941 opened 3 hours ago

bigbear22941 commented 3 hours ago

:exclamation: DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE :exclamation:

lack of information will lead to closure of the issue


Describe the bug Filtering Dubbed Streams : get_extra_audio_track() give no results.


from pytubefix import YouTube

yt = YouTube('https://www.youtube.com/watch?v=g_VxOIlg7q8')

for s in yt.streams.get_extra_audio_track():
    print(f"{s.itag} {s.includes_multiple_audio_tracks} {s.audio_track_name}")

...

from pytubefix import YouTube

yt = YouTube('https://www.youtube.com/watch?v=uRw2Tbik_k8')

at=yt.streams.filter(type="audio",audio_track_name="German").desc().first()

Expected behavior 139 True German 139 True Spanish 140 True German 140 True Spanish 249 True German 249 True Spanish 250 True German 250 True Spanish 251 True German 251 True Spanish 599 True German 599 True Spanish 600 True German 600 True Spanish


Screenshots If applicable, add screenshots to help explain your problem.


Desktop (please complete the following information):


Additional context Add any other context about the problem here.

felipeucelli commented 3 hours ago

YouTube is changing the format of its clients frequently, try using the IOS or WEB_EMBED client.