From 64b5446433dc271b830c7485a9676386bd957586 Mon Sep 17 00:00:00 2001 From: boyska Date: Fri, 19 Nov 2021 17:03:22 +0100 Subject: [PATCH] si stava meglio quando si stava peggio --- radiomanifest.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/radiomanifest.js b/radiomanifest.js index 4c4d4ac..9577eef 100644 --- a/radiomanifest.js +++ b/radiomanifest.js @@ -1,14 +1,4 @@ const fetch = require('isomorphic-unfetch') -module.exports = { - - /** - * - * @param {String} baseURL to search for a radiomanifest - */ - get (baseURL, options = { shows: false, streaming: false, calendar: false }) { - return new RadioManifest(baseURL, options ) - } -} class RadioManifest { constructor (baseURL, options) { @@ -158,3 +148,14 @@ function parseM3U(body) { } }) } + +module.exports = { + get: get, + objs: { + Radio: Radio, + RadioStreaming: RadioStreaming + }, + parsers: { + M3U: parseM3U, + } +}