adblockradio / webradio-metadata

Collection of scraping recipes to get metadata about what is being streamed on webradios
Mozilla Public License 2.0
35 stars 13 forks source link

Metadata wrong on Belgium Radio 1 #4

Closed TxefoZabala closed 5 years ago

TxefoZabala commented 5 years ago

When I run the command 'node demo' on the Belgium Radio 1 stream the metadata shown is the metadata from Belgium MNM. I also see in the file webradio-metadata.js :

 {
            name: "MNM",
            url: "https://services.vrt.be/playlist/onair?channel_code=55",
            parser: n(296)
        }, {
            name: "Radio 1",
            url: "https://services.vrt.be/playlist/onair?channel_code=11&accept=application%2Fvnd.playlist.vrt.be.noa_1.0%2Bjson",
            parser: n(296)
        }

Both parsers are n(296). I don't know how this file is created (it's not in the repo). Can this be corrected?

dest4 commented 5 years ago

Hi, I moved your issue to the correct repo. The strange variable name n(296) you saw comes from webpack bundling, see https://github.com/adblockradio/webradio-metadata/blob/master/package.json#L8

The issue with Radio 1 should be fixed now with commit https://github.com/adblockradio/webradio-metadata/commit/c794ed4c4f78837c207697d32abaefe0823b17be

I have pushed the update on the CDN so that Adblock Radio algo should automatically pick the new version.