Move website/lego.lua to media/

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

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

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

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

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

Rewrite the `parse' function for the libquvi 0.9+ series.
* Remove now obsolete code (e.g. self.host_id)
* Implement `Lego.iter_streams' function
* Apply 2-space indentation
* Add missing vim modeline
* Parse thumbnail URL

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Merge branch 'tg/next__media_port_lego.lua' into next
quvi/youtube.lua: normalize: Revise, remove "nocookie" handling

Revise:
* Remove youtube-nocookie.com handling (no longer operational)
* Add test_normalize function for testing purposes
* Improve code readability

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
media/youtube.lua: Use HTTPS if input URL uses it

Use HTTPS throughout the operation if the input URL is an HTTPS URL.
The script previously made the video info queries over the HTTP even if
the input URL was given as an HTTPS URL.

Note that the media stream URLs are only available over HTTP; the
service apparently supports HTTP media stream transfers only, and any
attempts to force HTTPS will result in HTTP/403.

Other:
* Cleanup and revise for readability

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
playlist/youtube.lua: Use HTTPS if input URL uses it

Use HTTPS throughout the operation if the input URL is an HTTPS URL.
The script previously made the playlist queries over the HTTP even if
the input URL was given as an HTTPS URL.

Other:
* Return the media URLs using the input URL scheme

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
subtitle/youtube.lua: Use HTTPS if input URL uses it

Use HTTPS throughout the operation if the input URL is an HTTPS URL.
The script previously made the subtitle queries over the HTTP even if
the input URL was given as an HTTPS URL.

Other:
* Return the language URLs using the input URL scheme

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
scan/youtube.lua: Return HTTPS media URLs if input URL uses it

Other:
* Remove handling of youtube-nocookie.com (domain no longer operational)
* Create strings using tables (the "Lua way")

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
FIX: media/youtube.lua: Unescape using quvi/util

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Install with share/README

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
share/README: Add Lua {resources,modules}

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

Signed-off-by: Mohamed El Morabity <melmorabity@fedoraproject.org>
Reviewed-by: Toni Gundogdu <legatvs@gmail.com>
tests: Add a test for media/ina.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
share/Makefile.am: Add media/ina.lua to dist_media_DATA

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

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

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

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