From f8ae8393bc2cb00b9d11b27b689e5f0dcdd0fc9e Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Mon, 9 May 2022 17:48:20 +0600 Subject: [PATCH] Search YouTube algorithmic tweak to increase result choice --- lib/helpers/search-youtube.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/helpers/search-youtube.dart b/lib/helpers/search-youtube.dart index f5c414db..afba453c 100644 --- a/lib/helpers/search-youtube.dart +++ b/lib/helpers/search-youtube.dart @@ -70,6 +70,8 @@ Future toSpotubeTrack( ]) { if (el) rate++; } + // can't let pass any non title matching track + if (!hasTitle) rate = rate - 2; return { "video": video, "points": rate,