Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBPythonScripte
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBPythonScripte
Commits
daa9ea7a
Commit
daa9ea7a
authored
Mar 09, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
1eb7d749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
media.class.php
media.class.php
+2
-2
No files found.
media.class.php
View file @
daa9ea7a
...
@@ -250,7 +250,7 @@ class Media {
...
@@ -250,7 +250,7 @@ class Media {
//TODO COVERDOWNLOAD und FANART für themovieDB
//TODO COVERDOWNLOAD und FANART für themovieDB
$tmdb
=
$this
->
jsonCacheDecoder
(
"https://api.themoviedb.org/3/find/tt"
.
$imdbID
.
"?external_source=imdb_id&api_key="
.
$this
->
config
[
"ApiKeys"
][
'Tmdb_Key'
]
.
"&language=de"
);
$tmdb
=
$this
->
jsonCacheDecoder
(
"https://api.themoviedb.org/3/find/tt"
.
$imdbID
.
"?external_source=imdb_id&api_key="
.
$this
->
config
[
"ApiKeys"
][
'Tmdb_Key'
]
.
"&language=de"
);
if
(
!
(
$tmdb
==
false
)){
if
(
!
(
$tmdb
==
false
)){
if
(
isset
(
$tmdb
[
"movie_results"
])){
if
(
isset
(
$tmdb
[
"movie_results"
]
[
0
]
)){
if
(
isset
(
$tmdb
[
"movie_results"
][
0
][
"overview"
])){
if
(
isset
(
$tmdb
[
"movie_results"
][
0
][
"overview"
])){
echo
" done!"
.
PHP_EOL
;
echo
" done!"
.
PHP_EOL
;
$DataArray
[
"summary"
]
=
$tmdb
[
"movie_results"
][
0
][
"overview"
];
$DataArray
[
"summary"
]
=
$tmdb
[
"movie_results"
][
0
][
"overview"
];
...
@@ -276,7 +276,7 @@ class Media {
...
@@ -276,7 +276,7 @@ class Media {
}
}
}
else
{
}
else
{
$tmdbURL2
=
"https://api.themoviedb.org/3/mo
return true;return true;
vie/"
.
$tmdb
[
"movie_results"
][
0
][
"id"
]
.
"?api_key="
.
$this
->
config
[
"ApiKeys"
][
'Tmdb_Key'
]
.
"&language=en&append_to_response=trailers"
;
$tmdbURL2
=
"https://api.themoviedb.org/3/movie/"
.
$tmdb
[
"movie_results"
][
0
][
"id"
]
.
"?api_key="
.
$this
->
config
[
"ApiKeys"
][
'Tmdb_Key'
]
.
"&language=en&append_to_response=trailers"
;
$tmdbData2
=
$this
->
jsonCacheDecoder
(
$tmdbURL2
);
$tmdbData2
=
$this
->
jsonCacheDecoder
(
$tmdbURL2
);
if
(
isset
(
$tmdbData2
[
"trailers"
][
"youtube"
][
0
][
"source"
])){
if
(
isset
(
$tmdbData2
[
"trailers"
][
"youtube"
][
0
][
"source"
])){
$youtubeEN
=
str_replace
(
"&hd=1"
,
""
,
$tmdbData2
[
"trailers"
][
"youtube"
][
0
][
"source"
]);
$youtubeEN
=
str_replace
(
"&hd=1"
,
""
,
$tmdbData2
[
"trailers"
][
"youtube"
][
0
][
"source"
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment