Commit Graph

51 Commits

Author SHA1 Message Date
04e243c85c Add handy functions for timeval manipulations. Obtained from FreeBSD. 2018-01-16 16:49:52 -08:00
50b1a2e289 scanner: Clean up non-destructive rescan
Fix several issues with the non-destructive rescan functionality.
Most of these issues also affected inotify scanning as well.  These
include annoying debug messages, adding album art for files that we
aren't supposed to be scanning anyway, incrementing the UpdateID when no
changes were made to the database, and other smaller issues.
2017-08-23 23:43:42 -07:00
9e534c56fd monitor: Support NFO file changes
Detect when a .nfo file changes, and rescan metadata for the associated
video file.
2017-08-22 15:30:10 -07:00
2b3bdb8373 utils: Move duration formatting to shared function
We'll be using this a few different places.
2017-05-17 11:56:44 -07:00
8f7e760747 utils: Unescape "'" in .nfo files.
Kodi escapes apostrophes when exporting its database to .nfo files.

Fixes: Bug #271 (Handle &apos in .nfo files)
2015-08-03 00:20:45 -07:00
34cb08928c portability: add support for Illumos
This still won't work on older Solaris systems, but modern Illumos
at least should build and run now.
2014-05-14 17:53:25 -07:00
be5f4a50eb Type data pointer variables as uint8_t. 2014-04-25 14:30:38 -07:00
381c4805e6 subtitles: accept smi in addition to srt 2014-04-21 15:44:39 -07:00
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
546b12e1a9 portability: rework inline functions for clang compatibility. 2014-03-07 12:36:50 -08:00
f5ebc22eeb utils: add unescape_tag function
This is added to remove any escape chars from a string.
This will be used in a pending patch, that correctly reads .nfo files that
contain escape chars.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-31 15:33:51 -08:00
bceacccb7b Do not let make_dir fail on EISDIR
Some systems set errno to EISDIR when a directory exists already,
instead of EEXIST.
2013-06-11 19:26:46 +02:00
ba75f275e1 - Check for output truncation in strcatf(). 2013-04-02 23:29:21 +00:00
fa37df8b1f * Add support for TiVo MPEG-TS files. 2012-11-03 09:45:45 +00:00
584258c1f8 * Add support for limiting a media dir to multiple media types. 2012-10-03 07:26:00 +00:00
b15a5d144d * Move SearchCriteria parsing to its own function. 2012-07-28 01:17:30 +00:00
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
cabbd0b1de * Use an asprintf wrapper, to report errors and NULLify the result. 2012-03-14 17:57:21 +00:00
ba7e33a062 * Add support for user-configurable log level settings. 2012-02-14 18:25:39 +00:00
774d8f9f6e * Properly escape double quotes. 2012-02-13 23:07:40 +00:00
ab33ab34bc * Fix false positives in playlist caching optimization when we have duplicate file names in different directories. 2012-02-10 23:35:11 +00:00
84d4a0f3f1 * Improve trimming of quotation marks. 2011-11-19 08:59:32 +00:00
875f0e2351 * Fix some unused result warnings.
* Handle folder art a little differently than file album art.
2011-11-19 08:26:10 +00:00
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
a875a67996 * Fix confusing error messages due to corrupted string after make_dir() failure. (Thanks Wolfram Gloger) 2011-07-18 18:13:25 +00:00
23746a68bf * Introduce a new strcatf() function to help simplify some areas of the code. 2011-05-13 22:10:15 +00:00
9a9270cecf * Fix some issues reported by cppcheck. 2011-05-02 23:50:52 +00:00
88b992bd51 * Escape video tags. 2011-04-21 08:50:44 +00:00
14a0d1ac98 * Don't expose album art images in the content directory.
* Support album art name wildcards.
2011-02-14 23:52:10 +00:00
8e0fcd56f9 * Complete/clarify license information. 2010-11-11 23:48:14 +00:00
b0d5feb2a1 * Detect and ignore recursive symbolic links. 2010-02-23 17:47:17 +00:00
346ff6e293 * Add M3U/PLS music playlist support. 2010-01-13 21:15:26 +00:00
15f258bc1a * Make UPnPSearch case insensitive like it's supposed to be. 2009-11-25 00:03:10 +00:00
902b2105df * Allow the user to specify where to keep the database in the config file. 2009-11-19 03:22:35 +00:00
808fc6f459 * Make UPnPSearch using the "contains" keyword work properly with substring searches. 2009-11-19 02:34:36 +00:00
24ff2a8a1c * Add strstrc() function which helps avoid a couple reads of unitialized memory. 2009-11-12 01:53:40 +00:00
f5b2971a8f * Add 3gpp audio support. 2009-11-10 20:11:50 +00:00
e18cf08880 * Add initial support for 3gp video files.
* Add LPCM to the main SourceProtocolInfo list.
2009-10-21 21:11:57 +00:00
ecec767f17 * Add PCM support, assuming defaults of 44.1K and 2 channels. 2009-10-12 21:07:14 +00:00
99174b50b7 * Check .mov files for video content when scanning. 2009-09-29 19:21:04 +00:00
90dcf17785 * Add Ogg scanning support. 2009-08-07 04:47:35 +00:00
b1f4c35017 * If a new file is noticed by inotify, check if it is cover art for existing files, and update them if so. 2009-07-08 19:20:32 +00:00
a295b448ba * To my surprise, XFS doesn't support dt_type in readdir results, so we need to stat each entry of type DT_UNKNOWN. 2009-06-04 22:32:10 +00:00
2155c25109 * Handle @id in SearchCriteria. 2009-06-02 21:18:22 +00:00
37704b8b8b * Ensure that ends_with() actually tests against the end of the string. 2009-05-28 16:04:14 +00:00
11b208a6e6 * Use glob instead of like, to take advantage of indexes. 2009-04-30 09:51:46 +00:00
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
ac5a37b27a * Get rid of all depenence on libgd, and use libjpeg directly. 2009-03-19 08:06:27 +00:00
7a2e3ae67a * Many changes for TiVo support. It actually [kinda] works. :) 2009-03-13 08:39:37 +00:00
5413646e1c * Downscale album art files to JPEG_TN specs and cache them if we find album art at a larger resolution. 2009-02-15 21:32:48 +00:00