forked from boyska/radiomanifest.js
si stava meglio quando si stava peggio
This commit is contained in:
parent
221430c017
commit
64b5446433
1 changed files with 11 additions and 10 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue