libquvi.git
10 years agoUpdate NEWS for v0.9.4maintmasternextv0.9.4
Toni Gundogdu [Sun, 10 Nov 2013 07:45:18 +0000 (10 09:45 +0200)]
Update NEWS for v0.9.4

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoDOC: Make doxygen ignore `scripts_version_s'
Toni Gundogdu [Thu, 24 Oct 2013 18:45:16 +0000 (24 21:45 +0300)]
DOC: Make doxygen ignore `scripts_version_s'

This fixes the "warning: Compound scripts_version_s is not documented."
while running doxygen.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoAPI: Return URLs in escaped (percent-encoded) form
Toni Gundogdu [Thu, 24 Oct 2013 18:26:04 +0000 (24 21:26 +0300)]
API: Return URLs in escaped (percent-encoded) form

- Extend `l_chk_s' and `l_chk_assign_s' functions to allow the caller
  set the `escape_url' arg to TRUE to tell the library to store the
  string value in URI escaped form

- All URLs returned by the library (e.g. media stream or thumbnail) are
  now stored in their escaped form, and passed as such to the
  applications querying them

- "Reserved chars" remain unescaped
  - https://tools.ietf.org/html/rfc3986#section-2.2

Affected API functions

- quvi_subtitle_lang_get (QUVI_SUBTITLE_LANG_PROPERTY_URL)
- quvi_playlist_get (QUVI_PLAYLIST_*_URL)
- quvi_media_get (QUVI_MEDIA_*_URL)

Rationale

- Address the potential problem of chars getting mangled when the URLs
  containing UTF8 chars are passed to the application trying to access
  the URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agom_url_unescaped_form: Check if g_uri_unescape_string fails
Toni Gundogdu [Thu, 24 Oct 2013 18:22:58 +0000 (24 21:22 +0300)]
m_url_unescaped_form: Check if g_uri_unescape_string fails

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoMerge branch 'tg/next__redo_url_{un}escaping' into next
Toni Gundogdu [Tue, 15 Oct 2013 14:38:29 +0000 (15 17:38 +0300)]
Merge branch 'tg/next__redo_url_{un}escaping' into next

10 years agotests/media.c: Add test_media_escaped_utf8_url
Toni Gundogdu [Mon, 14 Oct 2013 13:34:10 +0000 (14 16:34 +0300)]
tests/media.c: Add test_media_escaped_utf8_url

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotest_media_escaped_url: Replace URL
Toni Gundogdu [Mon, 14 Oct 2013 13:32:12 +0000 (14 16:32 +0300)]
test_media_escaped_url: Replace URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotest_media_select: Replace URL, update patterns
Toni Gundogdu [Mon, 14 Oct 2013 13:29:22 +0000 (14 16:29 +0300)]
test_media_select: Replace URL, update patterns

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotest_media_multi: Replace test URL
Toni Gundogdu [Mon, 14 Oct 2013 13:27:10 +0000 (14 16:27 +0300)]
test_media_multi: Replace test URL

Other:
* Check {video,audio} encoding properties conditionally

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agotest_scan_core: Replace test URL
Toni Gundogdu [Mon, 14 Oct 2013 13:25:58 +0000 (14 16:25 +0300)]
test_scan_core: Replace test URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agon_new, n_resolve_new: Escape URL for libcurl
Toni Gundogdu [Mon, 14 Oct 2013 13:24:48 +0000 (14 16:24 +0300)]
n_new, n_resolve_new: Escape URL for libcurl

Escape the URLs at these chokepoints before they are passed to libcurl
(via CURLOPT_URL). libcurl works with UTF8 chars as long as they have
been escaped.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agom_subtitle_new: Store input URL in unescaped form
Toni Gundogdu [Mon, 14 Oct 2013 13:20:47 +0000 (14 16:20 +0300)]
m_subtitle_new: Store input URL in unescaped form

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agom_playlist_new: Store input URL in unescaped form
Toni Gundogdu [Mon, 14 Oct 2013 13:12:25 +0000 (14 16:12 +0300)]
m_playlist_new: Store input URL in unescaped form

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agom_media_new: Store input URL in unescaped form
Toni Gundogdu [Mon, 14 Oct 2013 13:10:03 +0000 (14 16:10 +0300)]
m_media_new: Store input URL in unescaped form

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoAdd misc/url.* with m_url_(un)escaped_form
Toni Gundogdu [Mon, 14 Oct 2013 13:09:15 +0000 (14 16:09 +0300)]
Add misc/url.* with m_url_(un)escaped_form

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agom_unescape_url: Remove completely
Toni Gundogdu [Mon, 14 Oct 2013 13:08:32 +0000 (14 16:08 +0300)]
m_unescape_url: Remove completely

This function will be replaced by m_url_(un)escaped_form.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
10 years agoDOC: Update C API reference URL
Toni Gundogdu [Sun, 13 Oct 2013 09:36:04 +0000 (13 12:36 +0300)]
DOC: Update C API reference URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoUpdate NEWS for v0.9.3v0.9.3
Toni Gundogdu [Tue, 3 Sep 2013 14:30:37 +0000 (3 17:30 +0300)]
Update NEWS for v0.9.3

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoUse word "library" in the source file headers
Toni Gundogdu [Tue, 3 Sep 2013 14:24:40 +0000 (3 17:24 +0300)]
Use word "library" in the source file headers

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests_media_escaped_url: Change test URL
Toni Gundogdu [Tue, 3 Sep 2013 11:40:49 +0000 (3 14:40 +0300)]
tests_media_escaped_url: Change test URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: Unescape input URL before URL resolving
Toni Gundogdu [Tue, 3 Sep 2013 11:38:33 +0000 (3 14:38 +0300)]
FIX: Unescape input URL before URL resolving

Unescape the input URL in m_{media,subtitle,playlist}_new, otherwise
libcurl will attempt to resolve escaped (if any) URLs and fail.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoquvi_resolve_new: Update to use the added m_resolve_url
Toni Gundogdu [Tue, 3 Sep 2013 11:36:20 +0000 (3 14:36 +0300)]
quvi_resolve_new: Update to use the added m_resolve_url

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoRewrite m_resolve, add m_resolve_url
Toni Gundogdu [Tue, 3 Sep 2013 11:35:15 +0000 (3 14:35 +0300)]
Rewrite m_resolve, add m_resolve_url

Modify m_resolve to reuse the GString:
* Read input URL from it
* Write resolved destination URL to it

Add m_resolve_url:
* Identical to the old m_resolve which took the input URL parameter

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoRemove a vim modeline line
Toni Gundogdu [Tue, 3 Sep 2013 10:54:33 +0000 (3 13:54 +0300)]
Remove a vim modeline line

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests: media: Replace dmotion URLs
Toni Gundogdu [Tue, 3 Sep 2013 08:40:17 +0000 (3 11:40 +0300)]
tests: media: Replace dmotion URLs

Update any tests that previously used dailymotion test URLs to use
spiegel test URLs. The updated tests previously relied on the order of
the returned stream IDs -- this no longer is possible with spiegel. This
commit changes the tests so that they use hardcoded expected values,
instead.

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__opt-in_allow_cookies' into next
Toni Gundogdu [Sat, 31 Aug 2013 13:11:28 +0000 (31 16:11 +0300)]
Merge branch 'tg/next__opt-in_allow_cookies' into next

11 years agoexamples/media: Add -c (enable cookies)
Toni Gundogdu [Sat, 31 Aug 2013 13:11:01 +0000 (31 16:11 +0300)]
examples/media: Add -c (enable cookies)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agolibconvenience_example: Add examples_enable_cookies
Toni Gundogdu [Sat, 31 Aug 2013 13:10:38 +0000 (31 16:10 +0300)]
libconvenience_example: Add examples_enable_cookies

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoDOC: quvi-object(7): Update quvi.http.cookie with QUVI_OPTION_ALLOW_COOKIES
Toni Gundogdu [Sat, 31 Aug 2013 12:50:33 +0000 (31 15:50 +0300)]
DOC: quvi-object(7): Update quvi.http.cookie with QUVI_OPTION_ALLOW_COOKIES

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoDOC: Glossary: Terminology: Update with CURLOPT_COOKIEFILE=""
Toni Gundogdu [Sat, 31 Aug 2013 12:49:56 +0000 (31 15:49 +0300)]
DOC: Glossary: Terminology: Update with CURLOPT_COOKIEFILE=""

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoquvi.http.cookie: Return unless QUVI_OPTION_ALLOW_COOKIES is QUVI_TRUE
Toni Gundogdu [Sat, 31 Aug 2013 12:49:17 +0000 (31 15:49 +0300)]
quvi.http.cookie: Return unless QUVI_OPTION_ALLOW_COOKIES is QUVI_TRUE

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoc_reset: Set CURLOPT_COOKIELIST="ALL" conditionally
Toni Gundogdu [Sat, 31 Aug 2013 12:48:43 +0000 (31 15:48 +0300)]
c_reset: Set CURLOPT_COOKIELIST="ALL" conditionally

Clear the cookies in the (libcurl) memory, only if
QUVI_OPTION_ALLOW_COOKIES was set to QUVI_TRUE.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoc_init: Set CURLOPT_COOKIEFILE="" conditionally
Toni Gundogdu [Sat, 31 Aug 2013 12:48:11 +0000 (31 15:48 +0300)]
c_init: Set CURLOPT_COOKIEFILE="" conditionally

Enable cookie support only if QUVI_OPTION_ALLOW_COOKIE was set to
QUVI_TRUE.

The earlier libquvi 0.9 versions presumed, incorrectly, that setting
CURLOPT_COOKIELIST="ALL" would cause libcurl to parse the received
cookies and use them in the subsequent HTTP requests. Setting
CURLOPT_COOKIEFILE="" fixes that.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoAPI: quvi_set: Handle QUVI_OPTION_ALLOW_COOKIES
Toni Gundogdu [Sat, 31 Aug 2013 12:47:41 +0000 (31 15:47 +0300)]
API: quvi_set: Handle QUVI_OPTION_ALLOW_COOKIES

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoAPI: Add QUVI_OPTION_ALLOW_COOKIES
Toni Gundogdu [Sat, 31 Aug 2013 12:47:16 +0000 (31 15:47 +0300)]
API: Add QUVI_OPTION_ALLOW_COOKIES

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years ago_quvi_s: Add "allow_cookies" flag
Toni Gundogdu [Sat, 31 Aug 2013 12:46:49 +0000 (31 15:46 +0300)]
_quvi_s: Add "allow_cookies" flag

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__scripts_version_as_ini' into next
Toni Gundogdu [Sat, 31 Aug 2013 12:41:41 +0000 (31 15:41 +0300)]
Merge branch 'tg/next__scripts_version_as_ini' into next

11 years agoexamples: version: Print QUVI_VERSION_SCRIPTS_CONFIGURATION
Toni Gundogdu [Thu, 29 Aug 2013 08:57:24 +0000 (29 11:57 +0300)]
examples: version: Print QUVI_VERSION_SCRIPTS_CONFIGURATION

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoAPI: quvi_version: Read "version" file as ini-file
Toni Gundogdu [Thu, 29 Aug 2013 08:57:06 +0000 (29 11:57 +0300)]
API: quvi_version: Read "version" file as ini-file

libquvi-scripts now writes the "version" file as a ini-file. Update
quvi_version to parse the contents using GKeyFile.

Other:
* Add support for QUVI_VERSION_SCRIPTS_CONFIGURATION

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoAPI: Add QUVI_VERSION_SCRIPTS_CONFIGURATION
Toni Gundogdu [Thu, 29 Aug 2013 08:54:37 +0000 (29 11:54 +0300)]
API: Add QUVI_VERSION_SCRIPTS_CONFIGURATION

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoconfigure.ac: scriptsver: Change how version is parsed
Toni Gundogdu [Thu, 29 Aug 2013 08:42:00 +0000 (29 11:42 +0300)]
configure.ac: scriptsver: Change how version is parsed

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: error: implicit declaration of function 'luaL_register'
Toni Gundogdu [Tue, 6 Aug 2013 13:58:13 +0000 (6 16:58 +0300)]
FIX: error: implicit declaration of function 'luaL_register'

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoUpdates NEWS for v0.9.2v0.9.2
Toni Gundogdu [Tue, 16 Jul 2013 14:09:54 +0000 (16 17:09 +0300)]
Updates NEWS for v0.9.2

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoLDFLAGS: libtool: Use -release with unstable 0.9 releases
Toni Gundogdu [Sun, 7 Jul 2013 15:47:52 +0000 (7 18:47 +0300)]
LDFLAGS: libtool: Use -release with unstable 0.9 releases

The rationale behind the switch (`-version-info' to `-release'):

* The 0.9 series is currently under development, and will gradually
  mature as the next stable (1.0), replacing the 0.4 series completely

* The series may still see:
  - ABI and API breakages with the earlier 0.9 versions
  - Feature additions and/or removals

Instead of bumping the `-version-info C+1:R:A' everytime something
breaks the backward-compatibility with the earlier 0.9 releases, we will
use the `-release RELEASE'. Once 0.9 graduates as the next stable (1.0),
we can switch back to using the `-version-info'.

Downside:

  * Every release of the package will not be binary compatible with any
    other release (which would frequently be the case anyway)

  * Applications that depend on (this) libquvi 0.9 release will have to
    be recompiled later again to use a new release of libquvi

Other:
* Leave the -version-info line commented out for the next stable (1.0)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: configure.ac: AS_IF for date(1)
Toni Gundogdu [Wed, 3 Jul 2013 14:58:03 +0000 (3 17:58 +0300)]
FIX: configure.ac: AS_IF for date(1)

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoconfigure.ac: Rewrite 6cdebfdf4 using $srcdir and AS_IF
Toni Gundogdu [Wed, 3 Jul 2013 14:46:05 +0000 (3 17:46 +0300)]
configure.ac: Rewrite 6cdebfdf4 using $srcdir and AS_IF

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__quvi_version__build_cflags' into next
Toni Gundogdu [Wed, 3 Jul 2013 13:58:23 +0000 (3 16:58 +0300)]
Merge branch 'tg/next__quvi_version__build_cflags' into next

11 years agoexamples/version: Print QUVI_VERSION_BUILD_CC_CFLAGS
Toni Gundogdu [Wed, 3 Jul 2013 13:52:59 +0000 (3 16:52 +0300)]
examples/version: Print QUVI_VERSION_BUILD_CC_CFLAGS

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoquvi_version: Add support for QUVI_VERSION_BUILD_CC_CFLAGS
Toni Gundogdu [Wed, 3 Jul 2013 13:52:16 +0000 (3 16:52 +0300)]
quvi_version: Add support for QUVI_VERSION_BUILD_CC_CFLAGS

Save, and return, $CC and $CFLAGS via quvi_version with
QUVI_VERSION_BUILD_CC_CFLAGS.

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoRequire a2x when building from git
Bastien Nocera [Fri, 21 Jun 2013 11:51:20 +0000 (21 13:51 +0200)]
Require a2x when building from git

Otherwise make in the doc/man7 directory will fail as quvi-object.7 is
missing.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: declaration of quvi_new()
Bastien Nocera [Thu, 20 Jun 2013 14:07:58 +0000 (20 16:07 +0200)]
FIX: declaration of quvi_new()

qfunc.h:28:3: warning: function declaration isn't a prototype

w/ [-Wstrict-prototypes]

Signed-off-by: Bastien Nocera <hadess@hadess.net>
11 years agotests: quvi: Sprinkle with quvi_ok calls
Toni Gundogdu [Tue, 25 Jun 2013 12:23:08 +0000 (25 15:23 +0300)]
tests: quvi: Sprinkle with quvi_ok calls

To confirm that `quvi_ok' functions as expected.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoRemove unused net/def.h
Toni Gundogdu [Tue, 25 Jun 2013 10:10:28 +0000 (25 13:10 +0300)]
Remove unused net/def.h

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__statuscb_with_userdata' into next
Toni Gundogdu [Tue, 25 Jun 2013 09:50:50 +0000 (25 12:50 +0300)]
Merge branch 'tg/next__statuscb_with_userdata' into next

