Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/e7a7edbac02f1cc0818b3f3614f55e579733905e
You should set ROOT_URL correctly, otherwise the web may not work correctly.
8 changed files with
36 additions and
21 deletions
@ -1,12 +1,13 @@
<!DOCTYPE html>
< html >
< head >
< title > AudioDB< / title >
< title > The AudioDB< / title >
< / head >
< body >
< div data-role= "page" class = "page type-interior pluginConfigurationPage configPage" data-require = "emby-input,emby-button,emby-checkbox" >
< div id= "configPage" data-role= "page" class = "page type-interior pluginConfigurationPage configPage" data-require = "emby-input,emby-button,emby-checkbox" >
< div data-role = "content" >
< div class = "content-primary" >
< h1 > TheAudioDB< / h1 >
< form class = "configForm" >
< label class = "checkboxContainer" >
< input is = "emby-checkbox" type = "checkbox" id = "replaceAlbumName" / >
@ -7,16 +7,22 @@ namespace MediaBrowser.Providers.Plugins.MusicBrainz.Configuration;
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
private const string DefaultServer = "https://musicbrainz.org" ;
/// <summary>
/// The default server URL.
/// </summary>
public const string DefaultServer = "https://musicbrainz.org" ;
private const double DefaultRateLimit = 1.0 ;
/// <summary>
/// The default rate limit.
/// </summary>
public const double DefaultRateLimit = 1.0 ;
private string _server = DefaultServer ;
private double _rateLimit = DefaultRateLimit ;
/// <summary>
/// Gets or sets the server url .
/// Gets or sets the server URL .
/// </summary>
public string Server
{
@ -1,9 +1,14 @@
< div id = "musicBrainzConfigurationPage" data-role = "page"
class="page type-interior pluginConfigurationPage musicBrainzConfigurationPage" data-require="emby-input,emby-button,emby-checkbox">
< div data-role = "content" >
< div class = "content-primary" >
< h1 > MusicBrainz< / h1 >
< form class = "musicBrainzConfigurationForm" >
<!DOCTYPE html>
< html >
< head >
< title > MusicBrainz< / title >
< / head >
< body >
< div id = "configPage" data-role = "page" class = "page type-interior pluginConfigurationPage configPage" data-require = "emby-input,emby-button,emby-checkbox" >
< div data-role = "content" >
< div class = "content-primary" >
< h1 > MusicBrainz< / h1 >
< form class = "configForm" >
< div class = "inputContainer" >
< input is = "emby-input" type = "text" id = "server" required label = "Server" / >
< div class = "fieldDescription" > This can be a mirror of the official server or even a custom server.< / div >
@ -28,7 +33,7 @@
uniquePluginId: "8c95c4d2-e50c-4fb0-a4f3-6c06ff0f9a1a"
};
document.querySelector('.musi cBrainzC onfiguration Page')
document.querySelector('.configPage')
.addEventListener('pageshow', function () {
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(MusicBrainzPluginConfig.uniquePluginId).then(function (config) {
@ -52,7 +57,7 @@
});
});
document.querySelector('.musi cBrainzC onfiguration Form')
document.querySelector('.configForm')
.addEventListener('submit', function (e) {
Dashboard.showLoadingMsg();
@ -58,7 +58,7 @@ public class MusicBrainzAlbumProvider : IRemoteMetadataProvider<MusicAlbum, Albu
{
// Fallback to official server
_logger . LogWarning ( "Invalid MusicBrainz server specified, falling back to official server" ) ;
var defaultServer = new Uri ( configuration. Server) ;
var defaultServer = new Uri ( PluginConfiguration. Default Server) ;
Query . DefaultServer = defaultServer . Host ;
Query . DefaultPort = defaultServer . Port ;
Query . DefaultUrlScheme = defaultServer . Scheme ;
@ -55,7 +55,7 @@ public class MusicBrainzArtistProvider : IRemoteMetadataProvider<MusicArtist, Ar
{
// Fallback to official server
_logger . LogWarning ( "Invalid MusicBrainz server specified, falling back to official server" ) ;
var defaultServer = new Uri ( configuration. Server) ;
var defaultServer = new Uri ( PluginConfiguration. Default Server) ;
Query . DefaultServer = defaultServer . Host ;
Query . DefaultPort = defaultServer . Port ;
Query . DefaultUrlScheme = defaultServer . Scheme ;
@ -4,9 +4,10 @@
< title > OMDb< / title >
< / head >
< body >
< div data-role= "page" class = "page type-interior pluginConfigurationPage configPage" data-require = "emby-input,emby-button,emby-checkbox" >
< div id= "configPage" data-role= "page" class = "page type-interior pluginConfigurationPage configPage" data-require = "emby-input,emby-button,emby-checkbox" >
< div data-role = "content" >
< div class = "content-primary" >
< h1 > OMDb< / h1 >
< form class = "configForm" >
< label class = "checkboxContainer" >
< input is = "emby-checkbox" type = "checkbox" id = "castAndCrew" / >
@ -33,16 +34,16 @@
});
});
document.querySelector('.configForm')
.addEventListener('submit', function (e) {
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(PluginConfig.pluginId).then(function (config) {
config.CastAndCrew = document.querySelector('#castAndCrew').checked;
ApiClient.updatePluginConfiguration(PluginConfig.pluginId, config).then(Dashboard.processPluginConfigurationUpdateResult);
});
e.preventDefault();
return false;
});
@ -4,9 +4,10 @@
< title > Studio Images< / title >
< / head >
< body >
< div data-role= "page" class = "page type-interior pluginConfigurationPage configPage" data-require = "emby-input,emby-button,emby-checkbox" >
< div id= "configPage" data-role= "page" class = "page type-interior pluginConfigurationPage configPage" data-require = "emby-input,emby-button,emby-checkbox" >
< div data-role = "content" >
< div class = "content-primary" >
< h1 > Studio Images< / h1 >
< form class = "configForm" >
< div class = "inputContainer" >
< input is = "emby-input" type = "text" id = "repository" label = "Repository" / >
@ -4,9 +4,10 @@
< title > TMDb< / title >
< / head >
< body >
< div data-role= "page" class = "page type-interior pluginConfigurationPage configPage" data-require = "emby-input,emby-button,emby-checkbox" >
< div id= "configPage" data-role= "page" class = "page type-interior pluginConfigurationPage configPage" data-require = "emby-input,emby-button,emby-checkbox" >
< div data-role = "content" >
< div class = "content-primary" >
< h1 > TMDb< / h1 >
< form class = "configForm" >
< label class = "checkboxContainer" >
< input is = "emby-checkbox" type = "checkbox" id = "includeAdult" / >