website/canalplus.lua: Add support for {d8,d17}
This is a rough backport of the changes made to the 0.9 series with the
following differences:
- Try to determine the {media,channel} ID from the input URL
- Allows skipping the retrieval of the input URL, saving some KiB
- libquvi (0.4) parses automatically "charset" from the input URL HTML
- This would lead into encoding issues (mangled media title) later
when the REST response was parsed
- Use quvi/util:xml_get since LuaExpat cannot be used
Notable changes:
- ident function:
- Remove the hardcoded URI paths (no longer needed)
- Add "HTTP" to the protocol categories
- {query_formats, parse} functions:
- For lack of a better solution: the "best" is now the "default" stream
- Redirecting to a youtube resource was not implemented
- Try to trim and cleanup the old code where possible
Links:
[1]: http://thread.gmane.org/gmane.comp.web.flash.quvi/364
(the patch for the 0.9 series)
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>