mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +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
|
@ -14,6 +14,7 @@ namespace Tmdb\HttpClient\Plugin;
|
|||
|
||||
use Guzzle\Common\Event;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Tmdb\GuestSessionToken;
|
||||
use Tmdb\SessionToken;
|
||||
|
||||
/**
|
||||
|
@ -41,7 +42,11 @@ class SessionTokenPlugin implements EventSubscriberInterface
|
|||
{
|
||||
$url = $event['request']->getUrl(true);
|
||||
|
||||
$url->getQuery()->set('session_id', $this->token->getToken());
|
||||
if ($this->token instanceof GuestSessionToken) {
|
||||
$url->getQuery()->set('guest_session_id', $this->token->getToken());
|
||||
} else {
|
||||
$url->getQuery()->set('session_id', $this->token->getToken());
|
||||
}
|
||||
|
||||
$event['request']->setUrl($url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue