56 Commits

Author SHA1 Message Date
Justin Maggard
c97d359fe2 * Make Xbox360 support more generic for use with other PlaysForSure clients. 2010-08-05 23:09:11 +00:00
Justin Maggard
291b31f98a * Add basic NLS support, so clients can display localized strings during browsing if it's properly enabled. 2010-07-17 00:47:48 +00:00
Justin Maggard
346ff6e293 * Add M3U/PLS music playlist support. 2010-01-13 21:15:26 +00:00
Justin Maggard
1549254753 * Set database pragma for optimal performance on every DB open. 2009-11-17 19:13:00 +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
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
f7e525019a * Add SRT subtitle support using Samsung's method. 2009-10-15 00:40:27 +00:00
Justin Maggard
b632bf1704 * Use band name for virtual audio containers when it's available. 2009-10-14 03:01:15 +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
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
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
41a6830952 * 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 20:43:36 +00:00
Justin Maggard
72309b1c2e * Missed one spot when changing "type" do "dir_type". 2009-05-27 18:31:09 +00:00
Justin Maggard
b4557c10c4 * Follow symlinks. Perhaps we'll make this configurable in the future. 2009-05-23 01:20:57 +00:00
Justin Maggard
3e7a3cbfb5 * Add WAV file support. 2009-05-12 01:21:53 +00:00
Justin Maggard
0229ee64ee * ReadyNAS-specific change to remove any leftover scanning flag files when we start. 2009-05-03 18:32:48 +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
dc2d6cf3ef * Add another SQL index after scanning, which should help UPnPSearch performance on very large containers. 2009-04-30 02:31:52 +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
68f7448c0c * Improve indexing to realize a massive scanner speed improvement with very large music libraries -- especially with compilations. 2009-04-17 10:15:28 +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
e50a0f04ef * Missed case-insensitive collation on title. 2009-04-03 18:23:07 +00:00
Justin Maggard
f57f441360 * SQL query optimizations. Basically don't ask for data we're never going to use. 2009-04-03 16:18:53 +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
9854e35533 * Add Matroska Video (.mkv) support. 2009-03-27 07:39:09 +00:00
Justin Maggard
7372543da9 * Fix issues with duplicate entries in UPnPSearch results.
* Send XBox360 bad bitrate information, since it requires it.
2009-03-27 07:32:41 +00:00
Justin Maggard
6d5ef54c06 * Add .m2t as a valid video file extension. 2009-03-25 08:05:23 +00:00
Justin Maggard
06784a31ca * Initialize some variables. 2009-03-19 21:42:13 +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
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
40a37fbd78 * Fix duplicate ObjectID issue. 2009-03-09 20:52:07 +00:00
Justin Maggard
3be66cf1ca * Add ReadyNAS-specific flag file support. 2009-03-07 01:46:04 +00:00
Justin Maggard
28a7d7aedb * Tweak log level. 2009-03-06 20:40:45 +00:00
Justin Maggard
036b21fb00 * Minor log level changes. 2009-03-06 20:36:53 +00:00
Justin Maggard
a28c0ed53f * Add some more flexible browsing options for music. 2009-03-06 03:21:35 +00:00
Justin Maggard
ab434ba78b * Fix accidental checkin of object ID changes. 2009-03-03 08:46:50 +00:00
Justin Maggard
9eb6f81a64 * Fallback code for duplicate audio/video extensions (.mp4).
* Fix a couple potential very small memory leaks in the scanner.
2009-03-03 08:14:01 +00:00
Justin Maggard
9efb145aea * Fix typo in Video Folders container. 2009-02-26 07:51:19 +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
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
0d3505656d * Fix accidental double-scan from last checkin.
* Add XBox360 compatibility.
2009-02-10 07:41:50 +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
48a742181d * Fix duplicate Object ID issue created by the last change. 2009-02-04 01:02:01 +00:00
Justin Maggard
cc6a00b34d * Fix scanner crash bug if the first entry in a media directory is a file and not a directory. 2009-02-04 00:11:32 +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
7e30949498 * Code cleanup. 2009-01-31 00:25:03 +00:00
Justin Maggard
68ba24f255 * Get rid of unnecessary calls to stat(). 2009-01-30 22:42:15 +00:00