summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Don't open stderr on WindowsHEADtestingremote_catalogmasterPaul Arthur2013-11-051-8/+7
| | | | According to GH #80 Windows can't handle this.
* Fix incorrect variable usage in rating cachingPaul Arthur2013-11-051-1/+1
|
* Get rid of popup on cover artsAfterster2013-11-051-7/+0
|
* Add Subsonic APIAfterster2013-11-052-0/+1484
|
* Add paging on Tag::get_tag_objectsAfterster2013-11-051-8/+14
|
* Add paging to Stats::get_top and Stats::get_newest. Add Stats::get_recentAfterster2013-11-051-26/+64
|
* Add paging on searchesAfterster2013-11-051-20/+11
|
* Add Rating::get_highestAfterster2013-11-051-31/+54
|
* Add Playlist::get_total_duration and Playlist::delete_track_numberAfterster2013-11-051-62/+69
|
* Add Catalog::get_artistsAfterster2013-11-051-45/+51
|
* Add total duration to albumsAfterster2013-11-051-14/+14
|
* Increase supported sessionID lengthPaul Arthur2013-10-301-0/+19
| | | | Should fix GH #74
* Clean up UpdatePaul Arthur2013-10-301-93/+29
| | | | Remove some cruft, update some comments.
* GH #49 - Add support for aacp transcodingPaul Arthur2013-09-201-0/+3
| | | | Seems harmless enough.
* Enable a size for HTML5 Player sized albumartStephen Shkardoon2013-09-201-1/+1
|
* javascript change listener prevented the changing of any album/artist drop ↵John Moore2013-07-221-2/+0
| | | | downs from actually changing
* Be smarter about getting random albums with artPaul Arthur2013-07-222-32/+19
| | | | | | | | | Just ask the database for what we want instead of asking for more results, sifting through them, and hoping that we get enough qualifying results to fulfill the request. Also drop Random::album(), since it's duplicate code and it makes more sense for this to live in Album.
* Don't call errorInfo() if we don't have an objectPaul Arthur2013-07-091-1/+3
|
* Drop sort in Query::_serialize()Paul Arthur2013-06-161-1/+0
| | | | On second thought, preserving the order might be important.
* Add naive compaction for Query serializationapiPaul Arthur2013-06-121-2/+55
| | | | | | | | | | | | | | | | | | | | | Can be very efficient with the right input, but probably has degenerative cases where it increases the size. Worst-case size increase is one character per ID in the result set, so it shouldn't be an issue. String lengths for a large search result that was unstorable before: serialize: 1991874 json_encode: 756249 cooked: 244 And some with more discontinuity: serialize: 1772238 json_encode: 674751 cooked: 37950 serialize: 164942 json_encode: 65771 cooked: 25369
* Abstract serialization within QueryPaul Arthur2013-06-121-2/+10
|
* Parameterise queries in QueryPaul Arthur2013-06-121-28/+28
|
* Don't cache browses for the APIPaul Arthur2013-06-122-18/+27
| | | | | The API will never request it again, so caching the query just wastes space.
* Set Encoding parameter in ASX filesthinca2013-06-041-0/+1
| | | | http://msdn.microsoft.com/library/windows/desktop/dd563989%28v=vs.85%29.aspx
* Cosmetic cleanup of the ASX outputPaul Arthur2013-06-041-3/+3
|
* Scrub output fields in ASX playlistsPaul Arthur2013-06-041-4/+5
| | | | Closes GH #35
* Drop validateEmailPaul Arthur2013-05-301-0/+9
| | | | | PHPMailer will validate the format of the address, and that's all we really want.
* Onward to the futurePaul Arthur2013-05-301-1/+1
|
* Finalise 3.6-alpha63.6-alpha6Paul Arthur2013-05-301-1/+1
|
* Clean up Core::autoload()Paul Arthur2013-05-301-11/+11
|
* Add and use Core::is_readable()Paul Arthur2013-05-302-23/+45
| | | | | | | | bea34c42 fixed one use of is_readable, but Windows users encountering this issue would still be affected in other cases. This commit fixes all of the important is_readable calls within Ampache; I'm not going to hack this into external modules, so if they're broken people will have to live with it.
* Work on remote cleanPaul Arthur2013-05-301-28/+54
|
* Rating::build_cache: cache the correct valuethinca2013-05-301-2/+2
| | | | | The structure of the temporary $ratings array changed a while ago, but we were still trying to pull the global rating from the old structure.
* Use the correct operator for 'before date' rulesthinca2013-05-301-1/+1
|
* Register session_write_close shutdown functionPaul Arthur2013-05-301-0/+4
| | | | | | | | | | | | | | | | http://php.net/manual/en/function.session-set-save-handler.php: When using objects as session save handlers, it is important to register the shutdown function with PHP to avoid unexpected side-effects from the way PHP internally destroys objects on shutdown and may prevent the write and close from being called. Typically you should register 'session_write_close' using the register_shutdown_function() function. We're not using objects as session save handlers, but some people (notably, Synology users) seem to be encountering a similar issue related to the timing of object destruction. Closing the session earlier in the shutdown process is a perfectly sane thing to do, so let's do it.
* Clean up the logic in install_insert_dbPaul Arthur2013-05-281-18/+15
| | | | Check the things in an order that makes sense and minimise duplication.
* Change Dba::error() and audit its callersPaul Arthur2013-05-273-13/+15
| | | | | Will hopefully return more useful information during installation, which is the only place it's actually used and useful.
* Cosmetics: remove tabsPaul Arthur2013-05-271-3/+3
|
* install: Fix GRANT for non-localhost serversPaul Arthur2013-05-271-5/+5
| | | | | | | | | If we're not connecting locally, tell MySQL to allow our new user to connect from any host. Previously we restricted them to connecting from the database host, which is clearly wrong. It would be slightly better to properly restrict it to the Ampache host, but let's not overcomplicate the install and confuse the users.
* install: Add support for MySQL socketsPaul Arthur2013-05-271-3/+7
| | | | | If we're using a socket, grant privileges to user@localhost, not user@socketname.
* Dba: Add support for MySQL socketsrandomessence2013-05-271-1/+6
|
* Unify debugging output to a single filePaul Arthur2013-05-272-26/+26
| | | | | | Splitting some things off to ampache-catalog doesn't really make sense to me and makes it harder to see the entire process during catalog operations.
* Set the memory_limit to at least 32MPaul Arthur2013-05-151-2/+4
| | | | '32' != '32M'
* Don't reset the PHP memory_limit when it's -1Paul Arthur2013-05-151-1/+6
| | | | | This function is never supposed to lower the limit, and -1 is a flag value for no limit.
* Clean up Song->_get_info() and constructorPaul Arthur2013-05-131-21/+21
| | | | Return false and unset the id if the song isn't in the database.
* Increase the default memory limit to 32Paul Arthur2013-05-131-2/+2
| | | | This matches what the config files claims is the default.
* Fix Rating::gc()Paul Arthur2013-05-131-1/+1
| | | | | | The join was incorrect, sometimes resulting in loss of ratings. Fixes GH #22
* Make Catalog::count_songs use the correct variablePaul Arthur2013-05-131-1/+1
| | | | Fixes GH#23
* Add a working check for database existencePaul Arthur2013-05-131-2/+1
| | | | Fixes GH #21
* More cleanup of install, add DB port optionPaul Arthur2013-05-131-82/+50
|