1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00
Commit graph

748 commits

Author SHA1 Message Date
Afterster
8c6c0da872 Fix PLUGINS doc 2013-12-26 22:35:34 +01:00
Afterster
9aa505e320 Fix plugins and add new Process Wanted plugin type 2013-12-26 22:35:02 +01:00
Afterster
a98ecd7376 Requests project replace Snoopy project and update to MusicBrainz API v2 2013-12-26 16:54:04 +01:00
Paul Arthur
348c4034ca Update CHANGELOG 2013-10-30 21:33:31 -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
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
Paul Arthur
88196ce34b Remove old changelog 2013-06-03 02:08:51 -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
acf5cd0a4b Bump PHPMailer to 5.2.6
Development has moved to GitHub: https://github.com/PHPMailer/PHPMailer
2013-05-30 18:12:15 -04:00
Paul Arthur
6a7df20374 Onward to the future 2013-05-30 17:33:06 -04:00
Paul Arthur
22edd18649 Finalise 3.6-alpha6 2013-05-30 17:28:49 -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
eac07ede27 install: Add support for MySQL sockets
If we're using a socket, grant privileges to user@localhost, not
user@socketname.
2013-05-27 19:37:12 -04:00
Paul Arthur
f0454c03e5 Set the memory_limit to at least 32M
'32' != '32M'
2013-05-15 22:16:20 -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
Paul Arthur
9a62b49341 Make Catalog::count_songs use the correct variable
Fixes GH#23
2013-05-13 21:36:12 -04:00
Paul Arthur
6e33efbe23 Increase the field size in the ACL entry form
It wasn't large enough to enter IPv6 addresses.
Fixes GH #24
2013-05-13 21:11:38 -04:00
Paul Arthur
f661e4f6cf Add a working check for database existence
Fixes GH #21
2013-05-13 21:11:38 -04:00
Paul Arthur
3ade42684d Fix 'foo all catalogs' via the web interface
Evidently Catalog::get_catalog_ids() wasn't quite as unused as I thought
it was.

Fixes GH #18
2013-05-13 19:43:11 -04:00
Paul Arthur
f22ceb42c2 Add support for nonstandard MySQL ports 2013-05-13 17:33:12 -04:00
Paul Arthur
6bed09fbc9 Bump getID3 version 2013-05-13 16:51:34 -04:00
Paul Arthur
cf5a674965 Update the stream_playlist table to use MyISAM
InnoDB's performance is unacceptable out of the box, and there's no
clean way to batch these insertions into transactions, and stuff.

Benchmarks for 1000 inserts:
InnoDB: 54.826
MyISAM: 0.091
InnoDB transaction: 0.159

Fixes GH #14
2013-04-29 15:18:35 -04:00
Paul Arthur
df92e52dd3 Clean up Random::play_url()
Include the correct type parameter in the URL and rename the random
type parameter to random_type.

Remove unused parameters from the function call.

