-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit: Basic plugin structure
- Loading branch information
1 parent
d62e613
commit 97cf247
Showing
47 changed files
with
200 additions
and
5,641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Version>18.0.0.0</Version> | ||
<AssemblyVersion>18.0.0.0</AssemblyVersion> | ||
<FileVersion>18.0.0.0</FileVersion> | ||
<Version>0.0.0.1</Version> | ||
<AssemblyVersion>0.0.0.1</AssemblyVersion> | ||
<FileVersion>0.0.0.1</FileVersion> | ||
</PropertyGroup> | ||
</Project> |
12 changes: 12 additions & 0 deletions
12
Jellyfin.Plugin.DelayedRelease/Configuration/PluginConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using MediaBrowser.Model.Plugins; | ||
|
||
namespace Jellyfin.Plugin.DelayedRelease.Configuration | ||
{ | ||
/// <summary> | ||
/// Plugin Configuration. | ||
/// </summary> | ||
public class PluginConfiguration : BasePluginConfiguration | ||
{ | ||
// Add your plugin-specific configuration properties here if needed | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-US"> | ||
<head> | ||
<title>Delayed Release</title> | ||
</head> | ||
<body> | ||
<div id="delayedReleaseConfigurationPage" data-role="page" class="page type-interior pluginConfigurationPage"> | ||
<div data-role="content"> | ||
<div class="content-primary"> | ||
<form class="delayedReleaseConfigurationForm"> | ||
<div class="verticalSection verticalSection-extrabottompadding"> | ||
<div class="sectionTitleContainer flex align-items-center"> | ||
<h2 class="sectionTitle">Delayed Release Settings:</h2> | ||
<a is="emby-button" class="raised button-alt headerHelpButton" target="_blank" | ||
href="https://github.com/your-username/jellyfin-plugin-delayedrelease">${Help}</a> | ||
</div> | ||
<div> | ||
<button is="emby-button" type="submit" data-theme="b" class="raised button-submit block"> | ||
<span>Save</span> | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
var DelayedReleasePluginConfiguration = { | ||
uniquePluginId: "b7decd4f-e20d-45f5-b16b-da6f55d456a1", | ||
|
||
loadConfiguration: function () { | ||
Dashboard.showLoadingMsg(); | ||
ApiClient.getPluginConfiguration(DelayedReleasePluginConfiguration.uniquePluginId).then(function (config) { | ||
Dashboard.hideLoadingMsg(); | ||
}); | ||
}, | ||
|
||
saveConfiguration: function () { | ||
Dashboard.showLoadingMsg(); | ||
ApiClient.getPluginConfiguration(DelayedReleasePluginConfiguration.uniquePluginId).then(function (config) { | ||
ApiClient.updatePluginConfiguration(DelayedReleasePluginConfiguration.uniquePluginId, config).then(function (result) { | ||
Dashboard.processPluginConfigurationUpdateResult(result); | ||
}); | ||
}); | ||
}, | ||
}; | ||
|
||
document.getElementById('delayedReleaseConfigurationPage').addEventListener('pageshow', function () { | ||
DelayedReleasePluginConfiguration.loadConfiguration(); | ||
}); | ||
|
||
document.getElementById('delayedReleaseConfigurationPage').addEventListener('submit', function (e) { | ||
e.preventDefault(); | ||
DelayedReleasePluginConfiguration.saveConfiguration(); | ||
}); | ||
</script> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Jellyfin.Plugin.DelayedRelease.Configuration; | ||
using MediaBrowser.Common.Configuration; | ||
using MediaBrowser.Common.Plugins; | ||
using MediaBrowser.Model.Plugins; | ||
using MediaBrowser.Model.Serialization; | ||
|
||
namespace Jellyfin.Plugin.DelayedRelease | ||
{ | ||
/// <summary> | ||
/// Delayed Release Plugin. | ||
/// </summary> | ||
public class DelayedReleasePlugin : BasePlugin<PluginConfiguration>, IHasWebPages | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="DelayedReleasePlugin"/> class. | ||
/// </summary> | ||
/// <param name="applicationPaths">Instance of the <see cref="IApplicationPaths"/> interface.</param> | ||
/// <param name="xmlSerializer">Instance of the <see cref="IXmlSerializer"/> interface.</param> | ||
public DelayedReleasePlugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) | ||
: base(applicationPaths, xmlSerializer) | ||
{ | ||
Instance = this; | ||
} | ||
|
||
/// <summary> | ||
/// Gets current plugin instance. | ||
/// </summary> | ||
public static DelayedReleasePlugin? Instance { get; private set; } | ||
|
||
/// <inheritdoc /> | ||
public override string Name => "Delayed Release"; | ||
|
||
/// <inheritdoc /> | ||
public override Guid Id => new Guid("b7decd4f-e20d-45f5-b16b-da6f55d456a1"); | ||
|
||
/// <inheritdoc /> | ||
public IEnumerable<PluginPageInfo> GetPages() | ||
{ | ||
yield return new PluginPageInfo | ||
{ | ||
Name = Name, | ||
EmbeddedResourcePath = $"{GetType().Namespace}.Configuration.config.html" | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
108 changes: 0 additions & 108 deletions
108
Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.