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

721 commits

Author SHA1 Message Date
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
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