Skip to content

Commit

Permalink
Removing content from config page that was commented out as it caused…
Browse files Browse the repository at this point in the history
… issues with loading.

#62
  • Loading branch information
ankenyr committed Aug 6, 2022
1 parent 66caf92 commit 6b3abfc
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions Jellyfin.Plugin.YoutubeMetadata/Configuration/configPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,49 +19,8 @@ <h1>Youtube Metadata Configuration Page</h1>
</div>
<div data-role="content">
<div class="content-primary">
<!--<form id="YoutubeMetadataConfigForm">
<div class="selectContainer">
<label class="inputeLabel inputLabelUnfocused" for="IDType">ID Type</label>
<select is="emby-select" id="IDType" name="IDType" class="emby-select-withcolor emby-select">
<option value="YTDLP">YTDLP</option>
<option value="TubeArchivist">TubeArchivist</option>
</select>
</div>
<div>
<button is="emby-button" type="submit" class="raised button-submit block emby-button">
<span>Save</span>
</button>
</div>
</form>-->
</div>
</div>
<script type="text/javascript">
var YoutubeMetadataConfig = {
pluginUniqueId: 'b4b4353e-dc57-4398-82c1-de9079e7146a'
};

document.querySelector('#YoutubeMetadataConfigPage')
.addEventListener('pageshow', function () {
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(YoutubeMetadataConfig.pluginUniqueId).then(function (config) {
document.querySelector('#IDType').value = config.IDType;
Dashboard.hideLoadingMsg();
});
});

document.querySelector('#YoutubeMetadataConfigPage')
.addEventListener('submit', function () {
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(YoutubeMetadataConfig.pluginUniqueId).then(function (config) {
config.IDType = document.querySelector('#IDType').value;
ApiClient.updatePluginConfiguration(YoutubeMetadataConfig.pluginUniqueId, config).then(function (result) {
Dashboard.processPluginConfigurationUpdateResult(result);
});
});

return false;
});
</script>
</div>

</body>
Expand Down

0 comments on commit 6b3abfc

Please sign in to comment.