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

694 commits

Author SHA1 Message Date
Paul Arthur
8444fd6b1e Finalise 3.6-alpha4 2012-11-27 14:47:46 -05:00
Paul Arthur
bea34c4261 Fix spurious errors from Catalog::create()
is_readable is flaky under Windows, opendir should be more accurate.
2012-10-18 18:16:30 -04:00
Paul Arthur
d7c0531871 Finalise 3.6-alpha3 2012-10-15 13:20:27 -04:00
Paul Arthur
10b2d039d4 Update getID3 to 1.9.4b1
Notably: "PHP5 standards improvements".  Maybe it will throw less
PHP warnings now.
2012-10-11 14:59:57 -04:00
Paul Arthur
92e29041a4 Drop support for old passwords 2012-09-21 14:28:53 -04:00
Florent Fourcot
c9dab7bf4e FS#262 - M3U import should be ordered 2012-09-21 10:11:23 -04:00
Paul Arthur
9c09b33e95 FS#248 - Sending Mail with quotes
Don't run scrub_in on the subject and body; it's not touching the
database or being output back to the browser, and we send plain text
email.  Anything malicious that can be done is a phpmailer bug.
2012-09-20 12:50:54 -04:00
Paul Arthur
0086e772db FS#260 - Multiple rules result in "Not Enough Data"
This should be a more complete fix, and possibly a somewhat more
efficient approach.
2012-09-19 17:05:07 -04:00
Paul Arthur
25b77a6c75 Partial fix for ASF tags
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.
2012-09-06 12:56:20 -04:00
Paul Arthur
b4b6c7a47e Finalise alpha2
I'm tired of seeing alpha1.
2012-08-15 11:55:07 -04:00
Paul Arthur
37fc03bb48 Make the CLI database installation tool more robust
Using a relative path required it to be run from the top-level
directory; we already do voodoo to figure out the correct prefix, so we
should use that.
2012-04-17 17:53:52 -04:00
Dominik George
b64649e720 FS#225 - xml_from_array() produces runtime error
Newer versions of the PCRE library changed behaviour so we can't
replace invalid characters by listing them, since it now requires
that the characters in a pattern are valid Unicode characters. Use an
inverted character class instead.

Might work.
2012-04-15 23:31:17 -04:00
Paul Arthur
4aa37feccc Fix disk number parsing for ID3v2
According to the changelog, getID3 1.7.9 standardised on part_of_a_set
as the key for this info (pulled from TPOS or TPA, depending on the
minor version of ID3v2); we were looking for 'pos', which is wrong.
2012-04-15 03:02:29 -04:00
Paul Arthur
0ccf7d76bb Fixup CHANGELOG 2012-04-13 18:59:16 -04:00
Paul Arthur
a0cc08abe4 Updated changelog for i18n changes 2012-04-12 21:13:29 -04:00
Paul Arthur
50e4c54558 Fix pluralisation issue in Recently Played
Previously we would say things like "1 seconds" and "1 hours". Using
the magic of ngettext and sprintf we can get rid of the static
concatenation order and become theoretically more translatable as well
as more correct in English.

Also changed the logic a bit, since the old looping method was
unfriendly to my brain.
2012-04-12 15:33:36 -04:00
Paul Arthur
1c2de30150 Add support for parsing MBIDs in M4A files 2012-04-11 19:13:32 -04:00
Brian Hasselbeck
2888851fa3 FS#224 - generated .pls playlist doesn't work in some players
Initial tag is case sensitive; we were emitting [Playlist] but some
players don't accept that. There is unfortunately no real standard to
check, but this does match what Winamp (ack, pthbbt) does.
2012-04-11 16:52:16 -04:00
Paul Arthur
f2e01ab7d5 Increase the size of the mbid column in artist
Picard is putting multiple MBIDs in the tags now that MusicBrainz' new
schema is live.  The easiest way to deal with this is to store all of
them as an aggregate value and match against that.
2012-03-31 22:29:09 -04:00
Paul Arthur
425ecbbb3a Don't run filename patterns through preg_quote twice
This would result in extra slashes, e.g.
    '/\/([0-9]+?)\s\\\-\s(.+?)\..+$/' instead of
    '/\/([0-9]+?)\s\-\s(.+?)\..+$/'

