libquvi provides basic support for parsing subtitle properties and exporting the available subtitles into a specified format, e.g. SubRip.
When the library returns >1 languages, you can access them using the quvi_subtitle_type_next, quvi_subtitle_lang_next and quvi_subtitle_lang_get. Alternatively, the convenience function quvi_subtitle_select could be used.
The example below asks the library to return the language ID matching the "cc_en" pattern.
If neither "tts_e?" or "cc_a?" matched any of the available subtitles, the library would exit with an error (croak). By default, the library will return the default (first available type and the first available language).
libquvi provides basic facility for converting the subtitles from their internal subtitle format that the website uses to a more standard-like format, e.g. SubRip, the media players support.
The available Subtitle export script collection determines which export formats are supported by the library. If your application needs to know the available export formats, use the Scripts interface for querying the QUVI_SCRIPT_PROPERTY_EXPORT_FORMAT.