42 Commits

Author SHA1 Message Date
Justin Maggard
0845c2193b tivo: Fix title and description escaping. 2015-04-08 23:38:38 -07:00
Justin Maggard
331d484555 utils: add noalloc flag to modifyString()
This should make it more straightforward for code analyzers to
tell if the function is going to allocate memory.
2014-04-18 15:18:44 -07:00
Justin Maggard
45cf9208fb Declare printf-like attributes for strcatf() and xasprintf()
Declare printf-like attributes for strcatf() and xasprintf(), and
clean up errors found by the compile after doing so.
2014-04-10 18:18:28 -07:00
Justin Maggard
d248cd3a43 Fix conflicting definition for unescape_tag(). 2014-01-31 15:46:48 -08:00
Justin Maggard
cd20aa0b24 - SQL escape user input in TiVo command processing. 2013-04-03 00:26:54 +00:00
Justin Maggard
fa37df8b1f * Add support for TiVo MPEG-TS files. 2012-11-03 09:45:45 +00:00
Justin Maggard
b15a5d144d * Move SearchCriteria parsing to its own function. 2012-07-28 01:17:30 +00:00
Justin Maggard
61fbce18ba * Replace sqlite_int64 with int64_t in many places, to better allow for the possibility of other databases. (Thanks Douglas Carmichael) 2012-06-29 23:14:27 +00:00
Justin Maggard
cabbd0b1de * Use an asprintf wrapper, to report errors and NULLify the result. 2012-03-14 17:57:21 +00:00
Justin Maggard
773e1f6566 * Add support for other operating systems (kFreeBSD, FreeBSD, and OSX for now).
* Switch to autoconf from genconfig.sh.
2011-09-16 23:39:58 +00:00
Justin Maggard
741d4f7e99 * Fix up some minor quibbles from cppcheck. 2011-07-01 18:18:33 +00:00
Justin Maggard
750e3fb70b * Fix a bug where paging up to the top of a TiVo music list would yield a mostly empty page. 2011-06-29 08:31:14 +00:00
Justin Maggard
14cc1d6b07 * Fix a crash bug introduced in the last commit. (Thanks sdhank) 2011-06-26 20:04:05 +00:00
Justin Maggard
23746a68bf * Introduce a new strcatf() function to help simplify some areas of the code. 2011-05-13 22:10:15 +00:00
Justin Maggard
7068d2fda4 * Improve TiVo error handling. 2011-04-28 21:04:24 +00:00
Justin Maggard
1949383062 * Fix a potential SQL syntax error during TiVo browsing. 2011-04-28 04:51:12 +00:00
Justin Maggard
88b992bd51 * Escape video tags. 2011-04-21 08:50:44 +00:00
Justin Maggard
25e7cb305d * Order TiVo music by disc then track then title. 2011-04-06 21:55:35 +00:00
Justin Maggard
8e0fcd56f9 * Complete/clarify license information. 2010-11-11 23:48:14 +00:00
Justin Maggard
8e2d9a72e6 * If TiVo requests a negative ItemCount with no starting point, that means go to the end of the list. 2010-10-15 21:51:33 +00:00
Justin Maggard
6ec5255d60 * Properly escape TiVo folder names in one more place. 2010-10-05 08:13:54 +00:00
Justin Maggard
237a3303f5 * There are actually 3 items on the main list, not 2. 2010-09-29 07:46:10 +00:00
Justin Maggard
a80aca73c4 * Have the C library figure out if DST is in effect or not when doing time conversions. 2010-09-28 08:23:05 +00:00
Justin Maggard
19568dd413 * Fix a premature free when parsing TiVo commands. 2010-07-23 21:40:11 +00:00
Justin Maggard
c779eab4de * Optimize JPEG scaling by downscaling as much as possible during decompression. 2010-06-08 17:34:29 +00:00
Justin Maggard
100ba2835c * Send the comment field as program description when sharing TiVo items.
* Separate out Title from EpisodeTitle.
2010-06-03 22:00:48 +00:00
Justin Maggard
58ecfd6380 * Implement and use new sql_get_int_field() function to simplify getting integers from the database. 2009-11-02 19:21:38 +00:00
Justin Maggard
0d069effd9 * Fix some minor 64-bit compilation issues. 2009-07-17 22:54:31 +00:00
Justin Maggard
72645807b1 * Explicitly sort TiVo music by track then title, because TiVo will never ask us to sort by track. 2009-06-26 19:08:09 +00:00
Justin Maggard
226cf8bb66 * Some SQL optimizations. Noticeable mostly on very slow systems with very large media libraries.
* Add basic DLNA/UPnP-AV SortCriteria support.
2009-04-30 10:03:45 +00:00
Justin Maggard
7315d001a5 * Deal with unhandled filter arguments more gracefully. 2009-04-30 06:32:28 +00:00
Justin Maggard
6d94a96543 * Fix TiVo video support issue which caused the TiVo to reboot.
* Begin changes to hopefully improve TiVo browsing performance.
2009-04-30 06:14:11 +00:00
Justin Maggard
223df2111b * Fix some issues with ampersand escaping.
* Improve image date/camera metadata handling by not storing a date if none exists.
* Add preliminary TiVo video serving support.
2009-04-16 19:20:16 +00:00
Justin Maggard
2e3a4f1dde * Implement the QueryItem command.
* Add error handling/reporting for unknown commands.
2009-03-30 07:43:10 +00:00
Justin Maggard
c4d180f80d * Some image scaling tweaks for different platforms. 2009-03-20 19:33:34 +00:00
Justin Maggard
ac5a37b27a * Get rid of all depenence on libgd, and use libjpeg directly. 2009-03-19 08:06:27 +00:00
Justin Maggard
58862a115f * Handle ampersands properly on TiVo. 2009-03-17 08:48:12 +00:00
Justin Maggard
a62cceda99 * Add full support for SortOrder and Filter parameters from TiVo. 2009-03-16 06:59:27 +00:00
Justin Maggard
c5ba967f47 * Fix some issues with TiVo support. It should be pretty functional at this point if you stick to basic operations. 2009-03-14 23:29:13 +00:00
Justin Maggard
7a2e3ae67a * Many changes for TiVo support. It actually [kinda] works. :) 2009-03-13 08:39:37 +00:00
Justin Maggard
b74e2d33f3 * Use internal music metadata functions intead of taglib.
1) Taglib does not support MP4 or WMA/ASF without hacking it in there.
  2) Taglib is C++, so it's nice to remove that dependency.
* Use embedded album art where available.
2009-02-25 21:16:51 +00:00
Justin Maggard
2da2f6d4a1 * Add some preliminary code for the eventual possibility of TiVo support. 2009-02-23 23:10:27 +00:00