media/liveleak.lua: Ignore fac3book iframe src values

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Move website/tapuz.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/tapuz.lua: Relicense under AGPLv3+

See also:
* http://article.gmane.org/gmane.comp.web.flash.quvi/335

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/tapuz.lua: Rewrite ident function

Rewrite the `ident' function for the libquvi 0.9+ series.
* Implement `Tapuz.can_parse_url' function
* Remove any now obsolete code

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/tapuz.lua: Remove query_formats function

Remove the now obsolete `query_formats' function which is no longer
supported by libquvi 0.9+.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/tapuz.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Use LuaExpat to parse the media {title,stream,thumb} properties
* Remove now obsolete code (e.g. self.host_id)
* Apply 2-space indentation
* Update vim modeline
* Parse duration (ms)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
tests: Add a test for media/tapuz.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media: Add support for tube.majestyc.net

See also:
* https://www.mail-archive.com/quvi-devel@lists.sourceforge.net/msg00347.html

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
tests: Add a test for media/majestyc.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media: Add support for vzaar.com

See also:
* https://www.mail-archive.com/quvi-devel@lists.sourceforge.net/msg00346.html

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
tests: Add a test for media/vzaar.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
scan: Add support for embedded vzaar.com media URLs

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
tests: Add a test for scan/vzaar.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Merge branch 'tg/next__media_port_tapuz.lua' into next
Merge branch 'tg/next__add_support__{media/scan}/vzaar.lua' into next
Merge branch 'tg/next__add_support__media/majestyc.lua' into next
cleanup: table.concat: Do not call with an empty sep value

As this is not required, nor a required arg.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Fix support for arte.tv

* Videos are now hosted on arte.tv/guide; for new videos, there's a
  redirection from videos.arte.tv to arte.tv/guide

* For a given video, all stream datas are now provided by a JSON file
  instead of a XML file as before

* In this JSON data file, an ID (versionProg) describes the language of
  each available stream:

    versionProg == 1 -> default language version, matching the video URL
                        language

    versionProg == 2 -> alternate language version

    versionProg == 3 -> original version with default language subtitles

    versionProg == 8 -> default language version with subtitle for
                        hard-of-hearing

* I took the liberty of adding the stream protocol to the generated
  stream ID, to distinguish same-quality videos (some videos are
  available through HTTP, in addition of RTMP, for some MD/LD videos,
  probably for mobile phones

* The tests were updated to reflect these changes

Signed-off-by: Mohamed El Morabity <melmorabity@fedoraproject.org>
Reviewed-by: Toni Gundogdu <legatvs@gmail.com>
media/arte.lua: Use the 'a?b:c' -idiom

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/arte.lua: Arte.to_id: Return ID in lowercase

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>