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

2267 commits

Author SHA1 Message Date
wagnered
0b9391e042 Fixed bug preventing ipv6 addresses from being added to user's ip history. 2016-12-06 17:09:33 -08:00
Afterster
feda46f9b1 Merge pull request #1413 from SenorSmartyPants/Subsonic
Subsonic API: Added token authentication handling. It just returns an unsupported e…
2016-11-15 07:35:24 +01:00
Afterster
d65d200384 Merge pull request #1412 from SenorSmartyPants/DuplicateArtists
Handle ID3v2.3 and v2.4 better regarding multivalued lists
2016-11-15 07:31:51 +01:00
SenorSmartPants
d229859172 Use Artist full name (with prefix) in subsonic xml responses.
Add ignoredArticles to xml so they are still sorted properly
2016-11-05 15:00:51 -05:00
SenorSmartPants
b6b329a272 Added token authentication handling. It just returns an unsupported error.
I do not see a way to implement this without altering password storage in the database.

Reverting API version to 1.11.0
2016-11-01 14:36:28 -05:00
SenorSmartPants
dc8194bc7d Handle ID3v2.3 and v2.4 better regarding multivalued lists 2016-10-20 16:29:12 -05:00
Afterster
297572d692 Merge pull request #1409 from SenorSmartyPants/MultipleArtists
Only create entry for first artist in Artists MB data. Doesn't create…
2016-10-18 07:15:58 +02:00
Afterster
6c1393b3db Merge pull request #1408 from SenorSmartyPants/AlbumSort
Add sort by Disk number to all non-default sorts
2016-10-18 07:14:30 +02:00
Afterster
a8e66959c2 Merge pull request #1407 from manuelglez86/patch-2
Solves the Missing session ID showed on the ampache log
2016-10-18 07:14:09 +02:00
SenorSmartPants
c561e043b9 Only create entry for first artist in Artists MB data. Doesn't create duplicate artist entries. Closes #1402 2016-10-17 15:40:39 -05:00
SenorSmartPants
2156da9048 Add sort by Disk number to all non-default sorts 2016-10-17 15:00:19 -05:00
manuelglez86
d810b9316a Solves ths Missing session ID showed on the ampache llog 2016-10-16 23:24:33 -05:00
Thomas Deuling
231f0c3836 Make song comment editable 2016-10-07 16:41:29 +02:00
manuelglez86
8ac4314dd1 Fill info on Composer column in Itunes
The composer column has no data, so i make the changes for the info to appear.
2016-09-21 14:25:40 -05:00
Phyks (Lucas Verney)
4c2b098c57 Fix error message in the logs due to include
When include is not passed to `artists` or `albums` API function, it
will default to `NULL`. Make it default to `[]` to avoid a message in
the error log.
2016-08-06 21:28:43 +02:00
Phyks (Lucas Verney)
2053264888 Allow a user to overcome limit limitation by passing limit=none 2016-08-05 14:20:59 +02:00
Phyks (Lucas Verney)
4df21cc3ea Return total count of items
Return total count of items in API actions which make use of `filter`
and `offset` parameters. This way, the user of the API can know easily
if he should query for more items or not, and implement a pagination
mechanism on his side.
2016-08-05 13:58:48 +02:00
Phyks (Lucas Verney)
e1887f88de Remove DEPRECATED comment 2016-08-05 13:58:15 +02:00
Phyks (Lucas Verney)
e86ea9a099 Fix copyright date 2016-08-01 22:02:00 +02:00
Phyks (Lucas Verney)
2bb142eeb8 Fix issue #1260
Fix coding guidelines incoherences. Code should match PSR1/2 now, and
php-cs is set to check it on each commit.

Also fixed the Git hook to take into account only added, modified,
copied and renamed files (preventing errors when trying to check deleted
files).

Closes #1260.
2016-08-01 21:55:14 +02:00
Phyks (Lucas Verney)
31ef95a3ed Basic include support in the XML API
Includes are specified by the `include[]` array `GET` parameter.
Supported includes as of now are:

* For `artists` and `artist` actions, you can include `albums` and/or `songs`.
* For `albums` action, you can include `songs`.
2016-07-25 11:14:47 +02:00
Afterster
a0d76171de Merge pull request #1346 from Phyks/issue_1339
Use correct fields type in modules and localplay
2016-07-24 15:51:10 +02:00
Phyks (Lucas Verney)
088fa00b36 Use correct fields type in modules and localplay
This fixes #1339.
2016-07-22 16:11:41 +02:00
Phyks (Lucas Verney)
21b321098c Improve API, as discussed in #1292
* Provide artists art in the `artists` method.
* Add `name` as an alias for `title` attribute for `songs` and stuff.
* Add a `.htaccess` file to enable CORS headers.

Closes #1292.
2016-07-22 15:52:55 +02:00
Ashot Nazaryan
e36a8e2615 Fix Timeline Function 2016-07-12 01:49:54 -07:00
Afterster
b53920bbcb Merge pull request #1288 from Phyks/issue_955
Fix issue #955
2016-06-30 07:55:26 +02:00
Phyks (Lucas Verney)
3ab820a101 Fix issue #1203
DSub not playing music over Subsonic API

The return value from `curl_exec` call in `Subsonic_API::follow_stream`
was not checked, leading to silent error when an incorrect URL was
provided (typically when `local_web_path` was not correctly set).

Also, the use of curl in `follow_stream` function was quite
counter-intuitive and unclear, I added a comment about it to help others
digging into the code.
2016-06-23 23:19:32 +02:00
Phyks (Lucas Verney)
62b2b3e3b4 Fix issue #955
Introduce a "lang" cookie, and use it to translate `test.php`.

Closes #955.
2016-06-23 20:07:11 +02:00
Phyks (Lucas Verney)
22418ca54e Fix for issue #1178
Add the name of the album for which art generation failed in the log.

Closes #1178.
2016-06-17 01:06:59 +02:00
Afterster
ebc2228d9f Merge pull request #1264 from Phyks/issue_1248
Fix for issue #1248
2016-06-16 12:08:09 +02:00
Phyks (Lucas Verney)
a50fb430ba Fix for issue #1248
Generate `sceret_key` on Ampache installation

Generate a `secret_key` on Ampache installation and put it in the
generated config. This removes the need to do it manually, and the
secret key is ensured to be crypto safe.

Also move the `web_path` configuration setting under a "Various"
fieldset, as it had nothing to do with database settings.

Also added a comment about a missing `break` statement, which was on
purpose, but one could think it was a mistake at first sight.

Closes #1248.
2016-06-16 11:03:56 +02:00
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