The Movie Database 支持

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?

6 回复(第 1 页,共 1 页)

Jump to last post

@dobyvatel said:

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?

I am coding .net project btw

@dobyvatel said:
I want to get tv show by genre id but how ?

@dobyvatel said:
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?
I am coding .net project btw

As for the code you are using I can't help.
I can tell you which API Request you should make.

@ticao2 said:

@dobyvatel said:
I want to get tv show by genre id but how ?

@dobyvatel said:
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?
I am coding .net project btw

As for the code you are using I can't help.
I can tell you which API Request you should make.

/// <summary>
/// Can be used to discover new tv shows matching certain criteria
/// </summary>
public DiscoverTv DiscoverTvShowsAsync()
         {
             return new DiscoverTv(this);
         }

I can just use discover tv but I couldnt use it If you know can you help me pls

@dobyvatel said:
I can just use discover tv but I couldnt use it If you know can you help me pls

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

https://api.themoviedb.org/3/discover/tv?api_key=THE_KEY&language=en-US&sort_by=popularity.desc&page=1&with_genres=35

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...

@ticao2 said:

@dobyvatel said:
I can just use discover tv but I couldnt use it If you know can you help me pls

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

https://api.themoviedb.org/3/discover/tv?api_key=THE_KEY&language=en-US&sort_by=popularity.desc&page=1&with_genres=35

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...

I understand what you said okay in coding part arrow_lower_left

[HttpGet]
        public IActionResult GetTVSeries(int genreid)
        {
            var result = client.DiscoverTvShowsAsync(                            );
            return Ok(result);
        }

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. :(

@dobyvatel said:
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. :(

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.

找不到电影或剧集?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)前一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区