Coder Social home page Coder Social logo

Comments (5)

lowgoz avatar lowgoz commented on August 20, 2024 2

@simonmannsfeld i pulled a new cookie from an incognito session and it seems to have resolved itself.
Just using a normal google account and you're right - it might have been related to the outage.
Very weird but looks resolved!

from ytube_music_player.

KoljaWindeler avatar KoljaWindeler commented on August 20, 2024 1

nope .. at least no what causes this .. if the playlist won't return the amount of track ('count' - field) I'll call the get_playlist method with that playlist ID. This fails but is out of my code space. I can create a hot fix by moving this line into the try/catch which should work around the issue and return a fix number of 25 for the failing playlist. But I'll also forward this ticket to the guys of ytmusicapi.
Thanks for reporting

edit: please update and try again. Is it working?

from ytube_music_player.

lowgoz avatar lowgoz commented on August 20, 2024

@KoljaWindeler that worked! thank you!

from ytube_music_player.

lowgoz avatar lowgoz commented on August 20, 2024

Weird. Worked perfectly for 8 hours today then restarted home assistant and got this

Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 396, in _update_playlists self._playlists = self._api.get_library_playlists(limit = 99) File "/usr/local/lib/python3.8/site-packages/ytmusicapi/mixins/library.py", line 29, in get_library_playlists results = find_object_by_key(nav(response, SINGLE_COLUMN_TAB + SECTION_LIST), File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 148, in nav raise err File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 142, in nav root = root[k] KeyError: 'contents'

Back to "loading" playlist status!

from ytube_music_player.

simonmannsfeld avatar simonmannsfeld commented on August 20, 2024

@lowgoz I just want to point out something.

Short time before of your reported issue, many youtube and google servers were down. Can you proof that this was not the problem?

To your error: It seems like you do not have any playlist at your google account. Can you proof that you're not using a brand-account for youtube music?

Check out this issue: Issue 18

from ytube_music_player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.