Author Topic: BASS_StreamCreateURL  (Read 125 times)

Patrice

  • Posts: 75
BASS_StreamCreateURL
« on: 16 Jun '22 - 12:50 »
Hello,

I would like to filter a huge radio list (more than 30000 radio stations) to remove dead links.

What is the fastest way to do this using BASS_StreamCreateURL ?

Thank you.


Ian @ un4seen

  • Administrator
  • Posts: 24495
Re: BASS_StreamCreateURL
« Reply #1 on: 16 Jun '22 - 18:07 »
Using the BASS_STREAM_DECODE flag in the BASS_StreamCreateURL call will save a bit of time/memory for URLs that aren't dead. Also make sure that the BASS_CONFIG_NET_PREBUF_WAIT option is disabled (as is the default in the current BASS release).

If multiple URLs are on the same server then you could perhaps save some time by eliminating all of them if you can't connect to one of them. In that case, you should use a DOWNLOADPROC callback (and BASS_STREAM_STATUS flag) to detect if headers were received, ie. if headers were received then BASS was able to connect to the server and other URLs on the server may still be working. You may also want to check for BASS_ERROR_FILEFORM errors to detect URLs that are unplayable rather than dead.

Patrice

  • Posts: 75
Re: BASS_StreamCreateURL
« Reply #2 on: 16 Jun '22 - 18:47 »
Thank you Ian

I shall test it asap.  :)

Patrice

  • Posts: 75
Re: BASS_StreamCreateURL
« Reply #3 on: 17 Jun '22 - 09:41 »
For those wanting to collect as many internet radio and TV stations as possible.
Have a look at this link
https://www.radio-browser.info/

See here the info you can retrieve
https://www.radio-browser.info/history/d1a54d2e-623e-4970-ab11-35f7b56c5ec3
URL: https://walmradio.com:8443/classic
FAVICON: https://walmradio.com:8443/WALM_record_512x512.png
TAGS: 1930,1940,1950,1960,beautiful music,big band,classic hits,crooners,easy,easy listening,hd,light orchestral,lounge,oldies,otr,relaxation,swing,unwind
etc.

You can get the latest.sql list here:
https://backups.radio-browser.info/
« Last Edit: 17 Jun '22 - 10:00 by Patrice »