Toni Gundogdu [Sat, 30 Nov 2013 19:37:26 +0000 (30 21:37 +0200)]
Update NEWS for v0.9.
20131130
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sat, 30 Nov 2013 15:47:29 +0000 (30 17:47 +0200)]
Merge branch 'tg/next__fix_media/vimeo' into next
Toni Gundogdu [Sat, 30 Nov 2013 15:47:10 +0000 (30 17:47 +0200)]
tests: media_vimeo: Run additional checks
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sat, 30 Nov 2013 15:41:00 +0000 (30 17:41 +0200)]
tests: media/vimeo: Re-enable
Toni Gundogdu [Sat, 30 Nov 2013 15:13:55 +0000 (30 17:13 +0200)]
FIX: media/vimeo: Reimpl. support
- Use HTTPS if the input URL was given using it [1]
- Improve stream identification (incl. bitrate)
- Parse media properties using LuaJSON
- Parse data from a new location
- Update all relevant patterns
Notes:
[1]: media streams are still provided over HTTP
[2]: http://thread.gmane.org/gmane.comp.web.flash.quvi/358
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 26 Nov 2013 14:35:25 +0000 (26 16:35 +0200)]
Merge branch 'tg/next__fix_media/publicsenat' into next
Toni Gundogdu [Tue, 26 Nov 2013 14:34:56 +0000 (26 16:34 +0200)]
Merge branch 'tg/next__101gg_fixes' into next
Toni Gundogdu [Tue, 26 Nov 2013 14:28:26 +0000 (26 16:28 +0200)]
tests: media_101greatgoals: Update test URL
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 26 Nov 2013 14:27:36 +0000 (26 16:27 +0200)]
FIX: media/101greatgoals: redirect: Add URL scheme
Make sure the redirection URL has a scheme.
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 26 Nov 2013 14:26:41 +0000 (26 16:26 +0200)]
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>
Toni Gundogdu [Sat, 23 Nov 2013 17:11:41 +0000 (23 19:11 +0200)]
tests: media_spiegel: Update test URL
The old one no longer has thumbnail available.
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sat, 23 Nov 2013 16:48:57 +0000 (23 18:48 +0200)]
tests: media_cbsnews: Update URLs
Other:
- Do not test the resolution properties (no longer returned)
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sat, 23 Nov 2013 16:33:57 +0000 (23 18:33 +0200)]
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>
Toni Gundogdu [Sat, 23 Nov 2013 14:25:59 +0000 (23 16:25 +0200)]
tests: media_canalplus: Update test URLs
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Mohamed El Morabity [Mon, 11 Nov 2013 15:12:43 +0000 (11 16:12 +0100)]
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>
Toni Gundogdu [Tue, 12 Nov 2013 14:32:21 +0000 (12 16:32 +0200)]
share/README: Add an URL to "Lua Unofficial FAQ (uFAQ)"
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 10 Nov 2013 11:15:19 +0000 (10 13:15 +0200)]
Merge branch 'tg/next__media_port_dorkly.lua' into next
Toni Gundogdu [Sun, 10 Nov 2013 11:15:10 +0000 (10 13:15 +0200)]
Merge branch 'tg/next__media_port_collegehumor.lua' into next
Toni Gundogdu [Sun, 10 Nov 2013 11:13:27 +0000 (10 13:13 +0200)]
tests: Add a test for media/dorkly.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 10 Nov 2013 11:07:26 +0000 (10 13:07 +0200)]
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>
Toni Gundogdu [Sun, 10 Nov 2013 10:32:42 +0000 (10 12:32 +0200)]
tests: Add a test for media/collegehumor.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 10 Nov 2013 10:20:28 +0000 (10 12:20 +0200)]
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>
Toni Gundogdu [Sun, 10 Nov 2013 10:10:50 +0000 (10 12:10 +0200)]
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>
Toni Gundogdu [Sun, 10 Nov 2013 10:10:07 +0000 (10 12:10 +0200)]
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>
Toni Gundogdu [Sun, 10 Nov 2013 10:04:34 +0000 (10 12:04 +0200)]
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>
Toni Gundogdu [Sun, 10 Nov 2013 10:03:24 +0000 (10 12:03 +0200)]
Move website/collegehumor.lua to media/
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 4 Nov 2013 19:17:31 +0000 (4 21:17 +0200)]
Update NEWS for v0.9.
20131104
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 4 Nov 2013 19:03:02 +0000 (4 21:03 +0200)]
media/vimeo.lua: Mark as FIXME
Notes:
* http://thread.gmane.org/gmane.comp.web.flash.quvi/358
* Affects: {0.4, 0.9}
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 29 Oct 2013 14:43:17 +0000 (29 16:43 +0200)]
tests: media_liveleak: Replace URL for embedded youtube content
The previously used video was removed from the liveleak website.
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 29 Oct 2013 14:31:42 +0000 (29 16:31 +0200)]
media/lego.lua: Update ID pattern
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Thu, 24 Oct 2013 19:06:39 +0000 (24 22:06 +0300)]
Merge branch 'tg/next__media_port_videobash.lua' into next
Toni Gundogdu [Thu, 24 Oct 2013 19:06:35 +0000 (24 22:06 +0300)]
Merge branch 'tg/next__media_port_tagtele.lua' into next
Toni Gundogdu [Thu, 24 Oct 2013 13:44:02 +0000 (24 16:44 +0300)]
FIX: media/vimeo.lua: Vimeo.normalize: Escape pattern
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 19:36:59 +0000 (23 22:36 +0300)]
tests: Add a test for media/videobash.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 19:13:24 +0000 (23 22:13 +0300)]
tests: Add a test for media/tagtele.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 19:05:36 +0000 (23 22:05 +0300)]
media/tagtele.lua: Rewrite parse function
Rewrite the `parse' function for the libquvi 0.9+ series.
* Remove now obsolete code (e.g. self.host_id)
* Use LuaJSON to parse the media stream URL
* Parse all available media streams
* Apply 2-space indentation
* Update vim modeline
Notable changes:
* Skip: playlist fetch: the page HTML contains the stream URL data
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 18:44:09 +0000 (23 21:44 +0300)]
media/tagtele.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>
Toni Gundogdu [Wed, 23 Oct 2013 18:43:54 +0000 (23 21:43 +0300)]
media/tagtele.lua: Rewrite ident function
Rewrite the `ident' function for the libquvi 0.9+ series.
* Implement `Tagtele.can_parse_url' function
* Remove any now obsolete code
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 18:40:57 +0000 (23 21:40 +0300)]
media/tagtele.lua: Relicense under AGPLv3+
See also:
* http://article.gmane.org/gmane.comp.web.flash.quvi/340
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 19:34:45 +0000 (23 22:34 +0300)]
media/videobash.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
* Parse `duration_ms'
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 19:26:52 +0000 (23 22:26 +0300)]
media/videobash.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>
Toni Gundogdu [Wed, 23 Oct 2013 19:26:27 +0000 (23 22:26 +0300)]
media/videobash.lua: Rewrite ident function
Rewrite the `ident' function for the libquvi 0.9+ series.
* Implement `Videobash.can_parse_url' function
* Remove any now obsolete code
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 19:22:32 +0000 (23 22:22 +0300)]
media/videobash.lua: Relicense under AGPLv3+
See also:
* http://article.gmane.org/gmane.comp.web.flash.quvi/336
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 19:21:48 +0000 (23 22:21 +0300)]
Move website/videobash.lua to media/
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 23 Oct 2013 18:40:00 +0000 (23 21:40 +0300)]
Move website/tagtele.lua to media/
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 20 Oct 2013 20:03:36 +0000 (20 23:03 +0300)]
Merge branch 'tg/next__media_port_metacafe.lua' into next
Toni Gundogdu [Sun, 20 Oct 2013 19:54:30 +0000 (20 22:54 +0300)]
tests: Add test for media/metacafe.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 20 Oct 2013 18:30:00 +0000 (20 21:30 +0300)]
media/metacafe.lua: Rewrite parse function
Rewrite the `parse' function for the libquvi 0.9+ series.
* Rewrite `Metacafe.redirectp' as `Metacafe.is_affiliate'
* Remove now obsolete code (e.g. self.host_id)
* Use LuaJSON to parse the media stream URL
* Parse all available media streams
* Apply 2-space indentation
* Parse duration (ms)
* Update vim modeline
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 20 Oct 2013 16:46:44 +0000 (20 19:46 +0300)]
media/metacafe.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>
Toni Gundogdu [Sun, 20 Oct 2013 16:46:20 +0000 (20 19:46 +0300)]
media/metacafe.lua: Rewrite ident function
Rewrite the `ident' function for the libquvi 0.9+ series.
* Implement `Metacafe.can_parse_url' function
* Remove any now obsolete code
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 20 Oct 2013 16:36:50 +0000 (20 19:36 +0300)]
media/metacafe.lua: Relicense under AGPLv3+
See also:
* http://article.gmane.org/gmane.comp.web.flash.quvi/334
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 20 Oct 2013 16:33:57 +0000 (20 19:33 +0300)]
Move website/metacafe.lua to media/
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 20 Oct 2013 10:34:41 +0000 (20 13:34 +0300)]
media/arte.lua: Arte.to_id: Return ID in lowercase
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 20 Oct 2013 10:33:37 +0000 (20 13:33 +0300)]
media/arte.lua: Use the 'a?b:c' -idiom
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Mohamed El Morabity [Sat, 19 Oct 2013 23:45:14 +0000 (20 01:45 +0200)]
Fix support for arte.tv
* Videos are now hosted on arte.tv/guide; for new videos, there's a
redirection from videos.arte.tv to arte.tv/guide
* For a given video, all stream datas are now provided by a JSON file
instead of a XML file as before
* In this JSON data file, an ID (versionProg) describes the language of
each available stream:
versionProg == 1 -> default language version, matching the video URL
language
versionProg == 2 -> alternate language version
versionProg == 3 -> original version with default language subtitles
versionProg == 8 -> default language version with subtitle for
hard-of-hearing
* I took the liberty of adding the stream protocol to the generated
stream ID, to distinguish same-quality videos (some videos are
available through HTTP, in addition of RTMP, for some MD/LD videos,
probably for mobile phones
* The tests were updated to reflect these changes
Signed-off-by: Mohamed El Morabity <melmorabity@fedoraproject.org>
Reviewed-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Wed, 16 Oct 2013 13:12:09 +0000 (16 16:12 +0300)]
cleanup: table.concat: Do not call with an empty sep value
As this is not required, nor a required arg.
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 15 Oct 2013 14:47:07 +0000 (15 17:47 +0300)]
Merge branch 'tg/next__add_support__media/majestyc.lua' into next
Toni Gundogdu [Tue, 15 Oct 2013 14:47:03 +0000 (15 17:47 +0300)]
Merge branch 'tg/next__add_support__{media/scan}/vzaar.lua' into next
Toni Gundogdu [Tue, 15 Oct 2013 14:46:57 +0000 (15 17:46 +0300)]
Merge branch 'tg/next__media_port_tapuz.lua' into next
Toni Gundogdu [Tue, 15 Oct 2013 13:49:52 +0000 (15 16:49 +0300)]
tests: Add a test for scan/vzaar.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 15 Oct 2013 13:38:52 +0000 (15 16:38 +0300)]
scan: Add support for embedded vzaar.com media URLs
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 15 Oct 2013 13:15:45 +0000 (15 16:15 +0300)]
tests: Add a test for media/vzaar.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 15 Oct 2013 13:09:44 +0000 (15 16:09 +0300)]
media: Add support for vzaar.com
See also:
* https://www.mail-archive.com/quvi-devel@lists.sourceforge.net/msg00346.html
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 14 Oct 2013 03:40:23 +0000 (14 06:40 +0300)]
tests: Add a test for media/majestyc.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 14 Oct 2013 03:33:09 +0000 (14 06:33 +0300)]
media: Add support for tube.majestyc.net
See also:
* https://www.mail-archive.com/quvi-devel@lists.sourceforge.net/msg00347.html
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 14 Oct 2013 20:21:45 +0000 (14 23:21 +0300)]
tests: Add a test for media/tapuz.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 14 Oct 2013 20:19:14 +0000 (14 23:19 +0300)]
media/tapuz.lua: Rewrite parse function
Rewrite the `parse' function for the libquvi 0.9+ series.
* Use LuaExpat to parse the media {title,stream,thumb} properties
* Remove now obsolete code (e.g. self.host_id)
* Apply 2-space indentation
* Update vim modeline
* Parse duration (ms)
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 14 Oct 2013 19:57:21 +0000 (14 22:57 +0300)]
media/tapuz.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>
Toni Gundogdu [Mon, 14 Oct 2013 19:57:02 +0000 (14 22:57 +0300)]
media/tapuz.lua: Rewrite ident function
Rewrite the `ident' function for the libquvi 0.9+ series.
* Implement `Tapuz.can_parse_url' function
* Remove any now obsolete code
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 14 Oct 2013 19:43:03 +0000 (14 22:43 +0300)]
media/tapuz.lua: Relicense under AGPLv3+
See also:
* http://article.gmane.org/gmane.comp.web.flash.quvi/335
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 14 Oct 2013 19:40:49 +0000 (14 22:40 +0300)]
Move website/tapuz.lua to media/
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 14 Oct 2013 18:46:56 +0000 (14 21:46 +0300)]
media/liveleak.lua: Ignore fac3book iframe src values
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sat, 12 Oct 2013 11:08:26 +0000 (12 14:08 +0300)]
Update NEWS for v0.9.
20131012
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sat, 12 Oct 2013 09:30:10 +0000 (12 12:30 +0300)]
Merge branch 'tg/next__media_port_1tvru.lua' into next
Toni Gundogdu [Thu, 10 Oct 2013 14:04:59 +0000 (10 17:04 +0300)]
tests: Add a test for media/1tvru.lua
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Thu, 10 Oct 2013 14:02:45 +0000 (10 17:02 +0300)]
media/1tvru.lua: Rewrite parse function
Rewrite the `parse' function for the libquvi 0.9+ series.
* Check for 'og:video' to determine if input URL contains a video
* Use LuaJSON to parse the media {title,stream,thumb} properties
* Use 'windows-1251' charset encoding with quvi.http.fetch
* Media duration (ms) is now parsed and returned
* Remove now obsolete code (e.g. self.host_id)
* Apply 2-space indentation
* Update vim modeline
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Thu, 10 Oct 2013 13:55:11 +0000 (10 16:55 +0300)]
media/1tvru.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>
Toni Gundogdu [Thu, 10 Oct 2013 13:53:35 +0000 (10 16:53 +0300)]
media/1tvru.lua: Rewrite ident function
Rewrite the `ident' function for the libquvi 0.9+ series.
* Allow HTTPS input URLs (media streams will remain HTTP nonetheless)
* Allow '/sprojects_utro_video/' in addition to '/sprojects_edition/'
* Implement `OTvRu.can_parse_url' function
* Remove any now obsolete code
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Thu, 10 Oct 2013 13:52:49 +0000 (10 16:52 +0300)]
media/1tvru.lua: Relicense under AGPLv3+
See also:
* http://article.gmane.org/gmane.comp.web.flash.quvi/333
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Thu, 10 Oct 2013 13:47:27 +0000 (10 16:47 +0300)]
Move website/1tvru.lua to media/
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 8 Oct 2013 14:34:24 +0000 (8 17:34 +0300)]
FIX: media/clipfish.lua: Raise "no match: media stream URL"
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 8 Oct 2013 13:44:09 +0000 (8 16:44 +0300)]
quvi/youtube: normalize: Reimplement
Reimplement using helper functions. Try to improve readability. Add more
test cases.
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 8 Oct 2013 14:05:33 +0000 (8 17:05 +0300)]
FIX: quvi/youtube: ident: query: "v=" may not be first param
Do not assume the URL 'v=' parameter of the 'query' element to be the
first parameter.
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 7 Oct 2013 18:33:50 +0000 (7 21:33 +0300)]
quvi/youtube: normalize: Process YouTube URLs only
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 7 Oct 2013 13:39:20 +0000 (7 16:39 +0300)]
FIX: media/sevenload.lua: JSON extraction pattern
Otherwise LuaJSON would exit with an error:
../lua/5.1/json/decode/state.lua:151: Value set when one already in slot
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 7 Oct 2013 13:34:53 +0000 (7 16:34 +0300)]
tests: media_lego: Add a test for "/videos"
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 7 Oct 2013 13:33:17 +0000 (7 16:33 +0300)]
media/lego.lua: Add support for "/videos?video=ID"
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 7 Oct 2013 13:16:32 +0000 (7 16:16 +0300)]
tests: media_youtube: Add test for an embedded media URL
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 7 Oct 2013 13:14:58 +0000 (7 16:14 +0300)]
FIX: resolve_redirections.lua: Normalize YouTube input URL
libquvi will always attempt to resolve URL redirections. This means
that quvi_media_new (for example) will always resolve first and only
then pass the input URL to the media scripts to determine the support
Problem:
- g00gle now redirects the embedded media URLs to the API pages
- This causes libquvi to return the "no support" because the
destination URL looks nothing like a typical media page URL
Solution:
- "normalize" (quvi/youtube) the input URL before we try to resolve
URL redirections
- "normalize" will convert the embedded media URLs to media page URLs,
which can then be passed to libquvi/libcurl for URL resolving
Notes:
- quvi_supports function skips resolving altogether unless online
check is forced
- This is the reason "normalize" must still be called in "ident"
function of the media script, even if this script does so
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 6 Oct 2013 16:09:30 +0000 (6 19:09 +0300)]
tests: scan_youtube: Use different shortened test URL
The old one no longer contains any embedded media URLs.
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 6 Oct 2013 16:03:20 +0000 (6 19:03 +0300)]
tests: scan_youtube: Remove obsolete test URL
The page embeds the videos using the now defunct "youtube-nocookie.com"
domain.
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sun, 6 Oct 2013 10:23:10 +0000 (6 13:23 +0300)]
FIX: media/funnyordie.lua: Set "Accept-Encoding" HTTP header
For an unknown reason when:
1) libcurl sends "Accept-Encoding: deflate, gzip" by default
2) server returns gzipped data without "Encoding: gzip" within the reply
Causing the following:
1) libcurl skips decompression and passes the compressed data to libquvi
2) libquvi passes the compressed data to the media/funnyordie.lua
3) script fails to match any of the patterns due to the compressed data
This commit makes the script override the default "Accept-Encoding"
value with one that seems to work with the servers and libcurl.
Package: libcurl4-gnutls-dev
Version: 7.26.0-1+wheezy3
Versions of packages libcurl4-gnutls-dev depends on:
ii libc6-dev [libc-dev] 2.13-38
ii libcurl3-gnutls 7.26.0-1+wheezy3
ii libgnutls-dev 2.12.20-7
ii libidn11-dev 1.25-2
ii libkrb5-dev 1.10.1+dfsg-5+deb7u1
ii libldap2-dev 2.4.31-1+nmu2
ii librtmp-dev 2.4+
20111222.git4e06e21-1
ii libssh2-1-dev 1.4.2-1.1
ii zlib1g-dev 1:1.2.7.dfsg-1
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Fri, 4 Oct 2013 14:40:27 +0000 (4 17:40 +0300)]
media/liveleak.lua: Parse stream URLs from "config:"
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Fri, 4 Oct 2013 14:39:02 +0000 (4 17:39 +0300)]
media/liveleak.lua: Sanitize JSON
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Thu, 3 Oct 2013 06:27:21 +0000 (3 09:27 +0300)]
DOC: quvi-object-3rdparty: Add LuaJSON
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 1 Oct 2013 20:43:25 +0000 (1 23:43 +0300)]
tests: media_liveleak: Add a multistream test
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Tue, 1 Oct 2013 20:42:09 +0000 (1 23:42 +0300)]
media/liveleak.lua: Add support for >1 streams
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Mon, 30 Sep 2013 19:02:50 +0000 (30 22:02 +0300)]
FIX: media/liveleak.lua: Sanitize input for LuaJSON
Otherwise the script will throw an error that looks like:
/usr/share/lua/5.1/json/decode/util.lua:40: unexpected character @
character: 733 17:16 [e] line:
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sat, 28 Sep 2013 21:34:39 +0000 (29 00:34 +0300)]
tests: media_funnyordie: Update URL
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
Toni Gundogdu [Sat, 28 Sep 2013 20:18:29 +0000 (28 23:18 +0300)]
FIX: media/funnyordie.lua: Media stream URL pattern
This was fixed by
41a7516647, which removed the pattern that appears to
work again. Keep both patterns.
Other changes:
* Insert only those media URLs that match the quality-container pattern
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>