I know that if I want the shows that have started on a specific year, I should use first_air_date_year.
But as I see, year parameter seem has bug, it has no effect as my title said: "Year parameter has no effect in https://api.themoviedb.org/3/search/tv"
Somewhere along the way, year searches got mapped to first_air_date_year internally. A year search is supposed to mimic the behaviour on discover, which is to search all episode air dates. This has been corrected.
A valid year query is any number larger than 1000, and smaller than 9999. Using 1000 as a test value would be equivalent as not entering one at all.
The fix for the first issue has been deployed, and you'll now see searches like this working correctly:
תגובה מאת ntrnghia
ב-ינואר 22, 2024 ב-10:34אחרי חצות יום
Why my discussion close?
תגובה מאת superboy97
ב-ינואר 23, 2024 ב-12:01לפני חצות יום
If you want help about a query, you need to provide the complete query you have sent as well as the supposed wrong answer you have got.
תגובה מאת ntrnghia
ב-ינואר 23, 2024 ב-12:19לפני חצות יום
So "https://api.themoviedb.org/3/search/tv?query=My%20boss&include_adult=false&language=en-US&page=1&year=2024" give the same results as "https://api.themoviedb.org/3/search/tv?query=My%20boss&include_adult=false&language=en-US&page=1&year=2020", and the results contain dramas in any year.
תגובה מאת superboy97
ב-ינואר 23, 2024 ב-12:46לפני חצות יום
With this query, you will get all shows that are still in progress in the indicated year.
If you want the shows that have started on a specif year, you should use "first_air_date_year" instead of "year".
תגובה מאת ntrnghia
ב-ינואר 23, 2024 ב-1:04לפני חצות יום
Even if I use "year=1000", I still get the same results.
תגובה מאת superboy97
ב-ינואר 23, 2024 ב-1:11לפני חצות יום
As long as you didn't give us the exact answer you got, as asked above, we can't answer you precisely.
תגובה מאת ntrnghia
ב-ינואר 23, 2024 ב-1:15לפני חצות יום
"https://api.themoviedb.org/3/search/tv?query=My%20boss&include_adult=false&language=en-US&page=1&year=1000" still give me the same results with any year. No drama in the list still in progress in year 1000.
תגובה מאת Travis Bell
ב-ינואר 23, 2024 ב-1:18לפני חצות יום
תגובה מאת ntrnghia
ב-ינואר 23, 2024 ב-1:20לפני חצות יום
I know that if I want the shows that have started on a specific year, I should use first_air_date_year. But as I see, year parameter seem has bug, it has no effect as my title said: "Year parameter has no effect in https://api.themoviedb.org/3/search/tv"
תגובה מאת Travis Bell
ב-ינואר 24, 2024 ב-3:11אחרי חצות יום
There was a few things that went wrong here:
year
searches got mapped tofirst_air_date_year
internally. Ayear
search is supposed to mimic the behaviour on discover, which is to search all episode air dates. This has been corrected.The fix for the first issue has been deployed, and you'll now see searches like this working correctly:
But please note, a lot of these pages are cached so you will have to wait up to ~8 hours for everything to purge.
תגובה מאת ntrnghia
ב-ינואר 24, 2024 ב-4:49אחרי חצות יום
I see it works now.
So to summarize:
תגובה מאת Travis Bell
ב-ינואר 24, 2024 ב-4:57אחרי חצות יום
No. It's extracted from all of the episode air dates.
first_air_date_year
is extracted from the s1e1 air date, ie. when it premiered.No.
year
is extracted from every release date.primary_release_year
would be what to use if all you want to look at is the primary release date.תגובה מאת superboy97
ב-ינואר 24, 2024 ב-4:57אחרי חצות יום
To summarize:
תגובה מאת ntrnghia
ב-ינואר 24, 2024 ב-6:50אחרי חצות יום
Thank you guys, I totally understand now. Thanks for support.