Should fix issue #11
2013-04-23 14:43:37 -04:00
Paul Arthur
8033c8b7a7 Cosmetics: html5_player.php
Correct vim modeline. Remove useless switch.
2013-04-15 16:47:57 -04:00
Paul Arthur
1113d91bf1 Finalise 3.6-alpha5 2013-04-15 01:39:20 -04:00
Paul Arthur
8cc720fce1 Fix date format in CHANGELOG 2013-04-13 14:32:29 -04:00
Paul Arthur
2a6ac956ed Drop MIGRATION
Should think about making the upgrade section of the README more useful,
but this information isn't particularly helpful nowadays.
2013-03-29 14:46:18 -04:00
Paul Arthur
a5e2c4da3c INSTALL was outdated and wrong and bad. 2013-03-29 14:44:21 -04:00
Paul Arthur
8dde61d1b0 Cosmetics: fix markdown in CHANGELOG 2013-03-29 14:17:33 -04:00
Paul Arthur
a936b779a7 Reformat CHANGELOG some more, move old entries out 2013-03-29 14:14:06 -04:00
Paul Arthur
53e029692c Try slightly reformatting CHANGELOG 2013-03-29 14:02:55 -04:00
Paul Arthur
0ecaf69369 First pass at making a github README 2013-03-27 14:30:49 -04:00
Paul Arthur
453a161a78 Scrub user data in User->update()
Fixes another persistent XSS vulnerability.
2013-02-07 16:36:44 -05:00
Paul Arthur
266f7cea9b Fix persistent XSS vulnerabilities in AJAX editing
Based on merge request #22 from Jean-Lou Hau, but does the escaping for
everything and in a different place.
2013-02-07 15:20:44 -05:00
Paul Arthur
0905271377 Clean up vainfo somewhat
Handling of unknown tags was wrong (we should just pass them through and
hope for the best, not do some weird-ass id3v2 thing).  Add matroska to
the list of known tags. Switch the video types to a generic cleanup
function and move the several-times-duplicated general information
gathering into the general information gathering function where it
belongs.  Treat the general information as another tag type instead of
special-casing it as a complete override through array_merge. Drop the
useless iconv stuff (getID3 already translates tags to our requested
charset). Rename some functions to more closely match their purpose.
Fix some private functions that were marked public. Fix encoding
detection, which has been completely broken for a while.
2013-02-05 11:42:56 -05:00
Paul Arthur
b7c9678012 Switch Dba from mysql to PDO-MySQL
The mysql extension is deprecated in PHP 5.5 and will be removed in the
future.
2013-01-29 03:08:52 -05:00
Paul Arthur
3010ae8c85 Log stderr when we transcode
Now you shouldn't need to manually run the command to see what went
wrong.
2013-01-28 22:00:08 -05:00
Paul Arthur
0d569db17b Fix incorrect updates
Starting with a fresh 3.3.3.5 import these updates failed.  Kick them to
the curb.
2013-01-28 21:48:10 -05:00
Paul Arthur
0451840fa3 Add 'external' auth method
Based on merge request #11
2013-01-28 21:23:15 -05:00
Paul Arthur
a6b70f9eba Rename the 'local' auth method to 'pam'
It's what it should have been from the start.
2013-01-28 21:23:14 -05:00
Paul Arthur
1a164ba699 Yank out the Flash player by the roots. 2013-01-28 13:26:11 -05:00
Holger Brunn
959aebe07f Add an HTML5 player
Merge request #20.  Basic, not very pretty, but works and, unlike the
Flash player, is maintainable.
2013-01-28 13:26:11 -05:00
Paul Arthur
d14b5215eb Cosmetics: s/incase/in case/ 2013-01-25 20:30:36 -05:00
Paul Arthur
e371e27e0e Change css handling for RTL languages
Code duplication is bad even when it's CSS, mmkay?

If a theme has templates/rtl.css, it will be loaded in addition to
default.css.  This is more sane than the old behaviour, which loaded
default-rtl.css instead of default.css.

I'm not feeling ambitious enough to actually check whether the current
-rtl.css files work and change them to overrides instead of modified
copypasta, so I just dropped them for now.
2013-01-25 18:01:08 -05:00
Fred Thomsen
6031914382 Fix add and edit catalog legend format specifiers in penguin theme 2013-01-23 13:13:37 -05:00
Paul Arthur
9340ff287c Rework transcoding
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.
2013-01-23 13:11:16 -05:00
Paul Arthur
e1000558fb Tear the offset/eof/size crap out of Stream
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.
2013-01-23 13:09:27 -05:00
Paul Arthur
984c738187 Mess around with rating search
Simplify the rating search and drop the ugly subquery; make it a
straight query against the current user's ratings.
2013-01-23 13:06:35 -05:00
Paul Arthur
19efa3adf7 Update prototype to git HEAD (4ce0b0f)
git://github.com/sstephenson/prototype.git
2013-01-15 15:12:16 -05:00