CoolestKid

Продвинутый пользователь
Регистрация
01.03.2023
Сообщения
99
Реакции
9
Hi, All

How can I use Player and Specify this is Player for Movies and this for Tv Shows?


I have My API For Tv Shows: https://api.9animetv.live/series-api.php?id=100088

And For Movies: https://api.9animetv.live/movie-api.php?id=315162


But I don know how to use them to make Player Work for Movies and Tv Shows..

I tried to put below code in admin-secret/player but Player for movies it shows to some tv shows and Player for Tv Shows it not working, No Season Selector or Episode Selector

Код:
/api?token=TEST&id=[id] ~ "" ~ result.embed <> _VALUE_?season=[season]&episode=[episode]

/api?token=TEST&id=[id] ~ "Trailer" ~ result.trailer

https://api.9animetv.live/movie-api.php?id=[tmdb_id] ~ "MAIN" ~ result.0.iframe

https://api.9animetv.live/series-api.php?id=[tmdb_id] ~ "MAIN TV" ~ results.0.iframe <> _VALUE_?season=[season]&episode=[episode]

https://watch.9animetv.live/api/short?api_token=eMdYMaCuCWc8kBX83dXWrcrZ5Xkhi5Qn&imdb_id=[imdb_id] ~ "VIDEOAPI" ~ data.0.iframe_src

https://videocdn.tv/api/short?api_token=Gbpr6CeRcQKypJK0J8MxvXgxavuPMV86&imdb_id=[imdb_id] ~ "VideoCDN" ~ data.0.iframe_src <> _VALUE_?season=[season]&episode=[episode]

https://api.themoviedb.org/3/[type]/[tmdb_id]?language=en&append_to_response=videos&api_key=269890f657dddf4635473cf4cf456576 ~ "Trailer (TMDb)" ~ videos.results.0.key <> https://www.youtube.com/embed/_VALUE_ ~ videos.results.0.key <> https://img.youtube.com/vi/_VALUE_/sddefault.jpg

https://www.googleapis.com/youtube/v3/search?part=id%2Csnippet&maxResults=1&key=AIzaSyCsT5C4pBFWpzyP4hEOen2ZBhn26AhMCkM&q=[title]%20[year]%20trailer ~ "Trailer (YouTube)" ~ items.0.id.videoId <> https://www.youtube.com/embed/_VALUE_ ~ items.0.id.videoId <> https://img.youtube.com/vi/_VALUE_/sddefault.jpg

So I thought may be am doing the wrong way.. So I decided to read CinemaPlayer documentation and build Player for Series

Here it is: https://api.9animetv.live/player/series-player.php?id=100088 it use TMDB ID

But Still I don know how to use that Player in My Admin Panel.. to make Player for Movies and Tv Shows Work and Also Episodes.. Can Someone Please give me guide in this?

Is the idea of making CinemaPlayer outside of Admin Panel was right? or there is a way to do this in Admin Panel? And If I can do it in Panel, Can I get a guide on how to do it in Admin Panel?

Thanks.
 

anime

Пользователь
Регистрация
12.03.2023
Сообщения
13
Реакции
12
Is the idea of making CinemaPlayer outside of Admin Panel was right? or there is a way to do this in Admin Panel?
Its a good idea and this player can be inserted into the movie page

https://api.9animetv.live/player/series-player.php?id=[tmdb_id] ~ "player" ~ iframe

and Setting the embedded player /embed/[id] button to right "data-cinemaplayer-tabs-right": "15px",

{
"data-cinemaplayer-tabs-top": "15px",
"data-cinemaplayer-tabs-left": "",
"data-cinemaplayer-tabs-right": "15px",
"data-cinemaplayer-loader-display": "none",
"data-cinemaplayer-select-season": "[season]",
"data-cinemaplayer-select-episode": "[episode]"
}

And If I can do it in Panel, Can I get a guide on how to do it in Admin Panel?
you must first get all players into the custom field via api and then you can use the player
n0vdKg2.png
Source: https://www.blackhatworld.com/seo/o...e-for-streaming-movies-and-tv-series.1333008/
 

CoolestKid

Продвинутый пользователь
Регистрация
01.03.2023
Сообщения
99
Реакции
9
Its a good idea and this player can be inserted into the movie page

https://api.9animetv.live/player/series-player.php?id=[tmdb_id] ~ "player" ~ iframe

and Setting the embedded player /embed/[id] button to right "data-cinemaplayer-tabs-right": "15px",

{
"data-cinemaplayer-tabs-top": "15px",
"data-cinemaplayer-tabs-left": "",
"data-cinemaplayer-tabs-right": "15px",
"data-cinemaplayer-loader-display": "none",
"data-cinemaplayer-select-season": "[season]",
"data-cinemaplayer-select-episode": "[episode]"
}


you must first get all players into the custom field via api and then you can use the player
n0vdKg2.png
Source: https://www.blackhatworld.com/seo/o...e-for-streaming-movies-and-tv-series.1333008/
Yes Thanks I have read that Post 10x Times before.. But for really I didn't understand how he registered custom Player.. I also did a StreamSB test and the Player was working on site.. Without me understanding how it work..
 

anime

Пользователь
Регистрация
12.03.2023
Сообщения
13
Реакции
12
I think it works like this

your server every hour :>> get name folder on StreamSB by api (tt12345) :>> get info from TMDb by api (api.tmdb.com/tt12345) :>> save to server db info and players form StreamSB (custom.player1)

player works like this

/api?token=&imdb_id=tt12345 :>> get json embed (/embed/12345 ) :>> paste on movie page

embed works like this

/embed/12345 :>> /player/12345?hash=secret :>> get database field custom.player1,2,3,4,5...
 

CoolestKid

Продвинутый пользователь
Регистрация
01.03.2023
Сообщения
99
Реакции
9
I will also like to Specify Player for Movies and Player for Series If Possible, Because TMDB have the same ID for some movies and some TV Shows

Example: https://www.themoviedb.org/tv/100088

And This one Movies: https://www.themoviedb.org/movie/100088

So When you Play with that tmdb id, that Player Appear in that movie and in that Series.. Which is wrong.. But if it not Possible to do that I will look if there is alternative, since my Database Player is filled with TMDB IDs
 

CoolestKid

Продвинутый пользователь
Регистрация
01.03.2023
Сообщения
99
Реакции
9
I think it works like this

your server every hour :>> get name folder on StreamSB by api (tt12345) :>> get info from TMDb by api (api.tmdb.com/tt12345) :>> save to server db info and players form StreamSB (custom.player1)

player works like this

/api?token=&imdb_id=tt12345 :>> get json embed (/embed/12345 ) :>> paste on movie page

embed works like this

/embed/12345 :>> /player/12345?hash=secret :>> get database field custom.player1,2,3,4,5...
Thanks I will try again
 

anime

Пользователь
Регистрация
12.03.2023
Сообщения
13
Реакции
12
So When you Play with that tmdb id, that Player Appear in that movie and in that Series.. Which is wrong.. But if it not Possible to do that I will look if there is alternative, since my Database Player is filled with TMDB IDs
save movies db "movie" <> type

0 ~ https://api.themoviedb.org/3/movie/popular?api_key=269890f657dddf4635473cf4cf456576&page=[page] ~ results.0.id ~ https://api.themoviedb.org/3/movie/[id]?api_key=269890f657dddf4635473cf4cf456576&append_to_response=credits,external_ids&language=en ~ id <> custom.tmdb_id ~ external_ids.imdb_id <> custom.imdb_id ~ "movie" <> type ~ backdrop_path <> pictures ~ poster_path <> poster ~ release_date <> premiere ~ title <> title_ru ~ original_title <> title_en ~ overview <> description ~ vote_average <> rating ~ vote_count <> vote ~ genres.0.name <> genre ~ credits.cast.0.name <> actor <> 5 ~ credits.crew.0.name <> director <> 5 <> job == Director ~ production_countries.0.iso_3166_1 <> country

save series db "tv" <> type

0 ~ https://api.themoviedb.org/3/tv/popular?api_key=269890f657dddf4635473cf4cf456576&page=[page] ~ results.0.id ~ https://api.themoviedb.org/3/tv/[id]?api_key=269890f657dddf4635473cf4cf456576&append_to_response=credits,external_ids&language=en ~ id <> custom.tmdb_id ~ external_ids.imdb_id <> custom.imdb_id ~ "tv" <> type ~ backdrop_path <> pictures ~ poster_path <> poster ~ first_air_date <> premiere ~ name <> title_ru ~ original_name <> title_en ~ overview <> description ~ vote_average <> rating ~ vote_count <> vote ~ genres.0.name <> genre ~ credits.cast.0.name <> actor <> 5 ~ credits.crew.0.name <> director <> 5 <> job == Director ~ production_countries.0.iso_3166_1 <> country

and in database for movie ID = TMDBID+200000000 (200100088 local id if not found imdb or others)
for series ID = TMDBID+300000000 (300100088 local id if not found imdb or others)

so, embed url for movie /embed/200100088 for series /embed/300100088

or get movie by api /api?token=secret&tmdb_id=100088&type=0
get series by api /api?token=secret&tmdb_id=100088&type=1

I hope I'm not confused.)

source: https://github.com/CinemaPress/CinemaPress/issues/22
 
Последнее редактирование:

CoolestKid

Продвинутый пользователь
Регистрация
01.03.2023
Сообщения
99
Реакции
9
Thanks, The Only Solution I found easy for me.. was to make Another API that will call the Player by IMDB ID and it work.. thanks so much for your help
 
Верх