11 years agoexamples: examples_status: Add user_data parameter
Toni Gundogdu [Tue, 25 Jun 2013 09:50:04 +0000 (25 12:50 +0300)]
examples: examples_status: Add user_data parameter

Other:
* Rename parameters

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests: Add test_scan_userdata
Toni Gundogdu [Tue, 25 Jun 2013 09:47:41 +0000 (25 12:47 +0300)]
tests: Add test_scan_userdata

This testcase will serve as a userdata-with-status-callback -test. It
could have been any other network-dependent unit of the testsuite.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agolibconvenience_net: Pass userdata with status callback
Toni Gundogdu [Tue, 25 Jun 2013 09:45:04 +0000 (25 12:45 +0300)]
libconvenience_net: Pass userdata with status callback

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoDefine QUVI_OPTION_CALLBACK_STATUS_USERDATA
Toni Gundogdu [Tue, 25 Jun 2013 09:43:53 +0000 (25 12:43 +0300)]
Define QUVI_OPTION_CALLBACK_STATUS_USERDATA

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoRedefine quvi_callback_status with userdata parameter
Toni Gundogdu [Tue, 25 Jun 2013 09:43:12 +0000 (25 12:43 +0300)]
Redefine quvi_callback_status with userdata parameter

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoquvi_set: Add support for QUVI_OPTION_CALLBACK_STATUS_USERDATA
Toni Gundogdu [Tue, 25 Jun 2013 09:42:35 +0000 (25 12:42 +0300)]
quvi_set: Add support for QUVI_OPTION_CALLBACK_STATUS_USERDATA

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years ago_quvi_s: Add userdata property for "status" callback
Toni Gundogdu [Tue, 25 Jun 2013 09:41:44 +0000 (25 12:41 +0300)]
_quvi_s: Add userdata property for "status" callback

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__add__quvi_errcode' into next
Toni Gundogdu [Tue, 25 Jun 2013 09:26:16 +0000 (25 12:26 +0300)]
Merge branch 'tg/next__add__quvi_errcode' into next

