mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-20 18:19:43 +02:00
@@ -23,6 +23,12 @@ class StubSource(
|
||||
|
||||
override fun toString(): String =
|
||||
if (isInvalid.not()) "$name (${lang.uppercase()})" else id.toString()
|
||||
|
||||
companion object {
|
||||
fun from(source: Source): StubSource {
|
||||
return StubSource(id = source.id, lang = source.lang, name = source.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class SourceNotInstalledException : Exception()
|
||||
|
Reference in New Issue
Block a user