45 Commits

Author SHA1 Message Date
Justin Maggard
9a325e04b0 * Fix up inotify autoconf support. 2011-09-21 21:55:56 +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
e95ab8beef * Fix inotify handling of playlist modifications. (SF bug #3288710) 2011-07-29 22:41:26 +00:00
Justin Maggard
9a9270cecf * Fix some issues reported by cppcheck. 2011-05-02 23:50:52 +00:00
Justin Maggard
88b992bd51 * Escape video tags. 2011-04-21 08:50:44 +00:00
Justin Maggard
a8d204dd0d * Do no add inaccessible directories to the database. (Thanks Ivan Mironov) 2011-04-08 02:16:15 +00:00
Justin Maggard
bbdc5cc070 * Add a missing newline for one log message. 2011-04-04 22:20:39 +00:00
Justin Maggard
f939dd924d * Properly scan newly created directory symlinks. 2011-02-18 23:13:48 +00:00
Justin Maggard
f05509eaf9 * Fix copy/paste error. 2010-12-25 18:00:40 +00:00
Justin Maggard
17ec930fa1 * Detect new or changed symlinks in addition to regular files. 2010-12-21 00:17:27 +00:00
Justin Maggard
8e0fcd56f9 * Complete/clarify license information. 2010-11-11 23:48:14 +00:00
Justin Maggard
263b93fb92 * Break out earlier if we see a CLOSE_WRITE, but the file hasn't changed. 2010-09-28 07:59:11 +00:00
Justin Maggard
6b1ae89af6 * Skip hidden entries when scanning newly found directories. 2010-06-03 21:56:53 +00:00
Justin Maggard
346ff6e293 * Add M3U/PLS music playlist support. 2010-01-13 21:15:26 +00:00
Justin Maggard
953142080c * Missed one place for the recent db_path change. (Thanks stedy6!) 2009-11-19 18:34:42 +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
6738b8a722 * Fix bug from the previous checkin. 2009-11-02 19:47:57 +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
0f0d22c2f5 * Update database entries if inotify catches a file CLOSE_WRITE and the modify time is newer than the last recorded time in the database. 2009-10-23 02:38:42 +00:00
Justin Maggard
590f0761f4 * Fix Samba copy errors with inotify enabled. 2009-10-23 01:02:40 +00:00
Justin Maggard
f7e525019a * Add SRT subtitle support using Samsung's method. 2009-10-15 00:40:27 +00:00
Justin Maggard
ba29e35bcc * Clean up after some memory allocations before exit so valgrind is happy.
* Fork off the scanner process instead of doing it in another thread, so if libavformat leaks memory it will be cleaned up once scanning is finished.
2009-10-03 02:08:59 +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
1c7c19f796 * Read configuration to determine which inotify header to use. 2009-06-26 19:07:15 +00:00
Justin Maggard
7071e79f3f * Don't try reading info from a new file if that new file has no size. 2009-06-17 19:25:12 +00:00
Justin Maggard
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
Justin Maggard
567558f54b * Logging is more helpful when you log which files an error occured on... 2009-05-23 02:26:45 +00:00
Justin Maggard
2e27960e10 * Fix another inotify error condition when copying files to the root of the content directory. 2009-05-11 18:31:48 +00:00
Justin Maggard
fed843a982 * Handle new directory creation in the root container. 2009-05-11 18:11:07 +00:00
Justin Maggard
e79fbade4b * Remove unused structure member. 2009-04-30 09:50:22 +00:00
Justin Maggard
c4ca6527f0 * Invalidate the scanner cache when an inotify deletion takes place. 2009-04-21 02:50:45 +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
608f3f902c * Add file filters to inotify scanner. Now, for example, an audio-only directory should not have image or video files put in the database by the inotify auto-scanner. 2009-04-02 02:40:35 +00:00
Justin Maggard
c4d180f80d * Some image scaling tweaks for different platforms. 2009-03-20 19:33:34 +00:00
Justin Maggard
06784a31ca * Initialize some variables. 2009-03-19 21:42:13 +00:00
Justin Maggard
935225e1a3 * Reduce the priority of scanner and inotify threads so they don't preempt serving media. 2009-03-18 19:28:21 +00:00
Justin Maggard
e6aa386f77 * Remove debug code which was accidentally left in. 2009-03-03 00:14:12 +00:00
Justin Maggard
e3340c0839 * Handle inotify move events.
* Enable minimal logging to a file by default.
2009-03-03 00:13:05 +00:00
Justin Maggard
10136482af * If a file deletion empties a container, remove the container as well. 2009-02-23 02:57:00 +00:00
Justin Maggard
45f294b404 * Use our own logging mechanism instead of syslog/printf. 2009-02-20 10:21:23 +00:00
Justin Maggard
14547e2266 * Fix inotify detection in the root media directory.
* Hold off creating inotify watches until the initial file scan is complete.
* Use a thread instead of fork when scanning.
2009-02-17 08:25:15 +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
8614319bbe * Just moving some files around. 2009-02-11 19:50:40 +00:00
Justin Maggard
8de8a8dc50 * Use our own inotify headers if the system does not have them
* Don't rely on signal.h to include linux/types.h (for __u32 definition)
2009-02-11 08:44:24 +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