This commit is contained in:
sorin-postelnicu 2023-10-25 22:23:38 +08:00 committed by GitHub
commit c2162e7f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 13 deletions

View File

@ -43,6 +43,7 @@ public final class YoutubeSearchQueryHandlerFactory extends SearchQueryHandlerFa
try {
if (!contentFilters.isEmpty()) {
final String contentFilter = contentFilters.get(0);
if (contentFilter != null) {
switch (contentFilter) {
case VIDEOS:
return SEARCH_URL + encodeUrlUtf8(searchString) + "&sp=EgIQAQ%253D%253D";
@ -58,6 +59,7 @@ public final class YoutubeSearchQueryHandlerFactory extends SearchQueryHandlerFa
return MUSIC_SEARCH_URL + encodeUrlUtf8(searchString);
}
}
}
return SEARCH_URL + encodeUrlUtf8(searchString);
} catch (final UnsupportedEncodingException e) {