mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 10:27:22 +01:00
libpoketube 2.0!
This commit is contained in:
parent
3f8ceb8351
commit
fddb34e4aa
1 changed files with 19 additions and 2 deletions
|
@ -12,13 +12,30 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
function initlog(args){
|
||||||
|
console.log("[LIBPT INTSYS] " + args)
|
||||||
|
}
|
||||||
|
|
||||||
|
function init (app, port){
|
||||||
|
if(!port) port = "3000"
|
||||||
|
try {
|
||||||
|
app.listen(port, () => {
|
||||||
|
initlog("Loading Poketube: success!" + " on port " + port);
|
||||||
|
});
|
||||||
|
} catch (err) {
|
||||||
|
initlog("Loading Poketube: error", err);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
module.exports =
|
module.exports =
|
||||||
{
|
{
|
||||||
fetcher:require("../libpoketube/libpoketube-fetcher.js"),
|
fetcher:require("../libpoketube/libpoketube-fetcher.js"),
|
||||||
core:require("../libpoketube/libpoketube-core.js"),
|
core:require("../libpoketube/libpoketube-core.js"),
|
||||||
musicInfo:require("music-info"),
|
musicInfo:require("music-info"),
|
||||||
wiki:require("wikipedia"),
|
wiki:require("wikipedia"),
|
||||||
version:"libpoketube-1.2-git",
|
initlog,
|
||||||
|
init,
|
||||||
|
version:"libpoketube-2.0-git",
|
||||||
modules:{
|
modules:{
|
||||||
fetch:require("node-fetch"),
|
fetch:require("node-fetch"),
|
||||||
toJson:require("xml2json").toJson,
|
toJson:require("xml2json").toJson,
|
Loading…
Reference in a new issue