11 years agoexamples: supports: chk_support: Update to use quvi_errcode
Toni Gundogdu [Tue, 25 Jun 2013 09:18:09 +0000 (25 12:18 +0300)]
examples: supports: chk_support: Update to use quvi_errcode

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoexamples: examples_exit_if_error: Use quvi_errcode
Toni Gundogdu [Tue, 25 Jun 2013 09:17:11 +0000 (25 12:17 +0300)]
examples: examples_exit_if_error: Use quvi_errcode

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests: Use quvi_errcode instead of QUVI_INFO_ERROR_CODE
Toni Gundogdu [Tue, 25 Jun 2013 09:16:05 +0000 (25 12:16 +0300)]
tests: Use quvi_errcode instead of QUVI_INFO_ERROR_CODE

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests: libconvenience_test: Remove qerr function
Toni Gundogdu [Tue, 25 Jun 2013 09:15:45 +0000 (25 12:15 +0300)]
tests: libconvenience_test: Remove qerr function

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoAPI: quvi_get: Remove QUVI_INFO_ERROR_CODE support
Toni Gundogdu [Tue, 25 Jun 2013 09:09:17 +0000 (25 12:09 +0300)]
API: quvi_get: Remove QUVI_INFO_ERROR_CODE support

Set the q->status.rc which was previously removed in aa7772f0f8, making
the `quvi_get' secure to use again.  The API now provides the
`quvi_errcode' to query the last library error code.

