46 Commits

Author SHA1 Message Date
Justin Maggard 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
Justin Maggard 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
Justin Maggard be5f4a50eb Type data pointer variables as uint8_t. 2014-04-25 14:30:38 -07:00
Justin Maggard e2cebb68e1 albumart: use a separate variable for temporary pointer storage
Re-using the same one confuses some static code analyzers, and
is a bit less readable.
2014-04-18 15:36:38 -07:00
Justin Maggard 5bbd7b5443 albumart: remove logically dead code 2014-04-11 12:36:20 -07:00
Catalin Patulea 3a57744735 Add printf attribute to log_err/DPRINTF and fix a few warnings
Modified to not use %z for portability reasons.
2014-04-10 18:57:30 -07:00
Justin Maggard d492b43ef8 Fix various potential illegal access and memory leaks in error conditions. 2014-04-07 11:20:19 -07:00
Justin Maggard 98ebb0f5d5 albumart: code simplification 2014-03-17 11:01:36 -07:00
Justin Maggard 9eec5b8cac Fix possible memory leak in error conditions when saving resized album art. 2014-01-16 16:07:53 -08:00
Justin Maggard db1b9dff32 * Check for hidden album art files. 2013-01-19 01:16:19 +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 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
Justin Maggard c5bb5c84b3 * Add image rotation support during resize. (mostly useful for TiVo) 2012-01-22 00:33:55 +00:00
Justin Maggard c38eb01179 * Remove a bad free() I missed during the last round of changes. 2011-11-29 00:15:08 +00:00
Justin Maggard 875f0e2351 * Fix some unused result warnings.
* Handle folder art a little differently than file album art.
2011-11-19 08:26:10 +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 cdc93f680f * Add thumbnail support on folders, since at least XBMC supports it. 2011-08-05 00:31:20 +00:00
Justin Maggard 9a9270cecf * Fix some issues reported by cppcheck. 2011-05-02 23:50:52 +00:00
Justin Maggard 14a0d1ac98 * Don't expose album art images in the content directory.
* Support album art name wildcards.
2011-02-14 23:52:10 +00:00
Justin Maggard 8e0fcd56f9 * Complete/clarify license information. 2010-11-11 23:48:14 +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 20bb1db8a7 * Fix bug where we can consider good embedded album art to be bad. 2010-06-03 22:10:21 +00:00
Justin Maggard 902b2105df * Allow the user to specify where to keep the database in the config file. 2009-11-19 03:22:35 +00:00
Justin Maggard c8fe23d838 * Rework the sql_exec function to use format arguments, to simplfy the code.
* Don't set the DB version until after the scan completes.  This way, if only a partial scan has been done, a full scan will be initiated the next time minidlna is started.
2009-11-04 01:38:14 +00:00
Justin Maggard e777a93a5e * Remove ALBUM_ART_PN from the database, since it's forced to be JPEG_TN now.
* Add a DISC entry to the database, so when the client sorts a multi-disc audio album by track, we can sort by disc first.
2009-10-14 01:14:10 +00:00
Justin Maggard 35b8bf2f09 * Don't bother analyzing a cover art jpg multiple times, once for each file in the directory. If it exists, just use it. 2009-07-10 01:54:08 +00:00
Justin Maggard 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
Justin Maggard 66ce695272 * Look for file-specific cover art first (especially useful for video files). 2009-06-02 21:17:40 +00:00
Justin Maggard cb61823ecc * Always store cached JPEG album art with a .jpg extension. 2009-05-11 00:56:04 +00:00
Justin Maggard 35352221b2 * Don't bother checking embedded art if the last hash matches, and it was invalid. 2009-05-01 08:01:40 +00:00
Justin Maggard 7f01aa7080 * Fix a couple potential memory leaks in album art error handling. 2009-04-28 21:13:25 +00:00
Justin Maggard 6fc880a25d * Fix issues with album art linking if the link target is in a different directory than the previous file. 2009-04-18 02:23:06 +00:00
Justin Maggard 0303f15fa4 * Fix segfault when encountering a certain type of corrupted embedded JPEG image on audio files. 2009-04-10 22:25:04 +00:00
Justin Maggard ea70f079f2 * Improve escaping of special characters in returned XML. Should close SF bug ID 2717054. 2009-04-01 22:41:27 +00:00
Justin Maggard 0a415861e7 * Fix bug with bad album art. 2009-03-27 22:22:23 +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 06fb334cad * Handle the case where we have a embedded album art image size, but no data. 2009-03-18 17:34:30 +00:00
Justin Maggard 7a2e3ae67a * Many changes for TiVo support. It actually [kinda] works. :) 2009-03-13 08:39:37 +00:00
Justin Maggard 0f4212117c * Fix a couple bugs with embedded album art error handling. 2009-03-07 23:12:45 +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 69965b876e * Thanks to Steve Hollis for pointing out that GD's default JPEG quality setting is pretty bad for downscaling thumbnails. 2009-02-17 22:22:35 +00:00
Justin Maggard 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
Justin Maggard 42be3989bf * Allow users to specify the file names and order that the Album Art scanner will search for.
* Lots of changes for inotify support.
2009-02-10 03:10:09 +00:00
Justin Maggard a1d385241d * Be more flexible when it comes to album art resolutions. This is really just a recommendation and not an absolute requirement for DLNA compliance. 2009-02-04 02:25:24 +00:00
Justin Maggard 0324818d86 * Fix some possible memory leaks.
* Pay attention to the specified port number.
* Add support for multiple media directories, and allow content filtering on the directories.
2009-02-03 03:36:59 +00:00
Justin Maggard 8c3ebe1259 * Forgot to add some new files... 2009-01-30 08:52:48 +00:00