Move website/collegehumor.lua to media/

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

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

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

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/collegehumor.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/collegehumor.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Remove now obsolete code (e.g. self.host_id)
* Apply 2-space indentation
* Update vim modeline

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Port website/dorkly.lua from the 0.4 series

Notable changes:
* Use LuaExpat for parsing the media properties
* Apply 2-space indentation
* Relicense under AGPLv3+
* Update vim modeline

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Merge branch 'tg/next__media_port_collegehumor.lua' into next
Merge branch 'tg/next__media_port_dorkly.lua' into next
share/README: Add an URL to "Lua Unofficial FAQ (uFAQ)"

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

Notable differences to the 0.4 script:
  - Supports also d8.tv and d17.tv which share the same video database
  - Uses the JSON interface provided by Canal+

Differences (:editor:) to the original patch[1]:
  - Concatenate strings using a table, or "the Lua way"[2]
  - Remove the old script from the repo
  test:
  - Update expected media {title,ID} for the first test URL
  - Rename test function to `test_media_canalplus'

Links:
[1]: http://thread.gmane.org/gmane.comp.web.flash.quvi/364
[2]: http://www.luafaq.org/#T1.9

Signed-off-by: Mohamed El Morabity <melmorabity@fedoraproject.org>
Edited-by: Toni Gundogdu <legatvs@gmail.com>
tests: media_canalplus: Update test URLs

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
FIX: media/cbsnews.lua: Adapt to website changes

Adapt to the recently updated website design.
  - Parse all media properties from video page HTML
  - Use LuaJSON to  parse the media properties

Notable changes:
  - Media streams may now contain {HTTP,RTMP,M3U8} URLs [1]
  - Presume the "best" quality to be the "desktop" stream
  - Switch to support the new video URI paths

Notes:
[1]: None of which are currently identified in any other way than
     setting the "container" property which is simply parsed from the
     URI file extension (e.g. "m3u8" or "mp4"), quvi-get(1) cannot
     currently handle the m3u8/hls (or rtmp for that matter)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
tests: media_cbsnews: Update URLs

Other:
  - Do not test the resolution properties (no longer returned)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
tests: media_spiegel: Update test URL

The old one no longer has thumbnail available.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
FIX: media/publicsenat: Reimpl. support

Notable changes:
  - Fetch and parse media properties from an emission URL
  - Use LuaJSON to parse the properties ({stream,thumb} URL)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
FIX: media/101greatgoals: redirect: Add URL scheme

Make sure the redirection URL has a scheme.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
tests: media_101greatgoals: Update test URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Merge branch 'tg/next__101gg_fixes' into next