FIX: website/cbsnews: Adapt to website changes
commitcda2d1222733bfde7d6676b91d26deeeb1195b00
authorToni Gundogdu <legatvs@gmail.com>
Tue, 26 Nov 2013 22:11:41 +0000 (27 00:11 +0200)
committerToni Gundogdu <legatvs@gmail.com>
Wed, 27 Nov 2013 14:39:12 +0000 (27 16:39 +0200)
tree187886655ad8b41b9718a329e65026a238a4dde4
parent7a73f10c1cd7f288592e4fbcce9b12e3d8cf740b
FIX: website/cbsnews: Adapt to website changes

This is a rough backport of the similar changes [6a265a9998] made to the
0.9 series. Unlike the 0.9 script however, this one will return only one
stream.

- Rewrite `ident' function
  - Script now returns HTTP/RTMP media streams
  - Script now returns only one stream
  - Add support for new input URL paths

- Simplify `query_formats' function
  - Script now returns only one stream

- Rewrite `parse' function
  - Simplify stream parsing: only one stream ("desktop") is now returned
  - Parse the media properties from the video page HTML

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
share/lua/website/cbsnews.lua