mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Add ordinal number to plugins
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ class DirectDownloadPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin(
|
||||
)
|
||||
)
|
||||
|
||||
@Extension
|
||||
@Extension(ordinal = 1)
|
||||
class DirectDownloadProvider : DownloadProvider {
|
||||
override fun download(path: Path): Download {
|
||||
if (!path.exists()) throw IllegalArgumentException("Path $path does not exist")
|
||||
|
||||
@@ -85,7 +85,7 @@ class IgdbPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin(wrapper) {
|
||||
log.debug("Authentication successful")
|
||||
}
|
||||
|
||||
@Extension
|
||||
@Extension(ordinal = 2)
|
||||
class IgdbMetadataProvider : GameMetadataProvider {
|
||||
|
||||
companion object {
|
||||
|
||||
@@ -33,7 +33,7 @@ class SteamPlugin(wrapper: PluginWrapper) : GameyfinPlugin(wrapper) {
|
||||
}
|
||||
}
|
||||
|
||||
@Extension
|
||||
@Extension(ordinal = 3)
|
||||
class SteamMetadataProvider : GameMetadataProvider {
|
||||
private val log = LoggerFactory.getLogger(javaClass)
|
||||
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ class SteamGridDbPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin(wra
|
||||
log.debug("Authentication successful")
|
||||
}
|
||||
|
||||
@Extension
|
||||
@Extension(ordinal = 1)
|
||||
class SteamGridDBGameCoverProvider : GameMetadataProvider {
|
||||
|
||||
override fun fetchByTitle(gameTitle: String, maxResults: Int): List<GameMetadata> {
|
||||
|
||||
+1
-1
@@ -146,7 +146,7 @@ class TorrentDownloadPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin
|
||||
)
|
||||
}
|
||||
|
||||
@Extension
|
||||
@Extension(ordinal = 2)
|
||||
class TorrentDownloadProvider : DownloadProvider {
|
||||
private val log = LoggerFactory.getLogger(TorrentDownloadProvider::class.java)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user