Hello,
I am working on integrating RadioDNS with a DAB/DAB+ Android app.
I found that the latest version ab3505d of java-CountryCodeResolver results in an unexpected GCC result for German DAB stations, when SId starts with "1" instead of "D".
Instead of de0, the result is 1e0.
This causes that the DNS lookup fails when using gcc=1e0, but succeeds with gcc=de0.
See below for the command-line nslookup command results.
In Germany, SId with a leading "1" are quite common for private stations.
SId of public stations start with "D" typically and these can be resolved to gcc=de0 properly.
Is this a bug in the Resolver code or countries.csv?
Thanks for any feedback on this matter.
zoulou
Maintainer of DAB-Z app on Google Play
===========================================================
nslookup -type=CNAME 0.101b.d073.1e0.dab.radiodns.org
==> Non-existent domain
nslookup -type=CNAME 0.101b.d073.de0.dab.radiodns.org
==> 0.101b.d073.de0.dab.radiodns.org canonical name = rdns.radioplayer.de
Java source code for a unit test:
Resolver resolver = new Resolver();
resolver.setIsoCountryCode("DE");
resolver.setDabSId("101B"); // "95.5 CHARIVARI" on Ensemble="Muenchen" Eid=D073
List<Result> resultList = resolver.resolveGCC();
Result result = resultList.get(0);
assertEquals("de0", result.gcc);
org.junit.ComparisonFailure:
Expected :de0
Actual :1e0
===========================================================
--
--
You received this message because you are subscribed to the RadioDNS developers group. RadioDNS is at http://radiodns.org/
To post to this group, send email to
radiodns-...@googlegroups.com
To unsubscribe from this group, send email to
radiodns-develo...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/radiodns-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "RadioDNS developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to radiodns-develo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.