Skip to content

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

Description

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'

Activity

  1. kartikshastrakar commented on Aug 12, 2022

    @kartikshastrakar

    any suggestion

  2. KoyaS commented on Dec 21, 2022

    @KoyaS

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

  3. night-slayer18 commented on Feb 4, 2024

    @night-slayer18

    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

  4. kartikshastrakar commented on Feb 4, 2024

    @kartikshastrakar
  5. night-slayer18 commented on Feb 9, 2024

    @night-slayer18

    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

  6. kartikshastrakar commented on Feb 9, 2024

    @kartikshastrakar

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

  7. night-slayer18 commented on Feb 9, 2024

    @night-slayer18

    cant find any repo in your profile

  8. kartikshastrakar commented on Feb 9, 2024

    @kartikshastrakar
  9. night-slayer18 commented on Feb 9, 2024

    @night-slayer18

    ok thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions