beetbox/beets

tidal: `search_limit` is ignored

開放

#6,770 建立於 2026年6月24日

 (2 則留言) (0 個反應) (0 位負責人)Python (1,837 個分叉)batch import
good first issuetidal

倉庫指標

星標
 (12,133 顆星)
PR 合併指標
 (平均合併 26天 4小時) (30 天內合併 51 個 PR)

描述

Problem

The Tidal plugin does not appear to honor tidal.search_limit. With a config such as:

tidal:
  search_limit: 1

Tidal album and track searches still return (at least 20+) results.

Expected behavior

Tidal should cap album and track search candidates using the configured search_limit, matching the behavior of other metadata source plugins.

Likely cause

Tidal implements candidates() and item_candidates() directly, then calls api.search_results() from search_albums_by_query() and search_tracks_by_query(). That bypasses the shared search path that reads search_limit into SearchParams.limit.

Suggested fix

Thread search_limit through the Tidal query search path, or truncate returned Tidal relationships before resolving album/track IDs. Add focused tests for both album and track search with search_limit: 1.

Tagging @semohr for visibility.

貢獻者指南