AttributeError: 'NoneType' object has no attribute 'keys'
Opened this issue · 9 comments
C:\Users\Einstein\Downloads\pavan_proj\vidsum\code>python sum.py -u https://www.youtube.com/watch?v=PT2_F-1esPk
[nltk_data] Downloading package punkt to
[nltk_data] C:\Users\Einstein\AppData\Roaming\nltk_data...
[nltk_data] Package punkt is already up-to-date!
[youtube] PT2_F-1esPk: Downloading webpage
[download] 1.mp4 has already been downloaded
[download] 100% of 21.26MiB
Traceback (most recent call last):
File "sum.py", line 246, in
movie_filename, subtitle_filename = download_video_srt(url)
File "sum.py", line 216, in download_video_srt
subtitle_language = list(subtitle_info.keys())[0]
AttributeError: 'NoneType' object has no attribute 'keys'
any suggestion
i had a similar problem, it was because there weren't english subtitles for the vid
i had a similar problem, it was because there weren't english subtitles for the vid
for me it shows it is not iterable
any suggestions
You try with dowloaded subtitles or cc required..
…
On Sun, 4 Feb, 2024, 17:01 Samanuai A, @.> wrote: i had a similar problem, it was because there weren't english subtitles for the vid for me it shows it is not iterable any suggestions — Reply to this email directly, view it on GitHub <#58 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOZRTN73ZQGJ3DK67OWBMDYR5WQXAVCNFSM4464FSF2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJSGU3TCMZWGU4A . You are receiving this because you commented.Message ID: @.>
do you have the latest working code of this repo
Mine repo is working is you can look at installation or setup
N also try downloading subtitles for the same
cant find any repo in your profile
ok thanks