api-impl: misc stubs and fixes for Spotify II

This commit is contained in:
Daniel Panero
2024-11-03 01:04:40 +01:00
committed by Dani Pani
parent 4b36bca4c6
commit f48fce5932
9 changed files with 85 additions and 16 deletions

View File

@@ -8,4 +8,13 @@ public class URLUtil {
filename = filename.substring(0, filename.indexOf('?'));
return filename;
}
/**
* @return {@code true} if the url is an https: url.
*/
public static boolean isHttpsUrl(String url) {
return (null != url)
&& (url.length() > 7)
&& url.substring(0, 8).equalsIgnoreCase("https://");
}
}