This is kind of a follow up on How can I find the movie name with HandBrake CLI? which never got a satisfying answer.
On a headless server (centOS 7.5), I would like to find out the name of the movie which is on the dvd in the dvd drive, e.g. "Lock, Stock and Two Smoking Barrels". The method should be suitable for embedding in a script, it should not require user interaction.
Anything goes, cli tools, python libs, C code, ...