Skip to content

Commit

Permalink
搜索电视剧使用当前年份
Browse files Browse the repository at this point in the history
  • Loading branch information
fengqi committed May 20, 2023
1 parent bc5ad47 commit c59174f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tmdb/search_tv.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ func (t *tmdb) SearchShows(chsTitle, engTitle string, year int) (*SearchResults,
if chsTitle != "" {
if year > 0 {
searchComb = append(searchComb, map[string]string{
"query": chsTitle,
"page": "1",
"include_adult": "true",
"first_air_date_year": strYear,
"query": chsTitle,
"page": "1",
"include_adult": "true",
"year": strYear,
})
}
searchComb = append(searchComb, map[string]string{
Expand All @@ -87,10 +87,10 @@ func (t *tmdb) SearchShows(chsTitle, engTitle string, year int) (*SearchResults,
if engTitle != "" {
if year > 0 {
searchComb = append(searchComb, map[string]string{
"query": engTitle,
"page": "1",
"include_adult": "true",
"first_air_date_year": strYear,
"query": engTitle,
"page": "1",
"include_adult": "true",
"year": strYear,
})
}
searchComb = append(searchComb, map[string]string{
Expand Down

0 comments on commit c59174f

Please sign in to comment.