Basically, the issue is deciding what SeriesID to use. I think everyone's settled on the Kobo generated SeriesID if a user has a Kobo downloaded book in that series on their device, or the SeriesName otherwise.

As I said, a matter of integrating the logic/SQL in my own code. I'll probably get around to it when I can be bothered to install FW 4.20.x on my devices...