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
42cc03a7
Commit
42cc03a7
authored
Feb 08, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
b56cb74d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
media.class.php
media.class.php
+6
-7
No files found.
media.class.php
View file @
42cc03a7
...
@@ -196,12 +196,7 @@ class Media {
...
@@ -196,12 +196,7 @@ class Media {
if
(
!
(
strpos
(
$fsktemp
,
"Germany"
)
===
false
)){
if
(
!
(
strpos
(
$fsktemp
,
"Germany"
)
===
false
)){
$fsk
=
trim
(
substr
(
$fsktemp
,
strpos
(
$fsktemp
,
"Germany"
)
+
8
,
2
));
$fsk
=
trim
(
substr
(
$fsktemp
,
strpos
(
$fsktemp
,
"Germany"
)
+
8
,
2
));
if
(
$fsk
==
"No"
){
/*
if
(
$fsk
==
"No"
){
echo "No gefunden!!".PHP_EOL;
$fsktemp = substr($fsktemp,strpos( $fsktemp,"Germany")+8);
echo "Suche Weiter ab: ".$fsktemp.PHP_EOL;
$fsk = trim(substr($fsktemp,strpos( $fsktemp,"Germany")+8,2));
echo "neues FSK: ".$fsk.PHP_EOL;*/
$fsk
=
18
;
$fsk
=
18
;
}
}
if
(
in_array
(
$fsk
,
array
(
0
,
6
,
12
,
16
,
18
))){
if
(
in_array
(
$fsk
,
array
(
0
,
6
,
12
,
16
,
18
))){
...
@@ -238,7 +233,8 @@ class Media {
...
@@ -238,7 +233,8 @@ class Media {
}
else
{
}
else
{
echo
" fail2!"
.
PHP_EOL
;
echo
" fail2!"
.
PHP_EOL
;
var_dump
(
$tmdb
[
"movie_results"
][
0
]);
$fehler
.=
$this
->
Console
->
error
(
"keine summery gefunden für imdbID "
.
$Film
[
"imdbID"
]
.
"!"
)
.
PHP_EOL
;
//var_dump($tmdb["movie_results"][0]);
}
}
...
@@ -252,6 +248,9 @@ class Media {
...
@@ -252,6 +248,9 @@ class Media {
if
(
isset
(
$tmdb2
[
"trailers"
][
"youtube"
][
0
][
"source"
])){
if
(
isset
(
$tmdb2
[
"trailers"
][
"youtube"
][
0
][
"source"
])){
$newData
[
"youtube"
]
=
"EN:"
.
$tmdb2
[
"trailers"
][
"youtube"
][
0
][
"source"
];
$newData
[
"youtube"
]
=
"EN:"
.
$tmdb2
[
"trailers"
][
"youtube"
][
0
][
"source"
];
}
}
else
{
$fehler
.=
$this
->
Console
->
error
(
"kein Trailer gefunden für imdbID "
.
$Film
[
"imdbID"
]
.
"!"
)
.
PHP_EOL
;
}
}
}
...
...
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