mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-05 15:49:22 +00:00
fix error message
This commit is contained in:
parent
23ca4addf9
commit
507eed4f53
1 changed files with 1 additions and 1 deletions
|
@ -609,7 +609,7 @@ class StatePlatform {
|
||||||
//Video
|
//Video
|
||||||
fun hasEnabledVideoClient(url: String) : Boolean = getEnabledClients().any { it.isContentDetailsUrl(url) };
|
fun hasEnabledVideoClient(url: String) : Boolean = getEnabledClients().any { it.isContentDetailsUrl(url) };
|
||||||
fun getContentClient(url: String) : IPlatformClient = getContentClientOrNull(url)
|
fun getContentClient(url: String) : IPlatformClient = getContentClientOrNull(url)
|
||||||
?: throw NoPlatformClientException("No client enabled that supports this channel url (${url})");
|
?: throw NoPlatformClientException("No client enabled that supports this content url (${url})");
|
||||||
fun getContentClientOrNull(url: String) : IPlatformClient? = getEnabledClients().find { it.isContentDetailsUrl(url) };
|
fun getContentClientOrNull(url: String) : IPlatformClient? = getEnabledClients().find { it.isContentDetailsUrl(url) };
|
||||||
fun getContentDetails(url: String, forceRefetch: Boolean = false): Deferred<IPlatformContentDetails> {
|
fun getContentDetails(url: String, forceRefetch: Boolean = false): Deferred<IPlatformContentDetails> {
|
||||||
Logger.i(TAG, "Platform - getContentDetails (${url})");
|
Logger.i(TAG, "Platform - getContentDetails (${url})");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue