From badd52223af8dfd0d34714a76a5f6bd28dca2dca Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sat, 17 Feb 2024 22:07:32 +0600 Subject: [PATCH] chore: use piped_client git version to fix search issue --- lib/services/sourced_track/sources/piped.dart | 3 ++- pubspec.lock | 9 +++++---- pubspec.yaml | 4 +++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/services/sourced_track/sources/piped.dart b/lib/services/sourced_track/sources/piped.dart index 1eec8549..75f83125 100644 --- a/lib/services/sourced_track/sources/piped.dart +++ b/lib/services/sourced_track/sources/piped.dart @@ -157,12 +157,13 @@ class PipedSourcedTrack extends SourcedTrack { }) async { final pipedClient = ref.read(pipedProvider); final preference = ref.read(userPreferencesProvider); + final query = SourcedTrack.getSearchTerm(track); final PipedSearchResult(items: searchResults) = await pipedClient.search( query, preference.searchMode == SearchMode.youtube - ? PipedFilter.video + ? PipedFilter.videos : PipedFilter.musicSongs, ); diff --git a/pubspec.lock b/pubspec.lock index 0050a745..03ea66a1 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1618,10 +1618,11 @@ packages: piped_client: dependency: "direct main" description: - name: piped_client - sha256: "87b04b2ebf4e008cfbb0ac85e9920ab3741f5aa697be2dd44919658a3297a4bc" - url: "https://pub.dev" - source: hosted + path: "." + ref: HEAD + resolved-ref: "64631732eefe3d93889756dc2e4ff5c8523ed763" + url: "https://github.com/KRTirtho/piped_client.git" + source: git version: "0.1.1" platform: dependency: transitive diff --git a/pubspec.yaml b/pubspec.yaml index 21175930..a9144845 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -76,7 +76,9 @@ dependencies: path: ^1.8.0 path_provider: ^2.0.8 permission_handler: ^11.0.1 - piped_client: ^0.1.1 + piped_client: + git: + url: https://github.com/KRTirtho/piped_client.git popover: ^0.2.6+3 scrobblenaut: git: