public function episodeSetStatus($tvdbId, $season, $status, $episode = null, $force = 0)
    {
        $uri = 'episode.setstatus';
        $uriData = [
            'tvdbid' => $tvdbId,
            'season' => $season,
            'status' => $status,
            'force' => $force
        ];
        if ( $episode ) { $uriData['episode'] = $episode; }

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function episodeSetStatus($tvdbId, $season, $status, $episode = null, $force = 0)
    {
        $uri = 'episode.setstatus';
        $uriData = [
            'tvdbid' => $tvdbId,
            'season' => $season,
            'status' => $status,
            'force' => $force
        ];
        if ( $episode ) { $uriData['episode'] = $episode; }

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function episodeSetStatus ( $ tvdbId , $ season , $ status , $ episode = null , $ force = 0 ) { $ uri = 'episode.setstatus' ; $ uriData = [ 'tvdbid' => $ tvdbId , 'season' => $ season , 'status' => $ status , 'force' => $ force ] ; if ( $ episode ) { $ uriData [ 'episode' ] = $ episode ; } try { $ response = $ this -> _request ( [ 'uri' => $ uri , 'type' => 'get' , 'data' => $ uriData ] ) ; } catch ( \ Exception $ e ) { throw new InvalidException ( $ e -> getMessage ( ) ) ; } return $ response -> getBody ( ) -> getContents ( ) ; }
Set the status of an epsiode or season.

@param int $tvdbId tvdbid unique show id
@param int $season season number
@param string $status wanted, skipped, archived, ignored
@param int|null $episode episode number
--- if an episode is not provided, then the whole seasons' status will be set.
@param int $force 0: not existing episodes 1: include existing episodes (can replace downloaded episodes)
@return string
@throws InvalidException
Set the status of an epsiode or season .