There are some unrelated cosmetic changes as well.
2012-03-31 20:44:41 -04:00
Paul Arthur
65ad781927 Fix display of logic operator in search
It could be in either $_REQUEST or a playlist object, so we need to
check the correct one.
2012-03-31 19:26:10 -04:00
Paul Arthur
f2e3668528 Fix regex for parsing rules
ID can be multiple digits, so we should capture all of them.
2012-03-19 12:21:22 -04:00
Paul Arthur
dbb0657010 Update changelog 2012-03-09 14:32:50 -05:00
Paul Arthur
e8f4577d9a Clean JSON output of user-controlled strings
JSON has some strict rules about what can be escaped, and we should have
been scrubbing to entities all along.
2012-03-09 14:02:50 -05:00
Paul Arthur
40e8484a57 FS#213 - User Registration
Add an option to have newly registered accounts disabled by default.
2012-03-01 14:06:03 -05:00
Paul Arthur
e9e350b71e Lengthen varchar for tmp_playlist.session
Sessions can be longer than 32 characters.  Bump to 64.
2012-02-21 00:08:20 -05:00
Sébastien LIENARD
591a522824 FS#209 - Google Chrome doesn't show album art when album name contains commas
It seems that Chrome believes that commas end header values (it's
probably correct in this belief).  Quoting the value should avoid this,
and potentially other issues.
2012-02-20 23:43:12 -05:00
lotan_rm
073f49c3e8 FS#212 - Incorrect album art uri
Missing ampersand.
2012-02-20 23:38:48 -05:00
Karl Vollmer
12a7e9bc24 Ampache now requires PHP 5.3 or greater... 'JFDI' 2011-11-30 15:27:17 -04:00
Paul Arthur
ca3fe67e49 FS#201 - Video files broken in search
Video searching was trying to use explode instead of implode.  That
won't work.
2011-11-28 13:35:24 -05:00
Karl Vollmer
5adf408104 Updated changelog 2011-11-23 16:28:31 -04:00
Paul Arthur
914261dcdd Add the ability to locally cache passwords validated by external means
This can, for instance, be used to allow LDAP authenticated users to use the
API without manually setting a password, as long as they've logged in using
the web interface at least once.
2011-11-18 15:38:59 -05:00
Paul Arthur
58a7f6b2a6 Fix custom session handler.
We were manually loading the vauth class (apparently to work around a
bug in Synology's PHP) but not calling vauth::_auto_init(), so the
default session handler was used.  This normally does session locking,
so bad things happened.
2011-11-09 23:01:17 -05:00
Paul Arthur
1599f59619 FS#195 - Unable to gather album art from lastfm
Cleaned up the code, might work now.  Untested.
2011-11-09 04:32:40 -05:00
Paul Arthur
0518055309 Update Captcha PHP to 2.3
http://freshmeat.net/projects/captchaphp
2011-10-27 20:50:35 -04:00
Paul Arthur
51893b1ee5 Update getID3 to 1.9.1 2011-10-27 20:41:26 -04:00
Paul Arthur
8e89cb990a Update PHPMailer to 5.2.0 2011-10-27 20:23:38 -04:00
Paul Arthur
e199182773 FS#193 - Localplay MPD cannot turn off Repeat or Random
The rewritten MPD module did not allow passing false values to MPD.
Using isset instead of boolean evaluation fixes this.
2011-10-10 21:45:26 -04:00
Stephen Shkardoon
eefdaccd39 Escape config values when outputting the config file
Allows for odd characters in the database username and password.
2011-09-19 13:47:04 -04:00
Paul Arthur
3b296619c0 Null is an acceptable session auth type if use_auth=false. FS#182. 2011-09-12 10:25:27 -04:00
Paul Arthur
e511420add Fix FS#175 - Advanced Random Resets Item Count to 1 2011-08-12 16:17:55 -04:00
Paul Arthur
46d4bb84b6 Some Catalog cleanup and enhancement. 2011-08-12 12:11:59 -04:00
Paul Arthur
fb40835e42 Make the API return more data for songs 2011-06-28 14:50:41 -04:00
Paul Arthur
1e05bfe554 Fix broken API method
Api::search_songs needed to declare a type, and Search::run needed to
honour that declaration.
2011-06-28 14:30:52 -04:00
Paul Arthur
998f74ac71 Make require_session work with local auth. 2011-05-31 23:08:06 -04:00
Paul Arthur
c1bcad2abc Partial fix for catalog filtering
Acting on 'click' sends the AJAX request as soon as the user clicks to
make the dropdown drop down; watch for 'change' instead.
2011-05-26 19:25:55 -04:00
Paul Arthur
0fbeda9047 UI fix for toggling artwork 2011-05-26 19:08:50 -04:00
Paul Arthur
7c491ec1c7 Clean up API::handshake
Use Access::check_network to check the ACLs. Be more restrictive about
validating timestamps.  Miscellaneous cleanup (line wraps, etc.)
2011-05-26 18:35:30 -04:00
Paul Arthur
830a739c89 Cosmetics: Changelog grammar 2011-05-26 18:32:43 -04:00
Paul Arthur
da07f041e3 JS-less install should work better. 2011-05-04 16:23:58 -04:00