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

mopidy ytmusic - all action is denied #48

Open
chicco64 opened this issue Feb 2, 2022 · 0 comments
Open

mopidy ytmusic - all action is denied #48

chicco64 opened this issue Feb 2, 2022 · 0 comments

Comments

@chicco64
Copy link

chicco64 commented Feb 2, 2022

Hi !
I did the installation as indicated and got the json file.
mopidy connects to youtube music, but all action is denied
these are the logs:

'# pip3 show mopidy-ytmusic'
Name: mopidy-ytmusic
Version: 0.3.3
Summary: Mopidy extension for playling music/managing playlists in Youtube Music
Home-page: None
Author: Ozymandias (Tomas Ravinskas)
Author-email: [email protected]
License: Apache-2.0
Location: /usr/local/lib/python3.7/dist-packages
Requires: ytmusicapi, Mopidy, pytube

'# journalctl -u mopidy | tail -20'
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: Traceback (most recent call last):
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: File "/usr/local/lib/python3.7/dist-packages/mopidy_ytmusic/playlist.py", line 12, in as_list
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: playlists = self.backend.api.get_library_playlists(limit=100)
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: File "/usr/local/lib/python3.7/dist-packages/ytmusicapi/mixins/library.py", line 27, in get_library_playlists
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: response = self._send_request(endpoint, body)
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: File "/usr/local/lib/python3.7/dist-packages/ytmusicapi/ytmusic.py", line 142, in _send_request
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: raise Exception(message + error)
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: Exception: Server returned HTTP 403: Forbidden.
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: Requests from referer https://www.youtube.com are blocked.
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: ERROR 2022-02-02 13:43:53,360 [1317:YTMusicBackend-3] mopidy_ytmusic
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: YTMusic failed getting a list of playlists
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: Traceback (most recent call last):
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: File "/usr/local/lib/python3.7/dist-packages/mopidy_ytmusic/playlist.py", line 12, in as_list
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: playlists = self.backend.api.get_library_playlists(limit=100)
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: File "/usr/local/lib/python3.7/dist-packages/ytmusicapi/mixins/library.py", line 27, in get_library_playlists
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: response = self._send_request(endpoint, body)
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: File "/usr/local/lib/python3.7/dist-packages/ytmusicapi/ytmusic.py", line 142, in _send_request
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: raise Exception(message + error)
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: Exception: Server returned HTTP 403: Forbidden.
Feb 02 13:43:53 localhost.localdomain mopidy[1317]: Requests from referer https://www.youtube.com are blocked.

Can you help me ? thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant