feat: add quick search provider switcher and genre/label for extensions

- Add dropdown menu in search bar for instant provider switching
- Support genre & label metadata for extension downloads
- Bump version to 3.1.2 (build 61)
This commit is contained in:
zarzet
2026-01-19 02:14:52 +07:00
parent 595bfb2711
commit 7c86ae0b7e
8 changed files with 278 additions and 6 deletions
+4
View File
@@ -656,6 +656,8 @@ class PlatformBridge {
String? itemId,
int durationMs = 0,
String? source, // Extension ID that provided this track (prioritize this extension)
String? genre,
String? label,
}) async {
_log.i('downloadWithExtensions: "$trackName" by $artistName${source != null ? ' (source: $source)' : ''}');
final request = jsonEncode({
@@ -678,6 +680,8 @@ class PlatformBridge {
'item_id': itemId ?? '',
'duration_ms': durationMs,
'source': source ?? '', // Extension ID that provided this track
'genre': genre ?? '',
'label': label ?? '',
});
final result = await _channel.invokeMethod('downloadWithExtensions', request);