Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Keep the header of HORIZONTAL_LIST_WITH_CONTEXT rows - #422

Open
Petru101 wants to merge 1 commit into
EbbLabs:mainfrom
Petru101:feature/context-header
Open

Petru101 wants to merge 1 commit into
EbbLabs:mainfrom
Petru101:feature/context-header

Conversation

@Petru101

Copy link
Copy Markdown
Contributor

Home feed rows of type HORIZONTAL_LIST_WITH_CONTEXT ("Because you listened to", "Because you liked") come with a header: the item the row is based on, usually an album. It was ignored, so apps could only show "Because you listened to" without saying what (reported in High Tide: Nokse22/high-tide#214). TIDAL's own apps show the album's cover and title there.

HorizontalListWithContext now parses it into header, with the same item parsers the row's items use. It's None when the row has no header or one of a type tidalapi doesn't know.

Tests: four offline tests in tests/test_page_parsing.py (three fail without the change). Also checked against a real home page: both rows got their album. make lint passes.

🤖 Generated with Claude Code

Home feed rows like "Because you listened to" come with a header: the
item the row is based on (usually an album). It was ignored, so apps could
only show "Because you listened to" without saying what. It is now parsed
into HorizontalListWithContext.header, using the same item parsers as the
row's items (None when missing or of an unknown type). Reported in High
Tide (Nokse22/high-tide#214).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

1 participant