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
5329b5af
Commit
5329b5af
authored
Feb 08, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
a07be917
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
media.class.php
media.class.php
+4
-6
No files found.
media.class.php
View file @
5329b5af
...
@@ -173,9 +173,10 @@ class Media {
...
@@ -173,9 +173,10 @@ class Media {
if
(
$mysqli
->
error
!=
""
){
echo
"Mysql-Fehler: "
.
$mysqli
->
error
.
PHP_EOL
;
return
false
;}
if
(
$mysqli
->
error
!=
""
){
echo
"Mysql-Fehler: "
.
$mysqli
->
error
.
PHP_EOL
;
return
false
;}
$counterNotFound
=
0
;
$counterNotFound
=
0
;
$counterChange
=
0
;
$counterChange
=
0
;
$fehler
=
""
;
$fehler
global
=
""
;
while
(
$Film
=
$result
->
fetch_assoc
()){
while
(
$Film
=
$result
->
fetch_assoc
()){
$newData
=
array
();
$newData
=
array
();
$fehler
=
""
;
echo
" Hole Daten von imdb... "
;
echo
" Hole Daten von imdb... "
;
// Werte aus IMdb Auslesen...
// Werte aus IMdb Auslesen...
$imdb
=
new
IMDB
(
"http://www.imdb.com/title/tt"
.
$Film
[
"imdbID"
]
.
"/"
);
$imdb
=
new
IMDB
(
"http://www.imdb.com/title/tt"
.
$Film
[
"imdbID"
]
.
"/"
);
...
@@ -254,6 +255,7 @@ class Media {
...
@@ -254,6 +255,7 @@ class Media {
$changed
.=
$key
.
", "
;
$changed
.=
$key
.
", "
;
}
}
}
}
$fehlerglobal
=
$fehler
;
echo
$fehler
;
echo
$fehler
;
if
(
!
$first
){
if
(
!
$first
){
$SQL
=
"UPDATE Filme SET"
.
$update
.
" WHERE imdbID = '"
.
$Film
[
"imdbID"
]
.
"';"
;
$SQL
=
"UPDATE Filme SET"
.
$update
.
" WHERE imdbID = '"
.
$Film
[
"imdbID"
]
.
"';"
;
...
@@ -266,10 +268,6 @@ class Media {
...
@@ -266,10 +268,6 @@ class Media {
}
else
{
}
else
{
echo
"Nix zu ändern bei "
.
$Film
[
"imdbID"
]
.
"!"
.
PHP_EOL
;
echo
"Nix zu ändern bei "
.
$Film
[
"imdbID"
]
.
"!"
.
PHP_EOL
;
}
}
}
else
{
}
else
{
echo
$this
->
Console
->
error
(
" fail!"
)
.
PHP_EOL
;
echo
$this
->
Console
->
error
(
" fail!"
)
.
PHP_EOL
;
...
@@ -278,7 +276,7 @@ class Media {
...
@@ -278,7 +276,7 @@ class Media {
}
}
}
}
echo
PHP_EOL
;
echo
PHP_EOL
.
$fehlerglobal
.
PHP_EOL
;
$end
=
time
();
$end
=
time
();
$laufzeit
=
$end
-
$start
;
$laufzeit
=
$end
-
$start
;
$H
=
floor
(
$laufzeit
/
3600
);
$H
=
floor
(
$laufzeit
/
3600
);
...
...
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