Skip to content

Commit 8bafd38

Browse files
committed
Add videos as a append_response parameter by default, fixes #104
1 parent 6b4ae43 commit 8bafd38

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/Tmdb/Repository/TvRepository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public function load($id, array $parameters = [], array $headers = [])
5353
AppendToResponse::KEYWORDS,
5454
AppendToResponse::CHANGES,
5555
AppendToResponse::CONTENT_RATINGS,
56-
AppendToResponse::ALTERNATIVE_TITLES
56+
AppendToResponse::ALTERNATIVE_TITLES,
57+
AppendToResponse::VIDEOS,
5758
])
5859
];
5960
}

test/Tmdb/Tests/Repository/TvRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function shouldLoadTv()
2727
->method('get')
2828
->with($this->getRequest(
2929
'tv/' . self::TV_ID,
30-
['append_to_response' => 'credits,external_ids,images,translations,similar,keywords,changes,content_ratings,alternative_titles']
30+
['append_to_response' => 'credits,external_ids,images,translations,similar,keywords,changes,content_ratings,alternative_titles,videos']
3131
))
3232
;
3333

0 commit comments

Comments
 (0)