AlbrechtL / welle.io

A DAB/DAB+ Software Defined Radio (SDR)
https://www.welle.io
Other
632 stars 118 forks source link

Tune in via service id with welle-cli #663

Closed white-gecko closed 1 month ago

white-gecko commented 3 years ago

When I want to tune to the "Dlf" (Deutschlandfunk) welle-cli tunes to "Dlf Nova" as it does a substring matching

https://github.com/AlbrechtL/welle.io/blob/66675c9a4160c644a5ade5bf7a0cd0647647f33c/src/welle-cli/welle-cli.cpp#L621

Is there any chance to tune to a programm with its id? e.g. 0xd210 in case of Dlf.

I coulnd't find out which filed holds the service id on the service object, so I couldn't make a pull-request, sorry.

Nice project Albrecht!

mpbraendli commented 3 years ago

How about we try to do an exact match, and do the prefix match only if that fails?

white-gecko commented 3 years ago

I think that is a good idea for tuning via station name. But an additional parameter for the id could help as well.

AlbrechtL commented 2 years ago

@mpbraendli Can we close this topic?

But I always say pull request are welcome!

white-gecko commented 2 years ago

Actually I have just these days setup a raspi with welle-cli and I want to listen to dlf, so I will need to submit a pullrequest when I get to the point ...

thaenig commented 1 year ago

Yesterday I did my first steps ever with welle-cli und stumbled upon the issue with Dlf too. What worked as station name was "Dlf " - two spaces after the actual name and everything within double quotes.

mpbraendli commented 1 month ago

Closing due to lack of activity.