mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
Add art on Videos
Add videos support to Subsonic and UPnP APIs Update Tmdb module
This commit is contained in:
parent
3fc08b17d4
commit
d842ebbb00
246 changed files with 5530 additions and 2127 deletions
|
@ -23,8 +23,8 @@ use Tmdb\Model\Collection\QueryParameter\AppendToResponse;
|
|||
* @package Tmdb\Repository
|
||||
* @see http://docs.themoviedb.apiary.io/#collections
|
||||
*/
|
||||
class CollectionRepository extends AbstractRepository {
|
||||
|
||||
class CollectionRepository extends AbstractRepository
|
||||
{
|
||||
private $imageFactory;
|
||||
|
||||
public function __construct(Client $client)
|
||||
|
@ -37,7 +37,8 @@ class CollectionRepository extends AbstractRepository {
|
|||
/**
|
||||
* Load a collection with the given identifier
|
||||
*
|
||||
* If you want to optimize the result set/bandwidth you should define the AppendToResponse parameter
|
||||
* If you want to optimize the result set/bandwidth you
|
||||
* should define the AppendToResponse parameter
|
||||
*
|
||||
* @param $id
|
||||
* @param $parameters
|
||||
|
@ -55,6 +56,7 @@ class CollectionRepository extends AbstractRepository {
|
|||
}
|
||||
|
||||
$data = $this->getApi()->getCollection($id, $this->parseQueryParameters($parameters), $headers);
|
||||
|
||||
return $this->getFactory()->create($data);
|
||||
}
|
||||
|
||||
|
@ -93,12 +95,13 @@ class CollectionRepository extends AbstractRepository {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param mixed $imageFactory
|
||||
* @param mixed $imageFactory
|
||||
* @return $this
|
||||
*/
|
||||
public function setImageFactory($imageFactory)
|
||||
{
|
||||
$this->imageFactory = $imageFactory;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue