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

703 commits

Author SHA1 Message Date
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
Paul Arthur
035fd9b117 Cosmetics: reformat changelog 2013-01-15 15:00:41 -05:00
Fred Thomsen
15ddcc3448 Always output masked password
Previously, users who didn't have access to modify the password were
shown the actual current setting instead of asterisks.
2013-01-15 12:27:03 -05:00
Paul Arthur
e2ca05d5b4 Make playlist downloads idempotent
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.
2013-01-15 11:30:47 -05:00
Paul Arthur
355b30b299 Remove old and busted shoutcast controller 2013-01-15 11:30:47 -05:00
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