diff --git a/README.md b/README.md index b1cebc4..c0abed1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Radiomanifest.js -An implementation of the ever-famous [radiomanifest spec](https://boyska.degenerazione.xyz/radiomanifest/) +An implementation of the ever-famous [radiomanifest spec](https://radiomanifest.degenerazione.xyz//) available as a Node module, a browser module, or an ugly-but-works UMD that exports a "radiomanifest" global. @@ -13,6 +13,6 @@ npm run test ## Supported spec - - [radiomanifest](https://boyska.degenerazione.xyz/radiomanifest/) + - [radiomanifest](https://radiomanifest.degenerazione.xyz/) - [stream-meta v2](https://www.stream-meta.info/version_2_files.html): name of the radio is extracted from `/streaminfo.json` diff --git a/test/404.test.js b/test/404.test.js index b8a1deb..1a4d504 100644 --- a/test/404.test.js +++ b/test/404.test.js @@ -8,13 +8,10 @@ const testName = 'idontexist' const url = 'https://example.org/radiomanifest/examples/' + testName + '/' describe('radiomanifest.js supports example ' + testName, () => { - describe('Get empty radiomanifest', () => { it('should throw', () => { const p = radiomanifest.get(url) - expect(p).to.be.rejected; + expect(p).to.be.rejected }) }) - }) - diff --git a/test/example-empty.test.js b/test/example-empty.test.js index a10fd0f..c6151f5 100644 --- a/test/example-empty.test.js +++ b/test/example-empty.test.js @@ -6,7 +6,7 @@ const assert = chai.assert const expect = chai.expect const tests = ['empty', 'empty-no-streaminfo', 'empty-invalid-streaminfo'] for (var exampleName of tests) { - let url = 'https://boyska.degenerazione.xyz/radiomanifest/examples/' + exampleName + '/' + let url = 'https://radiomanifest.degenerazione.xyz/v0.2/examples/' + exampleName + '/' describe('examples/' + exampleName, () => { describe('Get radiomanifest', () => { diff --git a/test/example-source404.test.js b/test/example-source404.test.js index 041a180..f138e5b 100644 --- a/test/example-source404.test.js +++ b/test/example-source404.test.js @@ -5,7 +5,7 @@ const assert = chai.assert const exampleName = 'source404' const expect = chai.expect -const url = 'https://boyska.degenerazione.xyz/radiomanifest/examples/' + exampleName + '/' +const url = 'https://radiomanifest.degenerazione.xyz/v0.2/examples/' + exampleName + '/' describe('examples/' + exampleName, () => { describe('streaming', () => { diff --git a/ui.js b/ui.js index 819ad0e..1df9f1d 100644 --- a/ui.js +++ b/ui.js @@ -1,7 +1,6 @@ // const radiomanifest = require('radiomanifest.js') async function fai () { const radio = await radiomanifest.get('http://www.ondarossa.info/') - // var radio = await get("https://boyska.degenerazione.xyz/radiomanifest/examples/empty/") console.log('radio?', radio) const s = radio.getStreaming() console.log(s.sources)