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

110 commits

Author SHA1 Message Date
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)
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
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
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
Afterster
92fcb84670 Rename Error class to AmpError (fix php7 Error class name conflict) 2015-12-04 14:00:01 +01:00
Afterster
9c3637b879 Change license from GPLv2 to AGPLv3 2015-12-02 20:46:34 +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
e497f61f37 Add protocol check on live stream homepage url (fix #767) 2015-10-18 11:02:11 +02:00
Afterster
bda9389c26 Add rating on XML API 2015-10-16 22:47:01 +02:00
Afterster
9be50b8e28 Fix jQuery UI Dialog removed deprecated position setter
Fix indent
2015-09-24 21:35:35 +02:00
Afterster
4e1dffaf7b Update advanced_search API function to support artists and albums requests 2015-09-23 22:42:40 +02:00
Nick Lanham
598ec3b870 Add advanced_search api call 2015-09-09 20:38:52 +00:00
Afterster
47a6585c88 Use latest php-cs-fixer version 2015-07-29 21:59:12 +02:00
Afterster
f7fb9efa75 Fix kill process typo on channel
Update Ampache XML API version
2015-06-04 21:35:41 +02:00
Afterster
ae553bd786 Add user, followers, following and last_shouts XML API functions 2015-06-03 22:52:56 +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
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
Ryan Copley
d847135929 Fixed playlist_remove_song, it was improperly creating a playlist object.
The track isn't a playlist :) Changed it to scrub_in and I confirmed it worked locally via the XML API.
2015-05-10 22:06:34 -04:00
Afterster
446ad9ec28 Fix Ampache API playlist_add_song 2015-01-22 20:44:54 +01:00
Lawrence Brown
60a653daf4 copyright 2014 -> 2015
janitorial services
2015-01-04 21:36:41 +00:00
Afterster
5319cdf1d6 Add graphs to library items
Remove (temporary?) icon sprite from Reborn theme
2014-10-08 23:12:00 +02:00
Afterster
9ab5f34f2e Add optional geolocation parameters to Ampache API handshake 2014-10-07 07:36:50 +02:00
Afterster
880528f729 Fix XML error code return with invalid Ampache API handshake (fix #373) 2014-08-12 13:40:22 +02:00
Afterster
467e071b73 Add few songs & videos metadata
Add release type on albums
Add methods code comments on few classes
Display release date on all videos
2014-08-02 22:48:41 +02:00
Afterster
80cd08ed04 Fix Scrutinizer reported errors 2014-07-09 23:27:14 +02:00
Afterster
d045a75e11 Fix get SmartPlaylist in XML-API (fix #306) 2014-07-04 20:00:08 +02:00
Afterster
fee1e70ffa Fix scrutinizer code style 2014-05-26 00:48:43 +02:00
Afterster
59d038335f Fix several php errors 2014-05-25 18:47:43 +02:00
Afterster
98664d2a84 Update copyright years 2014-05-18 09:53:57 +02:00
SUTJael
8e604cac5b Fix #172 2014-03-26 20:26:08 +01:00
Afterster
9abed639d8 Add load time in footer and set catalog disable as an option to not increase sql query by default 2014-03-16 10:02:13 +01: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
7ba3678bd5 Fix Ampache API get playlist 2014-03-11 07:46:38 +01:00
Afterster
4253d85d6a Fix https://github.com/ampache/ampache/issues/104 2014-01-28 22:40:02 +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
Afterster
19dd53127e Option to add items to the currently played web player playlist (fix #71) 2013-12-13 00:30:30 +01:00
Afterster
22cb316a48 Ampache code now respect PSR-2 code style 2013-11-17 18:54:14 +01:00
Paul Arthur
438a2a9023 Don't cache browses for the API
The API will never request it again, so caching the query just wastes
space.
2013-06-12 13:25:57 -04:00
Paul Arthur
239ea81fdf Some cleanup of play URL handling
Move parsing from Song into Stream_URL and make it parse more things.
Add the type parameter to all generated URLs instead of adding video to
Video URLs.
2013-02-07 14:24:40 -05:00
Paul Arthur
860b7d3ed3 Parameterise query in Api 2013-02-04 17:56:11 -05:00
Paul Arthur
fbbb015950 Use Session for stream sessions 2013-01-28 21:46:00 -05:00
Paul Arthur
58a3ab692e Move sessiony things from vauth into Session 2013-01-28 16:57:34 -05:00
Paul Arthur
ef4d366060 Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference
for spaces, and I feel inclined to impose my will on the tree.
2013-01-26 03:38:46 -05:00
Paul Arthur
9c28ed5ad1 Consistently use _ in two-word class names 2013-01-25 19:54:11 -05:00
Paul Arthur
16c3ba34fd Cosmetics: clean up heads in lib/ 2013-01-25 18:38:22 -05:00
Paul Arthur
bc90c0128c Start cleaning up the democratic thing.
Whoever wrote the old implementation of get_items suffered from intense fear
and hatred of SQL.
2012-10-15 13:20:28 -04:00