1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 02:09:23 +02:00
Commit graph

1583 commits

Author SHA1 Message Date
Afterster
6b55732567 Optional Now Playing filtered by user option 2013-11-09 18:16:45 +01:00
Afterster
11d15a25ef Ignore Subsonic client version 2013-11-09 18:11:46 +01:00
Afterster
ab4b586dc4 All 1.8.0 functions now to 1.7.0 version 2013-11-09 18:11:44 +01:00
Afterster
45b6c0bcf6 Change minimum required version from 1.8.0 to 1.7.0 to fix Ultrasonic client 2013-11-09 18:11:42 +01:00
Afterster
d20e71dd86 Update Subsonic version to 1.10.1 2013-11-09 18:11:39 +01:00
Afterster
7ba39d9c6b Add curl check, JSON format, missing getSong function and better response for few clients 2013-11-09 18:11:34 +01:00
Afterster
74745c84cb Add 'Star' feature on Subsonic API and few error check 2013-11-09 18:11:32 +01:00
Afterster
c901f61bf1 Add user flags on songs, albums, artists
Bug fix rating on stats page (object id conflict)

Bug fix cell alignment when rating disabled
2013-11-09 18:11:30 +01:00
Afterster
8a3d70a9b9 Fix add songs to playlist and playlist deletion (#88) 2013-11-09 15:10:02 +01:00
Afterster
c634d779d3 Only one HTML5 player in the list. Popup or Iframe version according to user setting. 2013-11-09 13:32:54 +01:00
Afterster
0eb6ba2eb6 Move bitrate selection in new function 2013-11-09 13:32:51 +01:00
Afterster
99ad5f7f82 HTML5 player replaced by JPlayer and add an iframed version of the player 2013-11-09 13:32:47 +01:00
Paul Arthur
c6680009ce Don't open stderr on Windows
According to GH #80 Windows can't handle this.
2013-11-05 21:04:08 -05:00
Paul Arthur
786c5ca38f Fix incorrect variable usage in rating caching 2013-11-05 20:40:13 -05:00
Afterster
e0f72082a0 Add Subsonic API 2013-11-05 20:40:13 -05:00
Afterster
76bca9785a Add paging on Tag::get_tag_objects 2013-11-05 20:40:13 -05:00
Afterster
c097a72952 Add paging to Stats::get_top and Stats::get_newest. Add Stats::get_recent 2013-11-05 20:40:13 -05:00
Afterster
1c06376de1 Add paging on searches 2013-11-05 20:40:13 -05:00
Afterster
3abc31adce Add Rating::get_highest 2013-11-05 20:40:13 -05:00
Afterster
d0763961ec Add Playlist::get_total_duration and Playlist::delete_track_number 2013-11-05 20:40:13 -05:00
Afterster
2982365262 Add Catalog::get_artists 2013-11-05 20:40:12 -05:00
Afterster
514197b316 Add total duration to albums 2013-11-05 20:40:12 -05:00
Afterster
e1ea9d76d9 Optional Now Playing filtered by user option 2013-11-01 10:36:36 +01:00
Paul Arthur
a057a9808d Increase supported sessionID length
Should fix GH #74
2013-10-30 21:33:14 -04:00
Paul Arthur
e78dfd6681 Clean up Update
Remove some cruft, update some comments.
2013-10-30 21:11:01 -04:00
Paul Arthur
a589211bb6 GH #49 - Add support for aacp transcoding
Seems harmless enough.
2013-09-20 11:57:47 -04:00
John Moore
a03b53485d fix ajax post logic to include form elements 2013-07-27 17:52:37 -05:00
John Moore
de35a43d54 replace prototype.js with jquery, i think everything is working... 2013-07-26 23:18:39 -05:00
Paul Arthur
c952ca6fa3 Be smarter about getting random albums with art
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.
2013-07-22 16:54:47 -04:00
Paul Arthur
591a0b17c3 Don't call errorInfo() if we don't have an object 2013-07-09 14:33:17 -04:00
Paul Arthur
4118b42f47 Drop sort in Query::_serialize()
On second thought, preserving the order might be important.
2013-06-16 01:00:04 -04:00
Paul Arthur
05009329cf Add naive compaction for Query serialization
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
2013-06-12 13:46:39 -04:00
Paul Arthur
a957ab19cd Abstract serialization within Query 2013-06-12 13:26:03 -04:00
Paul Arthur
778f5b203d Parameterise queries in Query 2013-06-12 13:26:03 -04:00
Paul Arthur
438a2a9023 Don't cache browses for the API
The API will never request it again, so caching the query just wastes
space.
2013-06-12 13:25:57 -04:00
thinca
0391d24438 Set Encoding parameter in ASX files
dd563989%28v=vs.85%29.aspx
2013-06-04 12:23:49 -04:00
Paul Arthur
a90c666801 Cosmetic cleanup of the ASX output 2013-06-04 12:23:13 -04:00
Paul Arthur
d2f3ef1ab9 Scrub output fields in ASX playlists
Closes GH #35
2013-06-04 12:08:08 -04:00
Paul Arthur
96d0d4533c Drop validateEmail
PHPMailer will validate the format of the address, and that's all we
really want.
2013-05-30 18:34:53 -04:00
Paul Arthur
228717d350 Clean up Core::autoload() 2013-05-30 14:57:51 -04:00
Paul Arthur
69dcc79e94 Add and use Core::is_readable()
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.
2013-05-30 14:42:33 -04:00
Paul Arthur
53aff101bf Work on remote clean 2013-05-30 14:34:08 -04:00
thinca
2fa6899f94 Rating::build_cache: cache the correct value
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.
2013-05-30 13:14:24 -04:00
thinca
c394d51581 Use the correct operator for 'before date' rules 2013-05-30 13:04:27 -04:00
Paul Arthur
78d220fbd5 Register session_write_close shutdown function
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.
2013-05-30 12:55:00 -04:00
Paul Arthur
ee85e4d08d Change Dba::error() and audit its callers
Will hopefully return more useful information during installation, which
is the only place it's actually used and useful.
2013-05-27 20:32:02 -04:00
randomessence
c311581b5c Dba: Add support for MySQL sockets 2013-05-27 19:30:18 -04:00
Paul Arthur
f56dd055b2 Unify debugging output to a single file
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.
2013-05-27 19:18:48 -04:00
Paul Arthur
47f140a8b1 Clean up Song->_get_info() and constructor
Return false and unset the id if the song isn't in the database.
2013-05-13 22:32:54 -04:00
Paul Arthur
ecf095fc06 Fix Rating::gc()
The join was incorrect, sometimes resulting in loss of ratings.

Fixes GH #22
2013-05-13 22:13:06 -04:00