gwes wrote in <d124b690-23d0-a979-d585-d5bf7c09a...@oat.com>: |On 7/25/22 13:53, Erling Westenvik wrote: |> On Mon, Jul 25, 2022 at 11:40:30AM -0400, Nick Holland wrote: |>> I noticed that the cdio(1) cddbinfo command seem to no longer |>> work. I don't think this is a snapshot breakage -- I upgraded ... |>> For some CDs, it returns an accurate title: |>> $ cdio cddbinfo |>> Van Halen / Van Halen II (rock) |>> |>> but not the track listing it used to show. ... |tcpdump shows a query to port 8880 | | From https://gnudb.org/howtognudb.php | | For new applications do not use the cddbp protocol (port 8880), | it is only left for compatibility with old programs, | all cddbp access to gnudb is actually converted to http requests. | | The preferred protocol level is 6, most gnudb cddb entries are |converted to utf-8 | |The query part of cdio needs to be rewritten using the new format. |That should probably be stolXXXXcopied from some other program. |I'll take a quick look around to see if there's anything obvious |with an acceptable license. | geoff steckel
If anyone feels to pimp cdio with the MusicBrainz DB that seems to be in use more and more, you could extract and adapt the "package CDInfo::InfoSource::MusicBrainz;" from my s-cdda-to-db that is in ports. It is anyway a good starting point that works with my (granted restricted) use cases of it. The needed HTTP::Tiny and XML::Parser are there anyway iirc. (TLS is often no good, i stopped using its TLS because of that. And the JSON output did not work for the needed query alone once i implemented it, thus the XML one.) I think they get money from Microsoft, but this is not a problem for you, is it. (If someone does extract it, it needs the "sub _calc_mb_discid" result in order to do the query, and shall someone find errors, i am happy to fix them. I.e., this is perl, but doing _that_ dance in C is i think a nuisance, just parse the output of the perl thing seems better.) --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)