How to use the meta.find function in meta

To help you get started, weā€™ve selected a few meta examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Stremio / stremio-addons / server.js View on Github external
self.request("stats.get", [{ stremioget: true }], function(err, s) {
 			if (err) console.log(err);
			if (s) stats = s;
			if (! self.methods['meta.find']) return respond();
			self.request("meta.find", [{stremioget: true}, { query: {}, limit: 10 }], function(err, t) {
				if (err) return error(err);
				if (t) top = t;
				respond();
			});
		});
github Stremio / stremio-addons / addon-template.js View on Github external
var mapType = function(t) { return ({ movie: "Movies", series: "Series", tv: "TV Channels", channel: "Channels" })[t] || t };
jade_debug.shift();
jade_debug.unshift(new jade.DebugItem( 69, "addon-template.jade" ));
buf.push("<h2 class="\&quot;gives\&quot;">");
jade_debug.unshift(new jade.DebugItem( undefined, jade_debug[0].filename ));
jade_debug.unshift(new jade.DebugItem( 69, jade_debug[0].filename ));
buf.push("This add-on will give you:");
jade_debug.shift();
jade_debug.shift();
buf.push("</h2>");
jade_debug.shift();
jade_debug.unshift(new jade.DebugItem( 70, "addon-template.jade" ));
buf.push("<ul>");
jade_debug.unshift(new jade.DebugItem( undefined, jade_debug[0].filename ));
jade_debug.unshift(new jade.DebugItem( 71, "addon-template.jade" ));
if ( addon.methods['meta.find'])
{
jade_debug.unshift(new jade.DebugItem( 72, "addon-template.jade" ));
jade_debug.unshift(new jade.DebugItem( 72, "addon-template.jade" ));
buf.push("<li>");
jade_debug.unshift(new jade.DebugItem( undefined, jade_debug[0].filename ));
jade_debug.unshift(new jade.DebugItem( 72, jade_debug[0].filename ));
buf.push("More " + (jade.escape((jade_interp = addon.manifest.types.map(mapType).join(", ")) == null ? '' : jade_interp)) + " in Discover");
jade_debug.shift();
jade_debug.shift();
buf.push("</li>");
jade_debug.shift();
jade_debug.shift();
}
jade_debug.shift();
jade_debug.unshift(new jade.DebugItem( 73, "addon-template.jade" ));
if ( addon.methods['stream.find'])</ul>

meta

tool for turning many repos into a meta repo. why choose many repos or a monolithic repo, when you can have both with a meta repo?

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis