libquvi-scripts.git
10 years agoMerge branch 'tg/next__media_port_myspass.lua' into next
Toni Gundogdu [Sat, 28 Sep 2013 09:14:29 +0000 (28 12:14 +0300)]
Merge branch 'tg/next__media_port_myspass.lua' into next

10 years agotests: Add a test for media/myspass.lua
Toni Gundogdu [Sat, 28 Sep 2013 09:02:30 +0000 (28 12:02 +0300)]
tests: Add a test for media/myspass.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/myspass.lua: Rewrite parse function
Toni Gundogdu [Sat, 28 Sep 2013 08:53:09 +0000 (28 11:53 +0300)]
media/myspass.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Media title format change -> (:format: s:season:e:episode: - :title:)
* Implement `MySpass.{iter_streams,to_title,to_duration_ms}' functions
* Use LuaExpat (lxp) to parse the media properties
* Media duration (ms) is now parsed and returned
* Remove now obsolete code (e.g. self.host_id)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/myspass.lua: Remove query_formats function
Toni Gundogdu [Sat, 28 Sep 2013 08:04:40 +0000 (28 11:04 +0300)]
media/myspass.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>
10 years agomedia/myspass.lua: Rewrite ident function
Toni Gundogdu [Sat, 28 Sep 2013 08:04:19 +0000 (28 11:04 +0300)]
media/myspass.lua: Rewrite ident function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/myspass.lua: Relicense under AGPLv3+
Toni Gundogdu [Sat, 28 Sep 2013 07:59:37 +0000 (28 10:59 +0300)]
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>
10 years agoMove website/myspass.lua to media/
Toni Gundogdu [Sat, 28 Sep 2013 07:57:28 +0000 (28 10:57 +0300)]
Move website/myspass.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoshare/Makefile.am: Add media/ina.lua to dist_media_DATA
Toni Gundogdu [Fri, 27 Sep 2013 19:48:42 +0000 (27 22:48 +0300)]
share/Makefile.am: Add media/ina.lua to dist_media_DATA

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: Add a test for media/ina.lua
Toni Gundogdu [Fri, 27 Sep 2013 12:05:21 +0000 (27 15:05 +0300)]
tests: Add a test for media/ina.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoAdd support for ina.fr
Mohamed El Morabity [Thu, 26 Sep 2013 18:36:37 +0000 (26 20:36 +0200)]
Add support for ina.fr

Signed-off-by: Mohamed El Morabity <melmorabity@fedoraproject.org>
Reviewed-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoshare/README: Add Lua {resources,modules}
Toni Gundogdu [Fri, 27 Sep 2013 12:42:36 +0000 (27 15:42 +0300)]
share/README: Add Lua {resources,modules}

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoInstall with share/README
Toni Gundogdu [Fri, 27 Sep 2013 12:22:32 +0000 (27 15:22 +0300)]
Install with share/README

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: media/youtube.lua: Unescape using quvi/util
Toni Gundogdu [Fri, 13 Sep 2013 13:02:54 +0000 (13 16:02 +0300)]
FIX: media/youtube.lua: Unescape using quvi/util

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoscan/youtube.lua: Return HTTPS media URLs if input URL uses it
Toni Gundogdu [Wed, 11 Sep 2013 16:49:30 +0000 (11 19:49 +0300)]
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>
10 years agosubtitle/youtube.lua: Use HTTPS if input URL uses it
Toni Gundogdu [Wed, 11 Sep 2013 16:29:50 +0000 (11 19:29 +0300)]
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>
10 years agoplaylist/youtube.lua: Use HTTPS if input URL uses it
Toni Gundogdu [Wed, 11 Sep 2013 16:02:05 +0000 (11 19:02 +0300)]
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>
10 years agomedia/youtube.lua: Use HTTPS if input URL uses it
Toni Gundogdu [Wed, 11 Sep 2013 09:32:43 +0000 (11 12:32 +0300)]
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>
10 years agoquvi/youtube.lua: normalize: Revise, remove "nocookie" handling
Toni Gundogdu [Mon, 9 Sep 2013 17:00:27 +0000 (9 20:00 +0300)]
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>
10 years agoMerge branch 'tg/next__media_port_lego.lua' into next
Toni Gundogdu [Sat, 7 Sep 2013 15:52:59 +0000 (7 18:52 +0300)]
Merge branch 'tg/next__media_port_lego.lua' into next

10 years agotests: Add a test for media/lego.lua
Toni Gundogdu [Sat, 7 Sep 2013 15:46:18 +0000 (7 18:46 +0300)]
tests: Add a test for media/lego.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/lego.lua: Rewrite parse function
Toni Gundogdu [Sat, 7 Sep 2013 15:13:19 +0000 (7 18:13 +0300)]
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>
10 years agomedia/lego.lua: Remove query_formats function
Toni Gundogdu [Sat, 7 Sep 2013 14:28:37 +0000 (7 17:28 +0300)]
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>
10 years agomedia/lego.lua: Rewrite ident function
Toni Gundogdu [Sat, 7 Sep 2013 14:27:03 +0000 (7 17:27 +0300)]
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>
10 years agomedia/lego.lua: Relicense under AGPLv3+
Toni Gundogdu [Sat, 7 Sep 2013 14:17:15 +0000 (7 17:17 +0300)]
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>
10 years agoMove website/lego.lua to media/
Toni Gundogdu [Sat, 7 Sep 2013 14:16:07 +0000 (7 17:16 +0300)]
Move website/lego.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoUpdate NEWS for v0.9.20130903v0.9.20130903
Toni Gundogdu [Tue, 3 Sep 2013 07:12:34 +0000 (3 10:12 +0300)]
Update NEWS for v0.9.20130903

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoDOC: manpage: footer: Revise "FURTHER RESOURCES"
Toni Gundogdu [Sat, 31 Aug 2013 13:59:16 +0000 (31 16:59 +0300)]
DOC: manpage: footer: Revise "FURTHER RESOURCES"

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: Install cookie.lua to common/quvi/http/
Toni Gundogdu [Sat, 31 Aug 2013 06:29:15 +0000 (31 09:29 +0300)]
FIX: Install cookie.lua to common/quvi/http/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: media/dailymotion.lua: sequence pattern (PORTpt4)
Toni Gundogdu [Sat, 31 Aug 2013 06:14:49 +0000 (31 09:14 +0300)]
FIX: media/dailymotion.lua: sequence pattern (PORTpt4)

Backported from the 0.4 series [3d71c75]

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMerge branch 'tg/next__redo_version_file' into next
Toni Gundogdu [Thu, 29 Aug 2013 13:17:17 +0000 (29 16:17 +0300)]
Merge branch 'tg/next__redo_version_file' into next

10 years agoDo not bundle 'version' file, have install create it
Toni Gundogdu [Thu, 29 Aug 2013 08:04:22 +0000 (29 11:04 +0300)]
Do not bundle 'version' file, have install create it

Instead of creating the 'version' file to be distributed using dist-hook
have the install-data-hook create the file making it possible to store
additional details (e.g. build opts) to the file.

install-data-hook:
  Create the 'version' file. Use ini-style format.  Add configuration
  invocation command line options as 'configuration' to the file.

uninstall-hook:
  * Remove symbolic link "major.minor"
  * Remove current version dir

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoconfigure.ac: Add configure invocation cmdline opts shell variable
Toni Gundogdu [Thu, 29 Aug 2013 07:27:19 +0000 (29 10:27 +0300)]
configure.ac: Add configure invocation cmdline opts shell variable

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoAC_PREREQ: Bump to 2.69
Toni Gundogdu [Mon, 26 Aug 2013 07:09:19 +0000 (26 10:09 +0300)]
AC_PREREQ: Bump to 2.69

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/guardian.lua: Also support "old" domain name
Bastien Nocera [Sat, 24 Aug 2013 03:45:57 +0000 (24 05:45 +0200)]
media/guardian.lua: Also support "old" domain name

The old "guardian.co.uk" domain name still works, so
detect older URLs as working too, without the need to access
the network, or check for redirects.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
10 years agoUse subdir-objects Automake option
Kerrick Staley [Wed, 21 Aug 2013 09:48:30 +0000 (21 02:48 -0700)]
Use subdir-objects Automake option

If you don't pass subdir-objects, Automake 1.14+ will complain loudly
and fail:

[...]
automake: warnings are treated as errors
tests/media/101greatgoals.mk:2: warning: source file
'media/media_101greatgoals.c' is in a subdirectory,
tests/media/101greatgoals.mk:2: but option 'subdir-objects' is disabled
tests/Makefile.am:21:   'tests/media/tests.mk' included from here
tests/media/tests.mk:1:   'tests/media/101greatgoals.mk' included from
here
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
tests/media/ardmediathek.mk:2: warning: source file
'media/media_ardmediathek.c' is in a subdirectory,
tests/media/ardmediathek.mk:2: but option 'subdir-objects' is disabled
[...]

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: media/funnyordie.lua: Stream URL pattern
Toni Gundogdu [Tue, 20 Aug 2013 07:29:12 +0000 (20 10:29 +0300)]
FIX: media/funnyordie.lua: Stream URL pattern

Update the media stream URL pattern to reflect the recent changes to the
website. Look for the video/mp4 content only.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoUpdate NEWS for v0.9.20130805v0.9.20130805
Toni Gundogdu [Mon, 5 Aug 2013 10:08:33 +0000 (5 13:08 +0300)]
Update NEWS for v0.9.20130805

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: media_senat: Update expected title
Toni Gundogdu [Sun, 4 Aug 2013 16:18:25 +0000 (4 19:18 +0300)]
tests: media_senat: Update expected title

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: media_publicsenat: Update expected title
Toni Gundogdu [Sun, 4 Aug 2013 16:14:31 +0000 (4 19:14 +0300)]
tests: media_publicsenat: Update expected title

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: media_guardian: Additional test URL, update media IDs
Toni Gundogdu [Sun, 4 Aug 2013 16:10:18 +0000 (4 19:10 +0300)]
tests: media_guardian: Additional test URL, update media IDs

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: media/guardian.lua: Multiple patterns
Toni Gundogdu [Sun, 4 Aug 2013 16:08:40 +0000 (4 19:08 +0300)]
FIX: media/guardian.lua: Multiple patterns

Notable changes:
* Update to support the new domain name ("theguardian.com")
* Add Guardian.parse_duration: use an additional pattern
* Update media stream URL pattern
* Remove "- video" from title
* Parse video {width,height}
* Update media ID pattern

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: media/funnyordie.c: Change test URL
Toni Gundogdu [Sun, 4 Aug 2013 13:44:49 +0000 (4 16:44 +0300)]
tests: media/funnyordie.c: Change test URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: media_dailymotion.c: Update test URL
Toni Gundogdu [Sun, 4 Aug 2013 13:34:52 +0000 (4 16:34 +0300)]
tests: media_dailymotion.c: Update test URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: media_clipfish.c: Update test URL
Toni Gundogdu [Sun, 4 Aug 2013 13:29:22 +0000 (4 16:29 +0300)]
tests: media_clipfish.c: Update test URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMark media/charlierose.lua as FIXME
Toni Gundogdu [Sun, 4 Aug 2013 13:22:52 +0000 (4 16:22 +0300)]
Mark media/charlierose.lua as FIXME

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMark media/break.lua as FIXME
Toni Gundogdu [Sun, 4 Aug 2013 13:07:29 +0000 (4 16:07 +0300)]
Mark media/break.lua as FIXME

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: tests: Use quvi_errcode instead of qerr
Toni Gundogdu [Sun, 4 Aug 2013 12:26:35 +0000 (4 15:26 +0300)]
FIX: tests: Use quvi_errcode instead of qerr

libquvi v0.9.2 introduced `quvi_errcode' which replaces the use of
QUVI_INFO_ERROR_CODE (of `quvi_get').

Make the necessary changes to use `quvi_errcode' instead of `qerr' which
wrapped quvi_get with QUVI_INFO_ERROR_CODE.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoconfigure.ac: Require a2x when building from git
Toni Gundogdu [Wed, 3 Jul 2013 21:16:57 +0000 (4 00:16 +0300)]
configure.ac: Require a2x when building from git

Otherwise make in the doc/man7 will fail as the manpages are missing.
Backported from quvi (7301c459).

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoconfigure.ac: Add a vim modeline
Toni Gundogdu [Tue, 25 Jun 2013 13:30:15 +0000 (25 16:30 +0300)]
configure.ac: Add a vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoUpdate NEWS for v0.9.20130619v0.9.20130619
Toni Gundogdu [Wed, 19 Jun 2013 15:17:13 +0000 (19 18:17 +0300)]
Update NEWS for v0.9.20130619

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/guardian.lua: Check for expired content (BACKPORTpt4)
Toni Gundogdu [Tue, 18 Jun 2013 15:46:45 +0000 (18 18:46 +0300)]
media/guardian.lua: Check for expired content (BACKPORTpt4)

* Backported from maint-0.4 (22ff394)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: media/spiegel.lua: title pattern (BACKPORTpt4)
Toni Gundogdu [Mon, 17 Jun 2013 11:30:36 +0000 (17 14:30 +0300)]
FIX: media/spiegel.lua: title pattern (BACKPORTpt4)

Other:
* Add an additional title pattern to fall back to
* Backported from maint-0.4 (20e95ca)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoquvi/util: Add escape_magic function
Toni Gundogdu [Tue, 11 Jun 2013 06:46:07 +0000 (11 09:46 +0300)]
quvi/util: Add escape_magic function

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: tests: Unset ok flag (see also 852c871)
Toni Gundogdu [Tue, 4 Jun 2013 15:21:04 +0000 (4 18:21 +0300)]
FIX: tests: Unset ok flag (see also 852c871)

Related to 852c871 which removed the use of gtester-report.  That patch
removed also the "ok=;" which is required to indicate that an error
occurred while the tests were run.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoREADME: Update Requirements with Wheezy packages
Toni Gundogdu [Tue, 4 Jun 2013 12:17:32 +0000 (4 15:17 +0300)]
README: Update Requirements with Wheezy packages

Use the Wheezy+ package names with the aptitude(1) examples.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: media/break.lua: Break.can_parse_url: path pattern
Toni Gundogdu [Tue, 4 Jun 2013 12:03:01 +0000 (4 15:03 +0300)]
FIX: media/break.lua: Break.can_parse_url: path pattern

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoRemove media/academicearth.lua
Toni Gundogdu [Tue, 4 Jun 2013 11:44:15 +0000 (4 14:44 +0300)]
Remove media/academicearth.lua

academicearth.org now links to YouTube video pages. The "elective"
videos are (AFAICT) HTML5 videos and there are only a handful of those
at the time of writing this.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: media_101greatgoals: Update test URL
Toni Gundogdu [Tue, 4 Jun 2013 10:44:58 +0000 (4 13:44 +0300)]
tests: media_101greatgoals: Update test URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: Do not invoke gtester-report
Toni Gundogdu [Tue, 4 Jun 2013 10:33:54 +0000 (4 13:33 +0300)]
tests: Do not invoke gtester-report

This results in:

  Traceback (most recent call last):
    File "/usr/bin/gtester-report", line 492, in <module>
      main()
    File "/usr/bin/gtester-report", line 486, in main
      HTMLReportWriter(rr.get_info(), rr.binary_list()).printout()
    File "/usr/bin/gtester-report", line 350, in printout
      self.handle_info ()
    File "/usr/bin/gtester-report", line 244, in handle_info
      self.oprint ('<h3>Package: %(package)s, version: \
                    %(version)s</h3>\n' % self.info)
  KeyError: 'package'

$ python --version
Python 2.7.3
$ gtester -v
gtester version 2.32.4
$ gtester-report -v
gtester-report (GLib utils) version 0.0-uninstalled.

See also:
* https://bugzilla.gnome.org/show_bug.cgi?id=668035

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoUpdate NEWS for v0.9.20130520v0.9.20130520
Toni Gundogdu [Mon, 20 May 2013 15:50:17 +0000 (20 18:50 +0300)]
Update NEWS for v0.9.20130520

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoREADME: Requirements: Use "sudo aptitude"
Toni Gundogdu [Mon, 20 May 2013 14:47:12 +0000 (20 17:47 +0300)]
README: Requirements: Use "sudo aptitude"

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agogen-news.sh: Do not insert date or author
Toni Gundogdu [Sun, 19 May 2013 13:38:54 +0000 (19 16:38 +0300)]
gen-news.sh: Do not insert date or author

* Release date is now part of the package version
* Release author info was trivial

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMerge branch 'tg/next__cleanup_playlist_tests' into next
Toni Gundogdu [Sun, 19 May 2013 17:42:33 +0000 (19 20:42 +0300)]
Merge branch 'tg/next__cleanup_playlist_tests' into next

10 years agotests: playlist_soundcloud: Update URL
Toni Gundogdu [Sun, 19 May 2013 17:31:57 +0000 (19 20:31 +0300)]
tests: playlist_soundcloud: Update URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: playlist_youtube: Cleanup test URLs
Toni Gundogdu [Sun, 19 May 2013 17:27:36 +0000 (19 20:27 +0300)]
tests: playlist_youtube: Cleanup test URLs

Remove all media URLs from the list.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMerge branch 'tg/next__improve_youtube_support' into next
Toni Gundogdu [Sun, 19 May 2013 17:22:40 +0000 (19 20:22 +0300)]
Merge branch 'tg/next__improve_youtube_support' into next

10 years agoquvi/youtube.lua: can_parse_url: Improve patterns
Toni Gundogdu [Sun, 19 May 2013 17:17:54 +0000 (19 20:17 +0300)]
quvi/youtube.lua: can_parse_url: Improve patterns

Use more strict patterns with the query and the path elements of the
(media) URL.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoplaylist/youtube.lua: Improve patterns
Toni Gundogdu [Sun, 19 May 2013 17:13:06 +0000 (19 20:13 +0300)]
playlist/youtube.lua: Improve patterns

Use more strict pattern with URL paths. Add a pattern for URL query
element. This script will no longer accept URLs that are clearly media
URLs, not playlist URLs, e.g.:
  http://www.youtube.com/watch?v=...&list=...&index=1

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMerge branch 'tg/next__improve_soundcloud_support' into next
Toni Gundogdu [Sun, 19 May 2013 17:00:37 +0000 (19 20:00 +0300)]
Merge branch 'tg/next__improve_soundcloud_support' into next

10 years agomedia/soundcloud.lua: Improve path patterns
Toni Gundogdu [Sun, 19 May 2013 16:37:34 +0000 (19 19:37 +0300)]
media/soundcloud.lua: Improve path patterns

Exclude, specifically, any URLs that have the typical properties of a
soundcloud playlist URL.

Remove the path pattern intented for embedded media URLs:
  The `Soundcloud.normalize' should handle this already.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoplaylist/soundcloud.lua: Improve path pattern
Toni Gundogdu [Sun, 19 May 2013 16:35:29 +0000 (19 19:35 +0300)]
playlist/soundcloud.lua: Improve path pattern

Use a more strict URL path pattern to determine whether this URL can be
parsed.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMerge branch 'tg/next__media_port_ted.lua' into next
Toni Gundogdu [Fri, 17 May 2013 15:03:56 +0000 (17 18:03 +0300)]
Merge branch 'tg/next__media_port_ted.lua' into next

10 years agotests: Add a test for media/ted.lua
Toni Gundogdu [Fri, 17 May 2013 14:49:51 +0000 (17 17:49 +0300)]
tests: Add a test for media/ted.lua

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

Rewrite the `parse' function for the libquvi 0.9+ series.
* Implement `Ted.iter_streams' function w/ improved stream parsing[1]
* Implement additional `Ted' functions, e.g. `Ted.ch_best'
* Parse additional properties[2] for self-hosted media
* Remove now obsolete code (e.g. self.host_id)
* Apply 2-space indentation
* Update vim modeline

[1]: Unlike the 0.4 equivalent, this rewrite parses additional
     self-hosted media streams, both "HTML" (HTTP) and "streamer" (RTMP)

[2]: duration_ms, video={width, height, bitrate_kbit_s}

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/ted.lua: Remove query_formats function
Toni Gundogdu [Fri, 17 May 2013 11:17:35 +0000 (17 14:17 +0300)]
media/ted.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>
10 years agomedia/ted.lua: Rewrite ident function
Toni Gundogdu [Fri, 17 May 2013 11:17:20 +0000 (17 14:17 +0300)]
media/ted.lua: Rewrite ident function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/ted.lua: Relicense under AGPLv3+
Toni Gundogdu [Fri, 17 May 2013 11:07:00 +0000 (17 14:07 +0300)]
media/ted.lua: Relicense under AGPLv3+

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMove website/ted.lua to media/
Toni Gundogdu [Fri, 17 May 2013 11:06:31 +0000 (17 14:06 +0300)]
Move website/ted.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: website/ted.lua: Check for extern media
Toni Gundogdu [Tue, 30 Apr 2013 13:26:35 +0000 (30 16:26 +0300)]
FIX: website/ted.lua: Check for extern media

* Rewrite `Ted.is_external' func using a new embed URL pattern
* Revise `parse' function for minor style changes
* Update thumbnail_url pattern

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMerge branch 'tg/next__media_port_videa.lua' into next
Toni Gundogdu [Fri, 17 May 2013 10:58:49 +0000 (17 13:58 +0300)]
Merge branch 'tg/next__media_port_videa.lua' into next

10 years agotests: Add a test for media/videa.lua
Toni Gundogdu [Fri, 17 May 2013 10:52:10 +0000 (17 13:52 +0300)]
tests: Add a test for media/videa.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/videa.lua: Rewrite parse function
Toni Gundogdu [Fri, 17 May 2013 10:15:44 +0000 (17 13:15 +0300)]
media/videa.lua: Rewrite parse function

Rewrite the `parse' function for the libquvi 0.9+ series.
* Parse additional media properties {duration_ms,width,height}
* Remove now obsolete code (e.g. self.host_id)
* Implement `Videa.iter_streams' function
* Apply 2-space indentation
* Update vim modeline

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/videa.lua: Remove query_formats function
Toni Gundogdu [Fri, 17 May 2013 08:35:36 +0000 (17 11:35 +0300)]
media/videa.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>
10 years agomedia/videa.lua: Rewrite ident function
Toni Gundogdu [Fri, 17 May 2013 08:35:22 +0000 (17 11:35 +0300)]
media/videa.lua: Rewrite ident function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/videa.lua: Relicense under AGPLv3+
Toni Gundogdu [Fri, 17 May 2013 08:26:28 +0000 (17 11:26 +0300)]
media/videa.lua: Relicense under AGPLv3+

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMove website/videa.lua to media/
Toni Gundogdu [Fri, 17 May 2013 08:25:44 +0000 (17 11:25 +0300)]
Move website/videa.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoAdd config.aux/ar-lib to .gitignore
Toni Gundogdu [Fri, 17 May 2013 08:09:54 +0000 (17 11:09 +0300)]
Add config.aux/ar-lib to .gitignore

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotests: Define LIBQUVI_EXCLUSIVE_SCRIPTS_DIR
Toni Gundogdu [Mon, 13 May 2013 12:32:11 +0000 (13 15:32 +0300)]
tests: Define LIBQUVI_EXCLUSIVE_SCRIPTS_DIR

Refer to the libquvi(3) manpage for additional info.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoquvi/util: Remove the unused `tokenize' function
Toni Gundogdu [Fri, 10 May 2013 07:47:25 +0000 (10 10:47 +0300)]
quvi/util: Remove the unused `tokenize' function

This module function did nothing more than wrapped the string.gmatch
function.

Other:
* Remove an extra whitespace

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMerge branch 'tg/next__media_port_101greatgoals.lua' into next
Toni Gundogdu [Wed, 8 May 2013 17:04:49 +0000 (8 20:04 +0300)]
Merge branch 'tg/next__media_port_101greatgoals.lua' into next

10 years agotests: Add a test for media/101greatgoals.lua
Toni Gundogdu [Wed, 8 May 2013 17:04:42 +0000 (8 20:04 +0300)]
tests: Add a test for media/101greatgoals.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/101greatgoals.lua: Rewrite parse function
Toni Gundogdu [Wed, 8 May 2013 16:41:32 +0000 (8 19:41 +0300)]
media/101greatgoals.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>
10 years agomedia/101greatgoals.lua: Remove query_formats function
Toni Gundogdu [Wed, 8 May 2013 16:36:32 +0000 (8 19:36 +0300)]
media/101greatgoals.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>
10 years agomedia/101greatgoals.lua: Rewrite ident function
Toni Gundogdu [Wed, 8 May 2013 16:36:15 +0000 (8 19:36 +0300)]
media/101greatgoals.lua: Rewrite ident function

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/101greatgoals.lua: Relicense under AGPLv3+
Toni Gundogdu [Wed, 8 May 2013 16:34:25 +0000 (8 19:34 +0300)]
media/101greatgoals.lua: Relicense under AGPLv3+

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMove website/101greatgoals.lua to media/
Toni Gundogdu [Wed, 8 May 2013 16:33:39 +0000 (8 19:33 +0300)]
Move website/101greatgoals.lua to media/

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoFIX: website/101greatgoals.lua: embedded URL patterns
Toni Gundogdu [Sun, 5 May 2013 11:12:58 +0000 (5 14:12 +0300)]
FIX: website/101greatgoals.lua: embedded URL patterns

Improve the patterns used to parse the embedded media URLs.  Do not
attempt to check for the known hosts; leave the determination for
libquvi(-scripts) to do.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMerge branch 'tg/next__media_port_website/ardmediathek.lua' into next
Toni Gundogdu [Wed, 8 May 2013 16:20:41 +0000 (8 19:20 +0300)]
Merge branch 'tg/next__media_port_website/ardmediathek.lua' into next

10 years agotests: Add a test for media/ardmediathek.lua
Toni Gundogdu [Tue, 7 May 2013 22:15:36 +0000 (8 01:15 +0300)]
tests: Add a test for media/ardmediathek.lua

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agomedia/ardmediathek.lua: Rewrite parse function
Toni Gundogdu [Tue, 7 May 2013 20:09:08 +0000 (7 23:09 +0300)]
media/ardmediathek.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

ArdMediathek:
* Reimplement `container_from' as `to_container'
* Reimplement `test_availability`as `chk_avail'
* Reimplement `iter_formats' as `iter_streams'
* Reimplement `quality_from' as `to_quality'
* Reimplement `height_from' as `to_resolution'
* Implement `to_encoding'
* Implement `get_title'
* Remove `get_config'

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