See also:
  * e508f1ba3f

Other:
  * Remove the _CURRENTLY_UNUSED blocks

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoAPI: Add quvi_errcode
Toni Gundogdu [Tue, 25 Jun 2013 09:01:28 +0000 (25 12:01 +0300)]
API: Add quvi_errcode

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years ago_set: QUVI_OPTION_USER_AGENT: Use gchar instead of char
Toni Gundogdu [Tue, 25 Jun 2013 09:05:22 +0000 (25 12:05 +0300)]
_set: QUVI_OPTION_USER_AGENT: Use gchar instead of char

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years ago_media_get: Make const QuviMediaProperty param
Toni Gundogdu [Tue, 25 Jun 2013 09:04:19 +0000 (25 12:04 +0300)]
_media_get: Make const QuviMediaProperty param

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotest_playlist_core: Update expected title values
Toni Gundogdu [Tue, 25 Jun 2013 08:50:38 +0000 (25 11:50 +0300)]
test_playlist_core: Update expected title values

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotest_goto_url: Use another URL
Toni Gundogdu [Tue, 25 Jun 2013 08:35:09 +0000 (25 11:35 +0300)]
test_goto_url: Use another URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests: Do not invoke gtester-report
Toni Gundogdu [Tue, 4 Jun 2013 15:17:19 +0000 (4 18:17 +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>
11 years agoREADME: Add liblua 5.1 note for Debian Wheezy
Toni Gundogdu [Tue, 4 Jun 2013 13:28:07 +0000 (4 16:28 +0300)]
README: Add liblua 5.1 note for Debian Wheezy

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

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoREADME: Requirements: Add aptitude commands
Toni Gundogdu [Mon, 20 May 2013 10:56:55 +0000 (20 13:56 +0300)]
README: Requirements: Add aptitude commands

11 years agogen-news.sh: Do not print release author
Toni Gundogdu [Sun, 19 May 2013 14:05:31 +0000 (19 17:05 +0300)]
gen-news.sh: Do not print release author

Trivial information. Release date matters.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__fix_tests' into next
Toni Gundogdu [Sun, 19 May 2013 18:37:38 +0000 (19 21:37 +0300)]
Merge branch 'tg/next__fix_tests' into next

11 years agotests: test_resolve_nodst: Update URL
Toni Gundogdu [Sun, 19 May 2013 18:33:39 +0000 (19 21:33 +0300)]
tests: test_resolve_nodst: Update URL

The previous URL now redirects to a new location.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests: Comment out test_resolve_3
Toni Gundogdu [Sun, 19 May 2013 18:31:56 +0000 (19 21:31 +0300)]
tests: Comment out test_resolve_3

The URL has been disabled by the shortening service.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotests: playlist: Update URLs
Toni Gundogdu [Sun, 19 May 2013 18:26:34 +0000 (19 21:26 +0300)]
tests: playlist: Update URLs

* youtube: Use an actual playlist URL
* soundcloud: Use a new URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomisc/scan_scripts.c: Make show_dir a static variable
Toni Gundogdu [Mon, 13 May 2013 11:42:31 +0000 (13 14:42 +0300)]
misc/scan_scripts.c: Make show_dir a static variable

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agomisc/scan_scripts.c: Make scripts_dir a static variable
Toni Gundogdu [Mon, 13 May 2013 11:40:36 +0000 (13 14:40 +0300)]
misc/scan_scripts.c: Make scripts_dir a static variable

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next__extend_LIBQUVI_SCRIPTS_DIR' into next
Toni Gundogdu [Mon, 13 May 2013 11:33:31 +0000 (13 14:33 +0300)]
Merge branch 'tg/next__extend_LIBQUVI_SCRIPTS_DIR' into next

11 years agoDOC: Add LIBQUVI_EXCLUSIVE_SCRIPTS_DIR
Toni Gundogdu [Mon, 13 May 2013 11:19:27 +0000 (13 14:19 +0300)]
DOC: Add LIBQUVI_EXCLUSIVE_SCRIPTS_DIR

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoAdd support for LIBQUVI_EXCLUSIVE_SCRIPTS_DIR
Toni Gundogdu [Mon, 13 May 2013 11:05:53 +0000 (13 14:05 +0300)]
Add support for LIBQUVI_EXCLUSIVE_SCRIPTS_DIR

See the libquvi.3.txt for the full description.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoRemove "excl." from the comment
Toni Gundogdu [Mon, 13 May 2013 10:48:06 +0000 (13 13:48 +0300)]
Remove "excl." from the comment

As this is a remnant of 0.4 and would suggest that LIBQUVI_SCRIPTS_DIR
value would be used "exclusively", e.g. if set, then only those paths
would be checked for the scripts.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agotest_scan_short: Update test URL
Toni Gundogdu [Mon, 13 May 2013 09:04:24 +0000 (13 12:04 +0300)]
test_scan_short: Update test URL

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: DOC: LIBQUVI_SCRIPTS_VERBOSE env. variable name
Toni Gundogdu [Thu, 9 May 2013 07:27:13 +0000 (9 10:27 +0300)]
FIX: DOC: LIBQUVI_SCRIPTS_VERBOSE env. variable name

LIBQUVI_VERBOSE_SCRIPTS is an an invalid name of the variable. The
quvi/debug module checks for LIBQUVI_SCRIPTS_VERBOSE.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: DOC: Remove LIBQUVI_VERBOSE_SCRIPTS
Toni Gundogdu [Wed, 8 May 2013 11:35:17 +0000 (8 14:35 +0300)]
FIX: DOC: Remove LIBQUVI_VERBOSE_SCRIPTS

LIBQUVI_VERBOSE_SCRIPTS is an an invalid name of the variable. The
'quvi/debug' module checks for LIBQUVI_SCRIPTS_VERBOSE.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agogen-news.sh: Do not print commits with >1 one parent
Toni Gundogdu [Tue, 16 Apr 2013 16:28:53 +0000 (16 19:28 +0300)]
gen-news.sh: Do not print commits with >1 one parent

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next/1.0' into nextv0.9.0
Toni Gundogdu [Sun, 14 Apr 2013 14:03:51 +0000 (14 17:03 +0300)]
Merge branch 'tg/next/1.0' into next

Conflicts:
configure.ac

11 years agoFIX: 'copt' is used uninitialized whenever switch default is taken
Toni Gundogdu [Sun, 7 Apr 2013 13:11:55 +0000 (7 16:11 +0300)]
FIX: 'copt' is used uninitialized whenever switch default is taken

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoFIX: quvi_subtitle_select: If lang count is zero
Toni Gundogdu [Thu, 28 Mar 2013 10:55:37 +0000 (28 12:55 +0200)]
FIX: quvi_subtitle_select: If lang count is zero

_default:
  If the support script failed to return any subtitles for the media,
  then return NULL.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoMerge branch 'tg/next/1.0__asciidoc.conf' into tg/next/1.0
Toni Gundogdu [Mon, 25 Mar 2013 21:42:33 +0000 (25 23:42 +0200)]
Merge branch 'tg/next/1.0__asciidoc.conf' into tg/next/1.0

11 years agoman7: quvi-object.7.txt: Revise for asciidoc.conf
Toni Gundogdu [Mon, 25 Mar 2013 21:34:49 +0000 (25 23:34 +0200)]
man7: quvi-object.7.txt: Revise for asciidoc.conf

* Use linkman macro from asciidoc.conf
* Include footer.txt

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
11 years agoman7: Makefile.am: Use ASCIIDOC_OPTS with a2x
Toni Gundogdu [Mon, 25 Mar 2013 21:34:06 +0000 (25 23:34 +0200)]
man7: Makefile.am: Use ASCIIDOC_OPTS with a2x

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