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

53 commits

Author SHA1 Message Date
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)
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
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
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
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
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
Afterster
779dec6654 Use clean_utf8 on xml api output 2016-03-21 08:24:22 +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
0630676eb6 Add browse filter and light sidebar options
Add overload to force library item art display
2016-02-29 22:51:42 +01:00
thinca
aa66b7bf62 Fix playlist_songs API
<playlisttrack> tag does not appear in each items.
And errors occurred:
[Runtime Error] Invalid argument supplied for foreach()
2016-02-12 04:11:46 +09:00
Afterster
aa19993358 Add video support to playlist (fix #675) 2015-12-27 21:25:30 +01:00
Afterster
baaceca250 Add Podcast feature 2015-12-20 23:19:23 +01:00
Afterster
9c3637b879 Change license from GPLv2 to AGPLv3 2015-12-02 20:46:34 +01:00
Afterster
a340c30872 Update code style script with new checks 2015-11-18 22:39:49 +01:00
Afterster
5124a5ed4c Merge branch 'develop' of https://github.com/Psy-Virus/ampache into Psy-Virus-develop
Conflicts:
	templates/show_album_row.inc.php
	templates/show_artist_row.inc.php
	templates/show_label_row.inc.php
	templates/show_playlist_song_row.inc.php
	templates/show_song_row.inc.php
	templates/show_video_row.inc.php

Apply align_equals and concat_with_spaces on code style
2015-11-07 08:08:59 +01:00
Afterster
ca2028256a Add timeline / friends timeline (= user activities) 2015-11-04 23:59:13 +01:00
Afterster
a3c2a4336f Don't show disabled songs to normal users (fix #883) 2015-10-25 18:58:28 +01:00
Afterster
582bbbb188 Implements bin/write_playlists.inc tool to export playlists/artists/albums to playlist files (x2) 2015-09-03 23:47:20 +02:00
Afterster
47a6585c88 Use latest php-cs-fixer version 2015-07-29 21:59:12 +02:00
Afterster
4cb25572c5 Fix tag name in song details of XML API 2015-07-29 21:48:29 +02:00
Afterster
8b4abc2960 Fix file change detection if show_played_times setting is enabled 2015-07-05 22:20:18 +02:00
Afterster
53caa3d94a Add metadata on xml api songs result
Fix "Next" button when browsing start offset is aligned to offset limit (fix #888)
2015-07-05 22:03:12 +02:00
Afterster
41e837b38e Fix podcast owner xml information 2015-06-16 21:10:03 +02:00
Afterster
ae553bd786 Add user, followers, following and last_shouts XML API functions 2015-06-03 22:52:56 +02:00
Afterster
02fa24625e Add CDATA declaration on artist summary, date and place xml values 2015-05-29 23:06:52 +02:00
Afterster
0c346bad51 Merge pull request #852 from RyanCopley/playlisttrack-fix
Return playlist track in the song XML if it is passed in
2015-05-16 09:58:05 +02:00
Afterster
0bce1211fe Add option to hide user fullname by default 2015-05-14 23:07:36 +02:00
Afterster
d83b378595 Avoid autoplay in share page by default 2015-05-14 20:44:59 +02:00
Ryan Copley
a126ceb7a5 Fixes #851 Add the playlist_data track to the song XML if it was passed in. 2015-05-11 22:43:04 -04:00
Afterster
26b30a2817 Add Podcast links to albums and artists if RSS Feed enabled 2015-05-02 10:00:13 +02:00
Afterster
21a3de408c Fix transcode settings for api player type 2015-04-01 19:51:19 +02:00
Afterster
839f3cf1b7 Add default values to 0 instead of empty string on some int parameters in ampache xml api (avoid some crash on few players) 2015-03-01 07:16:15 +01:00
Lawrence Brown
60a653daf4 copyright 2014 -> 2015
janitorial services
2015-01-04 21:36:41 +00:00
Afterster
80cd08ed04 Fix Scrutinizer reported errors 2014-07-09 23:27:14 +02:00
Afterster
d842ebbb00 Add art on Videos
Add videos support to Subsonic and UPnP APIs
Update Tmdb module
2014-07-06 20:46:46 +02:00
Afterster
a2c44cb355 Fix codestyle 2014-06-29 09:43:48 +02:00
Afterster
7b76c83b43 Restore legacy xml api tags node 2014-06-29 09:29:20 +02:00
Afterster
c315fc10a9 Fix XML API tag info (fix #281) 2014-06-24 07:35:16 +02:00
Afterster
cd0b66391e Ignore some unused warnings 2014-05-26 00:02:11 +02:00
Afterster
b16958f44e Remove old code and fix old php errors 2014-05-25 22:54:04 +02:00
Afterster
98664d2a84 Update copyright years 2014-05-18 09:53:57 +02:00
Afterster
0152ab610f Move ampache-doped to ampache 2014-04-15 20:20:02 +02:00
Afterster
2a7583acda Add missing item fields, stats function, playlist edition functions and API Key authentication type to Ampache XML API 2014-03-15 21:04:11 +01:00
Afterster
7b64802f62 Rename Ampache to Ampache-doped 2014-02-01 10:30:13 +01:00
Afterster
5eceaf2aea Rename Config class to AmpConfig class to avoid conflict with PEAR (fix #68) 2013-12-13 08:36:23 +01:00