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

2236 commits

Author SHA1 Message Date
Phyks (Lucas Verney)
b8e28b676d Fix for issue #1214.
Homogeneize `username` field length in SQL database.

Set the `VARCHAR` field used for `username` to have a maximum size of
255, which was the highest value used across the tables. This should fix
some errors with MySQL strict mode (and potentially unnoticed previous
errors).

Also edited the `fullname` field length to match the `username` field
length.

Closes #1214.
2016-06-15 15:07:05 +02:00
Niols
86c1a89faf Stop using ARRAY_FILTER_USE_KEY which is PHP>=5.6
fix issue 1256
2016-06-15 09:37:33 +02:00
Phyks (Lucas Verney)
17ae862596 Fix issue #1247
XML API version is now assumed to be the latest available if not
specified as a parameter. Also fix the issue that an empty XML document
was issued when the version was not specified.

Closes issue #1247.
2016-06-14 18:06:59 +02:00
Afterster
0842e288df Merge pull request #1239 from Phyks/develop
Fix proposition for issue #123.
2016-06-14 07:45:30 +02:00
Afterster
6b022cc9f1 Merge pull request #1240 from Phyks/subsonic_path_field
Proposition of fix for #1213
2016-06-14 07:44:31 +02:00
Afterster
e9913620cb Merge pull request #1253 from Phyks/fix_travis
Fix Travis-CI build
2016-06-14 07:29:02 +02:00
Phyks (Lucas Verney)
2890aa89bf Fix Travis-CI build
* Fix php-cs according to https://github.com/ampache/ampache/issues/1251
to fix travis build. Use composer to force the 1.* version to be used.

* Add `encoding` fixer.

* Use the same set of fixers in Git commit hook and test script.

* Update hooks and scripts.

* Fix a braces issue detected by php-cs.

Closes issue #1251.
2016-06-13 15:32:48 +02:00
Phyks (Lucas Verney)
f510f644fb Use UTF-8 without BOM for all the files in Ampache 2016-06-13 14:22:21 +02:00
Phyks (Lucas Verney)
91b85fee88 Proposition of fix for #121
Returns path relative to the catalog root path in Subsonic API.

Also removed the references to `Catalog::_get_info` function.

Closes issue #121.
2016-06-09 12:07:58 +02:00
Phyks (Lucas Verney)
7db06c2017 Fix proposition for issue #123.
This commit introduces a `nT_` function to handle pluralization in
localizations, and avoid the need to call ngettext, which was resulting
in errors if PHP Gettext module was not available (and this was not
enforced by Ampache).

Any occurrence of `ngettext` has been replaced by this `nT_` call.

Also removed the useless keywords in the `gather-messages.sh` script,
and added the newly introduced `nT_` keyword.

Closes issue #123.
2016-06-09 08:55:28 +02:00
Phyks (Lucas Verney)
9885aa8e02 Fix proposition for #1242
The Ampache-XML API was not returning a valid XML document in case of failed passphrase validation.
2016-06-08 12:06:07 +02:00
Afterster
0a0721525b Don't add 443 port on play url 2016-05-24 07:42:08 +02:00
Afterster
3b5bf188ef Merge pull request #1221 from glorilla/develop
fix: Test all images found to select the one with the good dimensions
2016-05-17 06:51:09 +02:00
glorilla
cc7ca77bce fix: Test all images found to select the one with the good dimensions 2016-05-16 23:12:26 +02:00
Maniac
90acb6822c Fixed image size checking and Google image search
Image size checking did not handle empty values (e.g. max height/width was not set in config).
As result, any image would be "not in range" even when the user would expect that it would.
To get better information while debugging the error message has also be expanded to include
the configured/assumed min/max value and the current height/width which was checked.

Second fix in this commit addresses broken google image search.
Google has changed the image search page some time ago. This causes the old code to get an error 404
when trying to retrive images.
In addition to the broken URL, the way to parse the HTML result was also broken.
Google now sends some sort of JSON and HTML mix string.
Currently some simple regex will try to find all image urls, maybe someone will find a better solution.
2016-05-14 10:59:55 +02:00
Maniac
8be71eda15 Fixed PHP error when using image_dimensions with empty parameter 2016-05-14 10:59:32 +02:00
Niols
f4c593ebfe enhance external auth
add support for 'avatar' in external auths
add support for auto_create and auto_update for the avatar
add support for 'avatar' in LDAP
2016-05-03 17:11:42 +02:00
Niols
621fa165ba enhance external auth
add support for 'state' and 'city' in external auths
add support for an 'auto_update' of the users date from external auths
add support for 'state' and 'city' in LDAP
2016-05-03 17:11:42 +02:00
Niols
6cbf700151 fix 1201 and rewrite LDAP class
and ran php-cs-fixer as told in the wiki
2016-05-03 17:11:42 +02:00
Afterster
b1c7cf9ef6 Merge pull request #1197 from Psy-Virus/patch-13
FIX for #1195 & New position for update notification
2016-04-09 08:24:51 +02:00
Manuel
3201efa5e6 New position for update notification:
Since ever, I hated it that the Update notification is within the
headerbox. Now it's on the top of the content div like the "updated
config" notification.

