Yar maybe it would be easier to just implement it the following way:
supposing that the deovr is going to load a video from url http://example.com/media/video.mp4
, if http://example.com/media/video.funscript
exists (returns 200 for a HEAD request, that is cheap) load it.