chore: use piped_client git version to fix search issue

This commit is contained in:
Kingkor Roy Tirtho 2024-02-17 22:07:32 +06:00
parent 90f7c531cd
commit badd52223a
3 changed files with 10 additions and 6 deletions

View File

@ -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,
);

View File

@ -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

View File

@ -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: