[GH-ISSUE #57] shortDescription does not reliably have index [5] #40

Closed
opened 2026-02-27 22:07:42 +03:00 by kerem · 1 comment
Owner

Originally created by @ngt-magee on GitHub (Aug 17, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/57

for videoId dyG_yptc7y8 I get the below error. Out of 10 songs I was just looking at, this was the only error (I am working around it by catching and IndexError and putting song_meta['production'] = 'No info' for this line)

Traceback (most recent call last):
  File "ytmusic_manager.py", line 148, in <module>
    y.print_history()
  File "ytmusic_manager.py", line 84, in print_history
    song = self.get_song(entry)
  File "/Projects/ytmusic_manager/ytmusicapi/ytmusicapi/mixins/browsing.py", line 531, in get_song
    song_meta['production'] = [pub for pub in description[5].split('\n')]
IndexError: list index out of range
Originally created by @ngt-magee on GitHub (Aug 17, 2020). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/57 for videoId `dyG_yptc7y8` I get the below error. Out of 10 songs I was just looking at, this was the only error (I am working around it by catching and `IndexError` and putting `song_meta['production'] = 'No info'` for this line) ``` Traceback (most recent call last): File "ytmusic_manager.py", line 148, in <module> y.print_history() File "ytmusic_manager.py", line 84, in print_history song = self.get_song(entry) File "/Projects/ytmusic_manager/ytmusicapi/ytmusicapi/mixins/browsing.py", line 531, in get_song song_meta['production'] = [pub for pub in description[5].split('\n')] IndexError: list index out of range ```
kerem 2026-02-27 22:07:42 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@sigma67 commented on GitHub (Aug 23, 2020):

It seems both the keys production and release are missing for this video. I hope these are the only ones that are potentially missing, otherwise it may become hard to parse correctly (i.e. if items in the second or third line are missing randomly).

<!-- gh-comment-id:678771169 --> @sigma67 commented on GitHub (Aug 23, 2020): It seems both the keys ``production`` and ``release`` are missing for this video. I hope these are the only ones that are potentially missing, otherwise it may become hard to parse correctly (i.e. if items in the second or third line are missing randomly).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#40
No description provided.