OpenGenus / vidsum

Generate summary of any video :tv: anywhere and anytime
GNU General Public License v3.0
262 stars 69 forks source link

AttributeError: 'NoneType' object has no attribute 'keys' #58

Open ghost opened 3 years ago

ghost commented 3 years ago

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'

kartikshastrakar commented 2 years ago

any suggestion

KoyaS commented 1 year ago

i had a similar problem, it was because there weren't english subtitles for the vid

night-slayer18 commented 9 months ago

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

kartikshastrakar commented 9 months ago

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 https://github.com/OpenGenus/vidsum/issues/58#issuecomment-1925713658, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOZRTN73ZQGJ3DK67OWBMDYR5WQXAVCNFSM4464FSF2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJSGU3TCMZWGU4A . You are receiving this because you commented.Message ID: @.***>

night-slayer18 commented 9 months ago

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

kartikshastrakar commented 9 months ago

Mine repo is working is you can look at installation or setup N also try downloading subtitles for the same

night-slayer18 commented 9 months ago

cant find any repo in your profile

kartikshastrakar commented 9 months ago

https://github.com/kartikshastrakar/VideoMash

please check now

On Fri, 9 Feb, 2024, 15:02 Samanuai A, @.***> wrote:

cant find any repo in your profile

— Reply to this email directly, view it on GitHub https://github.com/OpenGenus/vidsum/issues/58#issuecomment-1935597286, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOZRTJGLEOQ3MUFJZ6IVUDYSXUL3AVCNFSM4464FSF2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJTGU2TSNZSHA3A . You are receiving this because you commented.Message ID: @.***>

night-slayer18 commented 9 months ago

ok thanks