I also kicked out one permission check so the
"autoupdate" notification and/or the "new config" notification is only
shown if the permission is 100... Like before but in another way.
^^

Before, there was a `<span>...</span>`, no matter what user was
logged in. Now there is a div with `id="update_notify"` what is also
only shown, if the admin is logged in.

I also cleaned the depending CSS
rule in `/reborn/templates/default.css`
2016-04-05 03:57:27 +02:00
Joel Klinghed
8d91f875db fixup! Make song count in handshake match the number returned from songs
Ok, now I get the style
2016-03-27 12:31:10 +02:00
Joel Klinghed
9c8924065c fixup! Make song count in handshake match the number returned from songs
Style fix
2016-03-27 12:24:55 +02:00
Joel Klinghed
5e7affb21a Make song count in handshake match the number returned from songs
Songs skip disabled songs so the handshake count should do the same
Also makes the counts for artists and albums not depend on included
song rows but on the number of rows in their own tables
2016-03-26 18:38:25 +01:00
Joel Klinghed
1b63f89d44 Make server/xml.server.php limit parameter for songs more stable
Disabled songs was hidden after the limit parameter was applied causing
the returned number of songs to be less than limit even if there were
more songs. Also caused offset to be a bit weird, example:
> Request offset=0&limit=1000
< Get 995 songs as 5 of them was disabled

So the client must use offset=N*1000 for the next
requests regardless of the number of songs in the
response until zero are returned as we truly was at
the end
2016-03-26 18:31:25 +01:00
Jahak
5842dcf9c8 Update daap_api.class.php 2016-03-21 21:36:18 +05:00
Jahak
179de70080 Update random.class.php 2016-03-21 21:13:46 +05:00
Afterster
779dec6654 Use clean_utf8 on xml api output 2016-03-21 08:24:22 +01:00
Niols
0729073857 Fix issue that blocks webplayer when transcoding 2016-03-06 22:31:01 +01:00
Afterster
deba68d9f8 Add helper to retrieve tmp directory path
Fix song xml special character on composer field
2016-03-05 13:07:47 +01:00
Afterster
58ede034c1 Fix tag map per user check (fix #1094)
Make update_380003 optional
2016-03-05 11:02:30 +01:00
Afterster
558e2c882a Add starred information directly on subsonic item description
Add parent attribute to subsonic podcast episode information
Always display art on random album
2016-03-05 09:08:59 +01:00
Afterster
c01d5b55b9 Add licensing to song list column if enabled
Remove MOTD plugin and add it first by default if enabled
2016-03-03 22:34:40 +01:00
Afterster
5b75e70979 Add cover art to live streams 2016-03-03 21:44:06 +01:00
Afterster
07a99104cc Add cover art on playlists / playlist items
Add last update date information to playlists
Always garbage collect catalog after any catalog action (fix #1156)
2016-03-02 00:07:31 +01:00
Deelight
f0bfea6c8c Only allow ID3 scanning for local catalog if "getID3" is declared in the metadata_order config parameter. 2016-03-01 17:47:05 +01:00
Afterster
0630676eb6 Add browse filter and light sidebar options
Add overload to force library item art display
2016-02-29 22:51:42 +01:00
Afterster
2de4417058 Add link to license on upload form
Add option to remove grid view from catalog favorites at homepage
2016-02-28 10:07:52 +01:00
Afterster
be816474f6 Add option to ignore song duplicate import
Add option to match catalog patterns on file upload
2016-02-27 20:35:03 +01:00
Afterster
a5a3e5dad0 Add optional %FILE% variable to script run on file upload 2016-02-27 15:41:07 +01:00
Afterster
be38dca973 Add artist prefix on album art title 2016-02-27 07:48:27 +01:00
Afterster
4dd4917ff9 Fix Podcast episode transcode 2016-02-26 06:56:56 +01:00
Afterster
8b77d6209f Fix album group on query/browse when where clause specified (fix #1148) 2016-02-25 21:05:56 +01:00
Afterster
c128f84cda Codec field is now mandatory on live stream 2016-02-23 07:32:41 +01:00
Afterster
1b8f5f460e Fix ipv6 address regression on user ip history (fix #1134) 2016-02-23 07:15:32 +01:00
Afterster
13af27a43b Add check to avoid parsing user ip address history if empty 2016-02-21 10:59:53 +01:00
Afterster
26db6b3c45 Merge pull request #1147 from Niols/develop
Rework LDAP Auth
2016-02-21 10:49:07 +01:00
Niols
661081ae91 rework LDAP auth
move it from Auth::ldap_auth to LDAP::auth
add support for other protocol versions
add support for StartTLS
add support for custom name field
  => if (givenName = John) and (sn = Doe), "givenName sn" gives "John Doe"
add support for custom attribute name for group's member attribute
clean code
2016-02-21 10:40:34 +01:00
Niols
bcd6c469b8 add default value tu AmpConfig::get 2016-02-21 10:20:58 +01:00
Afterster
a0e2258aa8 Fix Subsonic scrobble submission check (fix #1141) 2016-02-21 09:39:53 +01:00