[GH-ISSUE #820] Playlist parsing fails on playlist with collaboration enabled #508

Closed
opened 2026-02-27 23:01:12 +03:00 by kerem · 1 comment
Owner

Originally created by @MarvinSchenkel on GitHub (Oct 7, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/820

  • I confirm that I have read the FAQ

Whenever I try to parse a playlist that has 'collaboration' enabled (edit playlist > collaboration > enable both tickboxes), get_playlist fails with:


  File "/Users/marvin/git/server/.venv/lib/python3.12/site-packages/ytmusicapi/mixins/playlists.py", line 148, in get_playlist
    playlist.update(parse_playlist_header_meta(header))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/marvin/git/server/.venv/lib/python3.12/site-packages/ytmusicapi/parsers/playlists.py", line 45, in parse_playlist_header_meta
    "name": nav(header, ["facepile", "avatarStackViewModel", "text", "content"]),
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/marvin/git/server/.venv/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 126, in nav
    raise type(e)(f"Unable to find '{k}' using path {items!r} on {root!r}, exception: {e}")
KeyError: "Unable to find 'text' using path ['facepile', 'avatarStackViewModel', 'text', 'content'] on {'avatars': [{'avatarViewModel': {'image': {'sources': [{'url': 'https://yt3.ggpht.com/ytc/AIdro_nE_BsnYNmpOl4FxkwHp-XfQkKlNBcP6oT0wkzEEocLtcBp=s48-c-k-c0x00000000-no-cc-rj-rp'}], 'processor': {'borderImageProcessor': {'circular': True}}}, 'avatarImageSize': 'AVATAR_SIZE_XS'}}], 'decoratedText': {'content': ' ', 'attachmentRuns': [{'startIndex': 0, 'length': 1, 'element': {'type': {'imageType': {'image': {'sources': [{'clientResource': {'imageName': 'MORE_HORIZ', 'imageColor': 4294967295}, 'width': 24, 'height': 24}]}}}, 'properties': {'layoutProperties': {'height': {'value': 24, 'unit': 'DIMENSION_UNIT_POINT'}, 'width': {'value': 24, 'unit': 'DIMENSION_UNIT_POINT'}}}}, 'alignment': 'ALIGNMENT_VERTICAL_CENTER'}]}, 'rendererContext': {'accessibilityContext': {'label': 'Marvin Schenkel'}, 'commandContext': {'onTap': {'innertubeCommand': {'clickTrackingParams': 'CAgQneEIIhMIkeP125OSkAMVG0F6BR1Ywz2JygEEeLjnHw==', 'showEngagementPanelEndpoint': {'identifier': {'tag': 'PAplaylist_collaborate'}, 'globalConfiguration': {'initialState': {'engagementPanelSectionListRenderer': {'header': {'engagementPanelTitleHeaderRenderer': {'title': {'runs': [{'text': 'Collaborate'}]}, 'visibilityButton': {'buttonRenderer': {'style': 'STYLE_DEFAULT', 'isDisabled': False, 'icon': {'iconType': 'CLOSE'}, 'trackingParams': 'CAoQ8FsiEwiR4_Xbk5KQAxUbQXoFHVjDPYk=', 'accessibilityData': {'accessibilityData': {'label': 'Close'}}, 'command': {'clickTrackingParams': 'CAoQ8FsiEwiR4_Xbk5KQAxUbQXoFHVjDPYnKAQR4uOcf', 'changeEngagementPanelVisibilityAction': {'targetId': 'PAplaylist_collaborate', 'visibility': 'ENGAGEMENT_PANEL_VISIBILITY_HIDDEN'}}}}, 'trackingParams': 'CAkQ040EIhMIkeP125OSkAMVG0F6BR1Ywz2J'}}, 'content': {'contentLoadingRenderer': {'useSpinner': True}}, 'veType': 211189, 'targetId': 'PAplaylist_collaborate', 'identifier': {'tag': 'PAplaylist_collaborate'}}}, 'params': '0ggkCiJQTE5fVjdZdmJ6V0NwSHNYTnI2d0tqd29falJpLXl4MVll'}, 'engagementPanelPresentationConfigs': {'engagementPanelPopupPresentationConfig': {'popupType': 'PANEL_POPUP_TYPE_DIALOG'}}}}}}}}, exception: 'text'"

ytmusicapi version

1.11.1

To Reproduce

Steps to reproduce the behavior:

  1. Go to a playlist owner by you
  2. Click on Edit > Collaboration tab > enable both checkmarks ('collaborate' and 'allow new contributors') and hit 'save'
  3. Try to load the playlist details using get_playlist()

Additional context
After enabling collaboration mode, the UI for this playlist seems to change which might explain the error:

Before

Image

After

Image
Originally created by @MarvinSchenkel on GitHub (Oct 7, 2025). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/820 - [x] I confirm that I have read the [FAQ](https://ytmusicapi.readthedocs.io/en/stable/faq.html#why-is-ytmusicapi-returning-more-results-than-requested-with-the-limit-parameter) Whenever I try to parse a playlist that has 'collaboration' enabled (edit playlist > collaboration > enable both tickboxes), `get_playlist` fails with: ``` File "/Users/marvin/git/server/.venv/lib/python3.12/site-packages/ytmusicapi/mixins/playlists.py", line 148, in get_playlist playlist.update(parse_playlist_header_meta(header)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/marvin/git/server/.venv/lib/python3.12/site-packages/ytmusicapi/parsers/playlists.py", line 45, in parse_playlist_header_meta "name": nav(header, ["facepile", "avatarStackViewModel", "text", "content"]), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/marvin/git/server/.venv/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 126, in nav raise type(e)(f"Unable to find '{k}' using path {items!r} on {root!r}, exception: {e}") KeyError: "Unable to find 'text' using path ['facepile', 'avatarStackViewModel', 'text', 'content'] on {'avatars': [{'avatarViewModel': {'image': {'sources': [{'url': 'https://yt3.ggpht.com/ytc/AIdro_nE_BsnYNmpOl4FxkwHp-XfQkKlNBcP6oT0wkzEEocLtcBp=s48-c-k-c0x00000000-no-cc-rj-rp'}], 'processor': {'borderImageProcessor': {'circular': True}}}, 'avatarImageSize': 'AVATAR_SIZE_XS'}}], 'decoratedText': {'content': ' ', 'attachmentRuns': [{'startIndex': 0, 'length': 1, 'element': {'type': {'imageType': {'image': {'sources': [{'clientResource': {'imageName': 'MORE_HORIZ', 'imageColor': 4294967295}, 'width': 24, 'height': 24}]}}}, 'properties': {'layoutProperties': {'height': {'value': 24, 'unit': 'DIMENSION_UNIT_POINT'}, 'width': {'value': 24, 'unit': 'DIMENSION_UNIT_POINT'}}}}, 'alignment': 'ALIGNMENT_VERTICAL_CENTER'}]}, 'rendererContext': {'accessibilityContext': {'label': 'Marvin Schenkel'}, 'commandContext': {'onTap': {'innertubeCommand': {'clickTrackingParams': 'CAgQneEIIhMIkeP125OSkAMVG0F6BR1Ywz2JygEEeLjnHw==', 'showEngagementPanelEndpoint': {'identifier': {'tag': 'PAplaylist_collaborate'}, 'globalConfiguration': {'initialState': {'engagementPanelSectionListRenderer': {'header': {'engagementPanelTitleHeaderRenderer': {'title': {'runs': [{'text': 'Collaborate'}]}, 'visibilityButton': {'buttonRenderer': {'style': 'STYLE_DEFAULT', 'isDisabled': False, 'icon': {'iconType': 'CLOSE'}, 'trackingParams': 'CAoQ8FsiEwiR4_Xbk5KQAxUbQXoFHVjDPYk=', 'accessibilityData': {'accessibilityData': {'label': 'Close'}}, 'command': {'clickTrackingParams': 'CAoQ8FsiEwiR4_Xbk5KQAxUbQXoFHVjDPYnKAQR4uOcf', 'changeEngagementPanelVisibilityAction': {'targetId': 'PAplaylist_collaborate', 'visibility': 'ENGAGEMENT_PANEL_VISIBILITY_HIDDEN'}}}}, 'trackingParams': 'CAkQ040EIhMIkeP125OSkAMVG0F6BR1Ywz2J'}}, 'content': {'contentLoadingRenderer': {'useSpinner': True}}, 'veType': 211189, 'targetId': 'PAplaylist_collaborate', 'identifier': {'tag': 'PAplaylist_collaborate'}}}, 'params': '0ggkCiJQTE5fVjdZdmJ6V0NwSHNYTnI2d0tqd29falJpLXl4MVll'}, 'engagementPanelPresentationConfigs': {'engagementPanelPopupPresentationConfig': {'popupType': 'PANEL_POPUP_TYPE_DIALOG'}}}}}}}}, exception: 'text'" ``` **ytmusicapi version** 1.11.1 **To Reproduce** Steps to reproduce the behavior: 1. Go to a playlist owner by you 2. Click on Edit > Collaboration tab > enable both checkmarks ('collaborate' and 'allow new contributors') and hit 'save' 3. Try to load the playlist details using `get_playlist()` **Additional context** After enabling collaboration mode, the UI for this playlist seems to change which might explain the error: *Before* <img width="1124" height="620" alt="Image" src="https://github.com/user-attachments/assets/be2c97c7-5167-4f79-83c9-8c4de89ce300" /> *After* <img width="1151" height="780" alt="Image" src="https://github.com/user-attachments/assets/07a58c28-f5ad-46e1-8bfe-79fc8d7e4bf0" />
kerem 2026-02-27 23:01:12 +03:00
Author
Owner

@sigma67 commented on GitHub (Oct 8, 2025):

PR welcome

<!-- gh-comment-id:3380627089 --> @sigma67 commented on GitHub (Oct 8, 2025): PR welcome
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#508
No description provided.