LR SDK: find out name of redirected URL ?
For a LrC plugin I'd like to implement an "Update available" check. The plugin is located on Github, releases are labeled (e.g. "v2.4.960", which is identical to the major.minor.revison version number in Info.lua). The latest version can be accessed through https://github.com/capricorn8/Focus-Points/releases/latest.
When accessing the latest version, "latest" is resolved to "tag/v2.4.960". So, the most convenient way to implement an "Update available" check would be if there was a Lua function that takes "latest" URL as input and returns "tag/v2.4.960" as a result.
The LrHttp functions do not seem to offer a solution for this. Using LrHttp, I could use LrHttp.get() and parse the lengthy response to (hopefully) catch the right piece of information. Not really convincing.
Does anyone know of a way to do this inside Lua?
Right now, to me it seems that the best options is an external call to "curl.exe" which should work on both WIN and MAC platforms.
