Skip to content

Instantly share code, notes, and snippets.

@nielsvanvelzen
Created February 13, 2023 08:38
Show Gist options
  • Save nielsvanvelzen/955f67a8a78a8f8302914ba248dbfcc6 to your computer and use it in GitHub Desktop.
Save nielsvanvelzen/955f67a8a78a8f8302914ba248dbfcc6 to your computer and use it in GitHub Desktop.
jellyfin-plugins-tester
// deno run --allow-net .\plugintest.js
const manifestUrl = 'https://repo.jellyfin.org/master/releases/plugin/manifest-stable.json';
console.log(`Reading from ${manifestUrl}`);
const res = await fetch(manifestUrl);
const json = await res.json();
for (const plugin of json) {
if (plugin.versions.length === 0) throw `Plugin ${plugin.name} doesn't have any versions!?`;
const latestVersion = plugin.versions[0];
if (!latestVersion.targetAbi.startsWith('10.8')) console.warn(`Plugin ${plugin.name} is targeting older Jellyfin version ${latestVersion.targetAbi}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment