summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Rework transcodingPaul Arthur2013-01-236-161/+111
| | | | | | | | Remove some of the roundabout complexity that had built up. Push people toward using a single, flexible tool for most of their transcoding needs. Increase backend and configuration flexibility to support user-requested format changes (e.g. for an HTML5 player); this functionality is not yet exposed.
* Clean up the bitrate calculationPaul Arthur2013-01-231-22/+30
| | | | Dynamic downsampling, I suppose.
* Tear the offset/eof/size crap out of StreamPaul Arthur2013-01-231-28/+2
| | | | | | Now that playback doesn't pretend it's supported, we don't need the fragile hacks to support guessing the content size or 'seeking' within a transcoded stream.
* Mess around with rating searchPaul Arthur2013-01-231-26/+10
| | | | | Simplify the rating search and drop the ugly subquery; make it a straight query against the current user's ratings.
* Mess around with ratingsPaul Arthur2013-01-232-17/+12
| | | | | | | | | | Drop the public variables from the rating class; everyone should use the getters. Add the ability for themes and applications to distinguish between a user's actual rating and the global average rating; in the web interface the average shows up if a user hasn't rated something but at least one other user has.
* Change the gc on stream sessionsPaul Arthur2013-01-151-19/+2
| | | | | | It's a little suspect to automatically delete them just because another was used. Waiting for them to expire will get rid of them plenty quick, with less chance for weird issues.
* Fix regression in generation of xspf playlistsPaul Arthur2013-01-151-2/+7
| | | | When it's a video, add some special sauce.
* Drop unused nusoap libraryPaul Arthur2013-01-151-1/+0
|
* Always output masked passwordFred Thomsen2013-01-151-1/+6
| | | | | Previously, users who didn't have access to modify the password were shown the actual current setting instead of asterisks.
* Make playlist downloads idempotentPaul Arthur2013-01-153-454/+486
| | | | | | | | | | | | | | | | | | | | Should fix the VLC plugin, as well as allow direct use of an Ampache site on Android devices. First, split the Stream class into an instantiable class that does the playlist wrangling and a static class that handles the streaming stuff. How does this work? Well, stream.php does its fancy stuff like gathering the media IDs and clearing the playlist, but instead of generating the playlist file there we use the Stream_Playlist class to store the list of URLs in the database, then redirect to play/index.php to create the actual download (there are some magic playlist types like localplay that don't need to redirect.) The playlist will be cached as long as that stream session is active, so it can be downloaded multiple times and by clients that don't share the browser's cookie cache. Clean up the playlist generation by reducing copypasta.
* Break Localplay->add(), it's been replacedPaul Arthur2013-01-152-10/+4
|
* Rename localplay.abstract.phpPaul Arthur2013-01-152-1/+1
| | | | | The actual class name is localplay_controller, the filename should reflect that.
* localplay: make add_url actually do somethingPaul Arthur2013-01-151-11/+6
|
* Add Stream_URL class for passing them aroundPaul Arthur2013-01-152-0/+85
|
* Cosmetics: correct outdated tmpPlaylist commentPaul Arthur2013-01-151-2/+0
|
* Cosmetics: remove unused variables in StreamPaul Arthur2013-01-141-2/+0
|
* Drop unused static rating, whatever that wasPaul Arthur2012-12-191-9/+0
|
* Add a convenience function to generate an AJAX urlPaul Arthur2012-12-191-1/+9
|
* Use Ajax::action to generate the browse AJAX.Paul Arthur2012-12-191-1/+3
|
* Finalise 3.6-alpha43.6-alpha4Paul Arthur2012-11-271-1/+1
|
* Rip out ugly lyrics codePaul Arthur2012-11-131-89/+0
|
* Cosmetics: fix typoPaul Arthur2012-11-131-1/+1
|
* Switch from print_r to json_encode in debug outputPaul Arthur2012-11-134-5/+4
|
* Clean up remaining direct calls to mysql functionsPaul Arthur2012-11-082-40/+31
| | | | | This makes it theoretically possible to replace Dba with a different implementation somewhat painlessly.
* Clean up check_database, more direct mysql callsPaul Arthur2012-11-082-36/+35
|
* Clean up direct callers of mysql_error()Paul Arthur2012-11-081-9/+8
|
* Cosmetics: clean up spacesPaul Arthur2012-11-081-13/+13
|
* Move check_database_inserted into the Dba classPaul Arthur2012-11-082-23/+24
|
* Move check_database into the Dba classPaul Arthur2012-11-083-26/+21
|
* Fix spurious errors from Catalog::create()Paul Arthur2012-10-181-3/+7
| | | | is_readable is flaky under Windows, opendir should be more accurate.
* Mainly cosmetic cleanup of the catalog update complete messagePaul Arthur2012-10-161-12/+6
|
* Start cleaning up the democratic thing.Paul Arthur2012-10-153-128/+99
| | | | | Whoever wrote the old implementation of get_items suffered from intense fear and hatred of SQL.
* Consistently use 'object_type' in playlist returnsPaul Arthur2012-10-154-7/+17
|
* Finalise 3.6-alpha33.6-alpha3Paul Arthur2012-10-151-1/+1
|
* Add Search->get_random_itemsPaul Arthur2012-10-011-0/+28
|
* Fix inaccurate comment.Paul Arthur2012-10-011-4/+1
|
* Drop support for old passwordsPaul Arthur2012-09-211-55/+2
|
* Some cleanup of the playlist import codePaul Arthur2012-09-211-14/+18
| | | | Global variables are ugly and unnecessary.
* FS#262 - M3U import should be orderedFlorent Fourcot2012-09-211-1/+1
|
* FS#202 - Stats not registered on some songsPaul Arthur2012-09-201-8/+0
| | | | | Removed check from User->update_stats. It looks iffy, is reported to be broken, and everything that calls it has an independent check.
* FS#249 - SQL error for iAmpache clientPaul Arthur2012-09-201-0/+3
| | | | Add a sanity check before we attempt to execute the SQL statement
* Cosmetics: api::url_to_songPaul Arthur2012-09-201-4/+2
|
* Cosmetics: xmlData::songsPaul Arthur2012-09-201-8/+4
|
* Cosmetics: Song::build_cachePaul Arthur2012-09-201-16/+20
|
* FS#260 - Multiple rules result in "Not Enough Data"Paul Arthur2012-09-191-25/+48
| | | | | This should be a more complete fix, and possibly a somewhat more efficient approach.
* FS#260 - Multiple rules result in "Not Enough Data"Paul Arthur2012-09-171-18/+22
| | | | | | This quick fix probably won't interact properly with smart playlists, and it doesn't seem like a very efficient approach. But it's less broken.
* FS#257 - Social comments function not working.Paul Arthur2012-09-171-1/+1
| | | | | make_bool is definitely the wrong way to handle the parameter. This (untested) change might fix the bug.
* Partial fix for ASF tagsPaul Arthur2012-09-061-0/+4
| | | | | | Actually transfer all ASF tags into the asf tag array. I suspect that some things like 'genre' may actually be multivalued, but I don't have any samples to back that up.
* Finalise alpha23.6-alpha2Paul Arthur2012-08-151-1/+1
| | | | I'm tired of seeing alpha1.
* Make a debug message less alarmingPaul Arthur2012-07-241-1/+1
| | | | | | It's expected that reading from sessions will fail after expiry or before login. Remove the word 'error' from the logged message and bump it down a few levels.