media/youtube.lua: Use HTTPS if input URL uses it
commite6a65873e0931f98d3a769f7f805522d729f87a4
authorToni Gundogdu <legatvs@gmail.com>
Wed, 11 Sep 2013 09:32:43 +0000 (11 12:32 +0300)
committerToni Gundogdu <legatvs@gmail.com>
Thu, 12 Sep 2013 13:53:48 +0000 (12 16:53 +0300)
tree829fd9b25ab754814e61959040df4b29a3ed3805
parent3d1d706794b54440efe9c13bd16fd200f46bd751
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>
share/media/youtube.lua