Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in YouTubeMusic provider #47

Open
Ignisor opened this issue Apr 19, 2019 · 0 comments
Open

Error in YouTubeMusic provider #47

Ignisor opened this issue Apr 19, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Ignisor
Copy link
Owner

Ignisor commented Apr 19, 2019

Music URL that caused error: https://music.youtube.com/watch?v=4x-dshDVjNA&feature=share

interface = TelegramInterface()
An uncaught error was raised while processing the update
Traceback (most recent call last):
File "/var/task/package/telegram/ext/dispatcher.py", line 333, in process_update
handler.handle_update(update, self, check, context)
File "/var/task/package/telegram/ext/handler.py", line 120, in handle_update
return self.callback(dispatcher.bot, update, **optional_args)
File "/var/task/interfaces/telegram.py", line 37, in _handle_message
response = process_message(text)
File "/var/task/core/__init__.py", line 15, in process_message
name = url.get_name()
File "/var/task/core/urls.py", line 27, in get_name
return self.provider.get_music_name(self.url)
File "/var/task/core/providers/youtube.py", line 28, in get_music_name
description = data['items'][0]['snippet']['description']

IndexError: list index out of range
@Ignisor Ignisor added the bug Something isn't working label Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant