libquvi-scripts.git
11 years agomedia/ardmediathek.lua: Remove query_formats function
Toni Gundogdu [Tue, 7 May 2013 19:40:29 +0000 (7 22:40 +0300)]
media/ardmediathek.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>
11 years agomedia/ardmediathek.lua: Rewrite ident function
Toni Gundogdu [Tue, 7 May 2013 19:39:52 +0000 (7 22:39 +0300)]
media/ardmediathek.lua: Rewrite ident function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/ardmediathek.lua: Relicense under AGPLv3+
Toni Gundogdu [Tue, 7 May 2013 19:34:55 +0000 (7 22:34 +0300)]
media/ardmediathek.lua: Relicense under AGPLv3+

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/ardmediathek.lua to media/
Toni Gundogdu [Tue, 7 May 2013 19:33:20 +0000 (7 22:33 +0300)]
Move website/ardmediathek.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_website/clipfish.lua' into next
Toni Gundogdu [Sun, 5 May 2013 14:04:46 +0000 (5 17:04 +0300)]
Merge branch 'tg/next__media_port_website/clipfish.lua' into next

11 years agotests: Add a test for media/clipfish.lua
Toni Gundogdu [Sun, 5 May 2013 13:58:49 +0000 (5 16:58 +0300)]
tests: Add a test for media/clipfish.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/clipfish.lua: Rewrite parse function
Toni Gundogdu [Sun, 5 May 2013 13:49:47 +0000 (5 16:49 +0300)]
media/clipfish.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Parse additional media property `duration_ms'
* Remove now obsolete code (e.g. self.host_id)
* Implement `ClipFish.iter_streams'
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/clipfish.lua: Remove query_formats function
Toni Gundogdu [Sun, 5 May 2013 13:33:42 +0000 (5 16:33 +0300)]
media/clipfish.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>
11 years agomedia/clipfish.lua: Rewrite ident function
Toni Gundogdu [Sun, 5 May 2013 13:33:29 +0000 (5 16:33 +0300)]
media/clipfish.lua: Rewrite ident function

Rewrite the `ident' function for the libquvi 0.9+ series.
* Add local table `ClipFish', implement `can_parse_url'
* Remove any now obsolete code

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/clipfish.lua: Relicense under AGPLv3+
Toni Gundogdu [Sun, 5 May 2013 13:29:51 +0000 (5 16:29 +0300)]
media/clipfish.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/clipfish.lua to media/
Toni Gundogdu [Sun, 5 May 2013 13:29:08 +0000 (5 16:29 +0300)]
Move website/clipfish.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_bikeradar.lua' into next
Toni Gundogdu [Thu, 2 May 2013 14:25:15 +0000 (2 17:25 +0300)]
Merge branch 'tg/next__media_port_bikeradar.lua' into next

11 years agotests: Add a test for media/bikeradar.lua
Toni Gundogdu [Thu, 2 May 2013 14:22:09 +0000 (2 17:22 +0300)]
tests: Add a test for media/bikeradar.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/bikeradar.lua: Rewrite parse function
Toni Gundogdu [Thu, 2 May 2013 13:51:54 +0000 (2 16:51 +0300)]
media/bikeradar.lua: Rewrite parse function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/bikeradar.lua: Remove query_formats function
Toni Gundogdu [Thu, 2 May 2013 13:50:46 +0000 (2 16:50 +0300)]
media/bikeradar.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>
11 years agomedia/bikeradar.lua: Rewrite ident function
Toni Gundogdu [Thu, 2 May 2013 13:50:29 +0000 (2 16:50 +0300)]
media/bikeradar.lua: Rewrite ident function

Rewrite the `ident' function for the libquvi 0.9+ series.
* Add local table `BikeRadar, implement `can_parse_url'
* Remove any now obsolete code

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/bikeradar.lua: Relicense under AGPLv3+
Toni Gundogdu [Thu, 2 May 2013 13:47:07 +0000 (2 16:47 +0300)]
media/bikeradar.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/bikeradar.lua to media/
Toni Gundogdu [Thu, 2 May 2013 13:46:26 +0000 (2 16:46 +0300)]
Move website/bikeradar.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: website/bikeradar.lua: Look for embedURL
Toni Gundogdu [Tue, 30 Apr 2013 12:36:33 +0000 (30 15:36 +0300)]
FIX: website/bikeradar.lua: Look for embedURL

Check page HTML for embedded URL, since bikeshed apparently uses YouTube
to host their media. Set `self.redirect_url' or croak.

* ident: Update media URL pattern
* parse: Set `self.redirect_url' only, do not parse anything else

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_guardian.lua' into next
Toni Gundogdu [Wed, 1 May 2013 21:03:54 +0000 (2 00:03 +0300)]
Merge branch 'tg/next__media_port_guardian.lua' into next

11 years agotests: Add a test for media/guardian.lua
Toni Gundogdu [Wed, 1 May 2013 20:59:51 +0000 (1 23:59 +0300)]
tests: Add a test for media/guardian.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/guardian.lua: Rewrite parse function
Toni Gundogdu [Wed, 1 May 2013 20:39:05 +0000 (1 23:39 +0300)]
media/guardian.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Remove now obsolete code (e.g. self.host_id)
* Implement `Guardian.iter_streams' function
* Make media {title,ID} properties optional
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/guardian.lua: Remove query_formats function
Toni Gundogdu [Wed, 1 May 2013 20:34:44 +0000 (1 23:34 +0300)]
media/guardian.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>
11 years agomedia/guardian.lua: Rewrite ident function
Toni Gundogdu [Wed, 1 May 2013 20:34:32 +0000 (1 23:34 +0300)]
media/guardian.lua: Rewrite ident function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/guardian.lua: Relicense under AGPLv3+
Toni Gundogdu [Wed, 1 May 2013 20:10:41 +0000 (1 23:10 +0300)]
media/guardian.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/guardian.lua to media/
Toni Gundogdu [Wed, 1 May 2013 20:09:59 +0000 (1 23:09 +0300)]
Move website/guardian.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: website/guardian.lua: all patterns
Toni Gundogdu [Sun, 28 Apr 2013 14:00:04 +0000 (28 17:00 +0300)]
FIX: website/guardian.lua: all patterns

* Remove stream interation (only one appears to be available now)
* Parse all media properties from the media page
* Remove unused Guardian.* functions
* Improve thumbnail URL parsing

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoquvi/util: Add the `tokenize' function
Toni Gundogdu [Tue, 30 Apr 2013 14:33:17 +0000 (30 17:33 +0300)]
quvi/util: Add the `tokenize' function

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_liveleak' into next
Toni Gundogdu [Tue, 30 Apr 2013 11:41:21 +0000 (30 14:41 +0300)]
Merge branch 'tg/next__media_port_liveleak' into next

11 years agotests: Add a test for media/liveleak.lua
Toni Gundogdu [Tue, 30 Apr 2013 10:47:11 +0000 (30 13:47 +0300)]
tests: Add a test for media/liveleak.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/liveleak.lua: Rewrite parse function
Toni Gundogdu [Tue, 30 Apr 2013 09:50:44 +0000 (30 12:50 +0300)]
media/liveleak.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Try to set the `qargs.goto_url' if the usual data could not be found
* Remove now obsolete code (e.g. self.host_id)
* Make media {title,ID} properties optional
* Implement `LiveLeak.iter_streams'
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/liveleak.lua: Remove query_formats function
Toni Gundogdu [Tue, 30 Apr 2013 09:24:22 +0000 (30 12:24 +0300)]
media/liveleak.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>
11 years agomedia/liveleak.lua: Rewrite ident function
Toni Gundogdu [Tue, 30 Apr 2013 09:24:09 +0000 (30 12:24 +0300)]
media/liveleak.lua: Rewrite ident function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/liveleak.lua: Relicense under AGPLv3+
Toni Gundogdu [Tue, 30 Apr 2013 09:09:16 +0000 (30 12:09 +0300)]
media/liveleak.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/liveleak.lua to media/
Toni Gundogdu [Tue, 30 Apr 2013 09:08:15 +0000 (30 12:08 +0300)]
Move website/liveleak.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_spiegel.lua' into next
Toni Gundogdu [Mon, 29 Apr 2013 11:37:05 +0000 (29 14:37 +0300)]
Merge branch 'tg/next__media_port_spiegel.lua' into next

