Hello guys in movie part I can use this method GetGenreMoviesAsync for gettin movie by genreid but I also want to get tvshow by genre id in here giving answer is use discover tv show but I cant use it client.DiscoverTvShowsAsync(); can anyone help me pls?
找不到电影或剧集?登录并创建它吧。
dobyvatel 的回复
于 2022 年 12 月 07 日 5:21下午
I am coding .net project btw
ticao2 🇧🇷 pt-BR 的回复
于 2022 年 12 月 08 日 7:31下午
As for the code you are using I can't help.
I can tell you which API Request you should make.
dobyvatel 的回复
于 2022 年 12 月 09 日 1:41上午
I can just use discover tv but I couldnt use it If you know can you help me pls
ticao2 🇧🇷 pt-BR 的回复
于 2022 年 12 月 09 日 9:40下午
Search Movies/TV Show with a Specific Genre
First you need to know what Genre ID you want to search for.
The list of Genre IDs is here, for Movie and TV Show.
get/genre/movie/list - https://developers.themoviedb.org/3/genres/get-movie-list
get/genre/tv/list - https://developers.themoviedb.org/3/genres/get-tv-list
In this case, the Comedy Genre ID for Movies/TV Show is 35.
Then you make a Discover API Request
get/discover/movie - https://developers.themoviedb.org/3/discover/movie-discover
get/discover/tv https://developers.themoviedb.org/3/discover/tv-discover
And use the filter &with_genres=35
Example
If you want you can filter by two or more Genres, for example also Crime ID 80
AND (with comma) &with_genres=35,80
OR (with Pipe) &with_genres=35|80
You can use any other filter simultaneously. Year, date etc...
dobyvatel 的回复
于 2022 年 12 月 10 日 8:15上午
I understand what you said okay in coding part
the blank part I cant use it I didnt see any function any parameter here the actually problem is here.I know most people use it as you explanation. :(
ticao2 🇧🇷 pt-BR 的回复
于 2022 年 12 月 11 日 10:16上午
If I understand correctly you are using " .NET " programming code.
Perhaps it is using some other associated tool for development.
If this is true it might be better to add this information in the title of this conversation.
For example:
.NET - I want to get tv show by genre id but how ?
Or something similar.
So other users of this code may be interested and post a solution here.