11 years agotests: Add a test for media/spiegel.lua
Toni Gundogdu [Mon, 29 Apr 2013 11:32:16 +0000 (29 14:32 +0300)]
tests: Add a test for media/spiegel.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/spiegel.lua: Remove query_formats function
Toni Gundogdu [Mon, 29 Apr 2013 11:12:19 +0000 (29 14:12 +0300)]
media/spiegel.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>
11 years agomedia/spiegel.lua: Rewrite parse function
Toni Gundogdu [Mon, 29 Apr 2013 11:12:06 +0000 (29 14:12 +0300)]
media/spiegel.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Re-implement `Spiegel.iter_formats' as `Spiegel_iter_streams'
* Re-implement `Spiegel.choose_best' as `Spiegel.ch_best'
* Remove now obsolete code (e.g. self.host_id)
* Make media title an optional property
* Implement `Spiegel.iter_streams'
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/spiegel.lua: Rewrite ident function
Toni Gundogdu [Mon, 29 Apr 2013 08:34:39 +0000 (29 11:34 +0300)]
media/spiegel.lua: Rewrite ident function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/spiegel.lua: Relicense under AGPLv3+
Toni Gundogdu [Mon, 29 Apr 2013 08:31:02 +0000 (29 11:31 +0300)]
media/spiegel.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/spiegel.lua to media/
Toni Gundogdu [Mon, 29 Apr 2013 08:28:46 +0000 (29 11:28 +0300)]
Move website/spiegel.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: website/spiegel.lua: choose_default
Toni Gundogdu [Mon, 29 Apr 2013 08:06:32 +0000 (29 11:06 +0300)]
FIX: website/spiegel.lua: choose_default

Choosing to use the "lowest quality" stream (3gp) as the 'default'
stream would cause HTTP/404 when the stream was accessed. Although this
stream is listed among those available ones, it appears to be missing
for most videos (if not all).

Spiegel.choose_default:
  Return the first available stream as the new 'default' stream.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agowebsite/spiegel.lua: Parse thumbnail URL
Toni Gundogdu [Mon, 29 Apr 2013 08:19:16 +0000 (29 11:19 +0300)]
website/spiegel.lua: Parse thumbnail URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agowebsite/spiegel.lua: Parse title from page instead
Toni Gundogdu [Mon, 29 Apr 2013 08:05:55 +0000 (29 11:05 +0300)]
website/spiegel.lua: Parse title from page instead

The page HTML gives us the complete media title.
* Remove the now obsolete `Spiegel.get_playlist' function

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests: media_soundcloud: Test for media duration
Toni Gundogdu [Mon, 29 Apr 2013 11:33:17 +0000 (29 14:33 +0300)]
tests: media_soundcloud: Test for media duration

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests: media_cbsnews: Test for video bitrate
Toni Gundogdu [Mon, 29 Apr 2013 11:32:55 +0000 (29 14:32 +0300)]
tests: media_cbsnews: Test for video bitrate

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_sapo.lua' into next
Toni Gundogdu [Sun, 28 Apr 2013 12:51:31 +0000 (28 15:51 +0300)]
Merge branch 'tg/next__media_port_sapo.lua' into next

11 years agotests: Add a test for media/sapo.lua
Toni Gundogdu [Sun, 28 Apr 2013 11:17:29 +0000 (28 14:17 +0300)]
tests: Add a test for media/sapo.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/sapo.lua: Rewrite parse function
Toni Gundogdu [Sun, 28 Apr 2013 10:34:37 +0000 (28 13:34 +0300)]
media/sapo.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Parse additional properties video.{width,height} and duration_ms
* Remove now obsolete code (e.g. self.host_id)
* Make media {title,id} optional properties
* Implement `SAPO.iter_streams'
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/sapo.lua: Remove query_formats function
Toni Gundogdu [Sun, 28 Apr 2013 09:33:24 +0000 (28 12:33 +0300)]
media/sapo.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>
11 years agomedia/sapo.lua: Rewrite ident function
Toni Gundogdu [Sun, 28 Apr 2013 09:33:07 +0000 (28 12:33 +0300)]
media/sapo.lua: Rewrite ident function

Rewrite the `ident' function for the libquvi 0.9+ series.
* Add local table `SAPO', implement `can_parse_url' function
* Remove any now obsolete code

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/sapo.lua: Relicense under AGPLv3+
Toni Gundogdu [Sun, 28 Apr 2013 09:30:33 +0000 (28 12:30 +0300)]
media/sapo.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/sapo.lua to media/
Toni Gundogdu [Sun, 28 Apr 2013 09:29:51 +0000 (28 12:29 +0300)]
Move website/sapo.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoquvi/time: Impl. from_timecode_str, timecode_str_to_s
Toni Gundogdu [Sun, 28 Apr 2013 12:32:58 +0000 (28 15:32 +0300)]
quvi/time: Impl. from_timecode_str, timecode_str_to_s

* Implement {from_timecode_str, timecode_str_to_s}
* Add basic tests

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: quvi/time: to_timecode_str: Return formatted string
Toni Gundogdu [Sun, 28 Apr 2013 11:48:32 +0000 (28 14:48 +0300)]
FIX: quvi/time: to_timecode_str: Return formatted string

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_tvlux.lua' into next
Toni Gundogdu [Sun, 28 Apr 2013 09:25:10 +0000 (28 12:25 +0300)]
Merge branch 'tg/next__media_port_tvlux.lua' into next

11 years agotests: Add a test for media/tvlux.lua
Toni Gundogdu [Sun, 28 Apr 2013 09:22:40 +0000 (28 12:22 +0300)]
tests: Add a test for media/tvlux.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/tvlux.lua: Rewrite parse function
Toni Gundogdu [Sun, 28 Apr 2013 08:46:07 +0000 (28 11:46 +0300)]
media/tvlux.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Parse additional properties video.{width,height}
* Remove now obsolete code (e.g. self.host_id)
* Make media {title,id} optional properties
* Implement `TVLux.iter_streams'
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/tvlux.lua: Remove query_formats function
Toni Gundogdu [Sun, 28 Apr 2013 08:41:42 +0000 (28 11:41 +0300)]
media/tvlux.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>
11 years agomedia/tvlux.lua: Rewrite ident function
Toni Gundogdu [Sun, 28 Apr 2013 08:41:27 +0000 (28 11:41 +0300)]
media/tvlux.lua: Rewrite ident function

Rewrite the `ident' function for the libquvi 0.9+ series.
* Add local table `TVLux', implement `can_parse_url' function
* Remove any now obsolete code

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/tvlux.lua: Relicense under AGPLv3+
Toni Gundogdu [Sun, 28 Apr 2013 08:38:27 +0000 (28 11:38 +0300)]
media/tvlux.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/tvlux.lua to media/
Toni Gundogdu [Sun, 28 Apr 2013 08:36:40 +0000 (28 11:36 +0300)]
Move website/tvlux.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/sevenload.lua: Improve JSON parsing
Toni Gundogdu [Sat, 27 Apr 2013 14:38:15 +0000 (27 17:38 +0300)]
media/sevenload.lua: Improve JSON parsing

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_theonion.lua' into next
Toni Gundogdu [Sat, 27 Apr 2013 14:28:03 +0000 (27 17:28 +0300)]
Merge branch 'tg/next__media_port_theonion.lua' into next

11 years agotests: Add a test for media/theonion.lua
Toni Gundogdu [Sat, 27 Apr 2013 14:22:05 +0000 (27 17:22 +0300)]
tests: Add a test for media/theonion.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/theonion.lua: Rewrite parse function
Toni Gundogdu [Sat, 27 Apr 2013 14:13:46 +0000 (27 17:13 +0300)]
media/theonion.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Remove now obsolete code (e.g. self.host_id)
* Make media title an optional property
* Implement `TheOnion.iter_streams'
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/theonion.lua: Remove query_formats function
Toni Gundogdu [Sat, 27 Apr 2013 13:53:28 +0000 (27 16:53 +0300)]
media/theonion.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>
11 years agomedia/theonion.lua: Rewrite ident function
Toni Gundogdu [Sat, 27 Apr 2013 13:52:44 +0000 (27 16:52 +0300)]
media/theonion.lua: Rewrite ident function

Rewrite the `ident' function for the libquvi 0.9+ series.
* Add local table `TheOnion', implement `can_parse_url' function
* Remove any now obsolete code

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/theonion.lua: Relicense under AGPLv3+
Toni Gundogdu [Sat, 27 Apr 2013 13:49:46 +0000 (27 16:49 +0300)]
media/theonion.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/theonion.lua to media/
Toni Gundogdu [Sat, 27 Apr 2013 13:48:26 +0000 (27 16:48 +0300)]
Move website/theonion.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_sevenload.lua' into next
Toni Gundogdu [Fri, 26 Apr 2013 11:52:38 +0000 (26 14:52 +0300)]
Merge branch 'tg/next__media_port_sevenload.lua' into next

11 years agotests: Add a test for media/sevenload.lua
Toni Gundogdu [Fri, 26 Apr 2013 11:48:49 +0000 (26 14:48 +0300)]
tests: Add a test for media/sevenload.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/sevenload.lua: Rewrite parse function
Toni Gundogdu [Fri, 26 Apr 2013 11:37:13 +0000 (26 14:37 +0300)]
media/sevenload.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Parse additional media properties: {video,audio} encoding, container
* Remove now obsolete code (e.g. self.host_id)
* Make media {title,id} optional properties
* Implement SevenLoad.{iter_streams,to_id}
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/sevenload.lua: Remove query_formats function
Toni Gundogdu [Fri, 26 Apr 2013 09:52:21 +0000 (26 12:52 +0300)]
media/sevenload.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>
11 years agomedia/sevenload.lua: Rewrite ident function
Toni Gundogdu [Fri, 26 Apr 2013 09:51:30 +0000 (26 12:51 +0300)]
media/sevenload.lua: Rewrite ident function

Rewrite the `ident' function for the libquvi 0.9+ series.
* Add local table `SevenLoad', implement `can_parse_url' function
* Remove any now obsolete code

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/sevenload.lua: Relicense under AGPLv3+
Toni Gundogdu [Fri, 26 Apr 2013 09:50:58 +0000 (26 12:50 +0300)]
media/sevenload.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/sevenload.lua to media/
Toni Gundogdu [Fri, 26 Apr 2013 09:47:17 +0000 (26 12:47 +0300)]
Move website/sevenload.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: website/sevenload.lua: all patterns
Toni Gundogdu [Fri, 26 Apr 2013 08:09:09 +0000 (26 11:09 +0300)]
FIX: website/sevenload.lua: all patterns

* `ident': Use `handles' function of 'quvi/util'
* `parse': Update media {title,id,url} patterns
* `parse': Parse thumb url

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: media/funnyordie.lua: to_id: conform to standard
Toni Gundogdu [Fri, 26 Apr 2013 11:31:10 +0000 (26 14:31 +0300)]
FIX: media/funnyordie.lua: to_id: conform to standard

Move $quality before $container. As documented in libquvi C API
(Glossary: Terminology); a typical media stream ID looks like:
  $quality_$container_$encoding_$height(p)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoREADME: Add LuaJSON as a new prerequisite
Toni Gundogdu [Fri, 26 Apr 2013 10:51:31 +0000 (26 13:51 +0300)]
README: Add LuaJSON as a new prerequisite

* Reorganize the Lua prerequisites alphabetically
* Add LuaJSON to the list

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_charlierose.lua' into next
Toni Gundogdu [Wed, 24 Apr 2013 09:57:06 +0000 (24 12:57 +0300)]
Merge branch 'tg/next__media_port_charlierose.lua' into next

11 years agotests: Add test for media/charlierose.lua
Toni Gundogdu [Wed, 24 Apr 2013 09:50:36 +0000 (24 12:50 +0300)]
tests: Add test for media/charlierose.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/charlierose.lua: Rewrite parse function
Toni Gundogdu [Wed, 24 Apr 2013 08:55:39 +0000 (24 11:55 +0300)]
media/charlierose.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Make media {title,thumb_url,id} optional properties
* Remove all now obsolete code (e.g. self.host_id)
* Parse media {thumb_url,width,height} properties
* Implement CharlieRose.iter_streams
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/charlierose.lua: Remove query_formats function
Toni Gundogdu [Wed, 24 Apr 2013 08:39:30 +0000 (24 11:39 +0300)]
media/charlierose.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>
11 years agomedia/charlierose.lua: Rewrite ident function
Toni Gundogdu [Wed, 24 Apr 2013 08:39:00 +0000 (24 11:39 +0300)]
media/charlierose.lua: Rewrite ident function

Rewrite the `ident' function for the libquvi 0.9+ series.
* Add local table `CharlieRose', implement `can_parse_url' function
* Remove any now obsolete code

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/charlierose.lua: Relicense under AGPLv3+
Toni Gundogdu [Wed, 24 Apr 2013 08:37:07 +0000 (24 11:37 +0300)]
media/charlierose.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/charlierose.lua to media/
Toni Gundogdu [Wed, 24 Apr 2013 08:31:03 +0000 (24 11:31 +0300)]
Move website/charlierose.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: media/gaskrank.lua: media stream URL pattern
Toni Gundogdu [Tue, 23 Apr 2013 13:19:38 +0000 (23 16:19 +0300)]
FIX: media/gaskrank.lua: media stream URL pattern

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__media_port_funnyordie.lua' into next
Toni Gundogdu [Sun, 21 Apr 2013 13:27:44 +0000 (21 16:27 +0300)]
Merge branch 'tg/next__media_port_funnyordie.lua' into next

11 years agotests: Add test for media/funnyordie.lua
Toni Gundogdu [Sun, 21 Apr 2013 13:20:11 +0000 (21 16:20 +0300)]
tests: Add test for media/funnyordie.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/funnyordie.lua: Rewrite parse function
Toni Gundogdu [Sun, 21 Apr 2013 13:06:35 +0000 (21 16:06 +0300)]
media/funnyordie.lua: Rewrite parse function

Rewrite `parse' function for the libquvi 0.9+ series.
* Rewrite FunnyOrDie.iter_formats as FunnyOrDie.iter_streams
* Remove now obsolete code (e.g. self.host.id)
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/funnyordie.lua: Remove obsolete query_formats
Toni Gundogdu [Sun, 21 Apr 2013 12:34:13 +0000 (21 15:34 +0300)]
media/funnyordie.lua: Remove obsolete query_formats

Remove the now obsolete `query_formats' function. libquvi 0.9+ no longer
supports this.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/funnyordie.lua: Rewrite ident function
Toni Gundogdu [Sun, 21 Apr 2013 12:33:43 +0000 (21 15:33 +0300)]
media/funnyordie.lua: Rewrite ident function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomedia/funnyordie.lua: Relicense under AGPLv3+
Toni Gundogdu [Sun, 21 Apr 2013 12:30:15 +0000 (21 15:30 +0300)]
media/funnyordie.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMove website/funnyordie.lua to media/
Toni Gundogdu [Sun, 21 Apr 2013 12:27:58 +0000 (21 15:27 +0300)]
Move website/funnyordie.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: website/funnyordie.lua: media stream URL pattern
Toni Gundogdu [Sun, 21 Apr 2013 10:34:39 +0000 (21 13:34 +0300)]
FIX: website/funnyordie.lua: media stream URL pattern

* Conform to the standard media property error messages
* Fix the pattern for the media stream URLs
* Update the pattern for the "quality" and the "container"
* Both FunnyOrDie.choose_{best,default} now return the first stream

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__improve_playlist/youtube.lua' into next
Toni Gundogdu [Sat, 20 Apr 2013 13:41:17 +0000 (20 16:41 +0300)]
Merge branch 'tg/next__improve_playlist/youtube.lua' into next

11 years agotests: playlist_youtube: Enable tests for optional properties
Toni Gundogdu [Sat, 20 Apr 2013 13:27:40 +0000 (20 16:27 +0300)]
tests: playlist_youtube: Enable tests for optional properties

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoplaylist/youtube.lua: Parse media {title,duration_ms}
Toni Gundogdu [Sat, 20 Apr 2013 13:24:26 +0000 (20 16:24 +0300)]
playlist/youtube.lua: Parse media {title,duration_ms}

Rewrite the `parse' and the `YouTube.parse_media_urls' functions.
* parse: fill the qargs.media list now in `YouTube.parse_entry'
* parse_media_urls: Tidy up, skip entry unless available

Add the `YouTube.{parse_entry,entry_avail}' functions.

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