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
fe2f7b5d
Commit
fe2f7b5d
authored
Mar 17, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolution wird aus mediainfo neu gelesen
parent
0676f48f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
media.class.php
media.class.php
+7
-9
No files found.
media.class.php
View file @
fe2f7b5d
...
...
@@ -482,6 +482,12 @@ class Media {
$array
[
"width"
]
=
trim
(
str_replace
(
" "
,
""
,
str_replace
(
"pixels"
,
""
,
$value
[
"Width"
])));
//TODO Resolution aus diesen werten neusetzen
$array
[
"height"
]
=
trim
(
str_replace
(
" "
,
""
,
str_replace
(
"pixels"
,
""
,
$value
[
"Height"
])));
if
(
!
isset
(
$array
[
"width"
])
OR
(
$array
[
"width"
]
<
1280
)){
$array
[
"resolution"
]
=
"SD"
;}
else
if
(
$array
[
"width"
]
<
1920
){
$array
[
"resolution"
]
=
"720p"
;}
else
{
$array
[
"resolution"
]
=
"1080p"
;}
break
;
case
"Audio"
:
if
(
isset
(
$value
[
"Language"
])){
...
...
@@ -735,8 +741,6 @@ class Media {
return
false
;
}
$array
[
"name"
]
=
trim
(
substr
(
$Filename
,
0
,
strripos
(
$Filename
,
"("
)));
//TODO wird hier nicht gebraucht?
//$Endung = trim(substr($Filename,strripos( $Filename,".")+1));
if
(
!
(
$minimal
==
"nfo"
)){
if
((
$minimal
==
"check"
)
OR
(
$minimal
==
"einlesen"
)){
echo
" Hole Daten von imdb... "
;
...
...
@@ -1021,17 +1025,11 @@ class Media {
}
}
//var_dump($DataArr["Schauspieler"]);
//TODO Update für Schauspieler role einbauen
$SQL
=
"SELECT * FROM FilmSchauspieler WHERE imdbID = "
.
$DataArr
[
'imdbID'
];
$entrys
=
$mysqli
->
query
(
$SQL
);
echo
" Update Schauspielerrollennamen ..."
;
while
(
$entry
=
$entrys
->
fetch_array
()){
//var_dump($entry);
//var_dump(array_search($entry["schauspielerID"], $DataArr["Schauspieler"]));
//var_dump($DataArr["Schauspieler"][$entry["schauspielerID"]]);
//exit;
//$newSchauspieler = array_search($entry["schauspielerID"], $DataArr["Schauspieler"]);
//echo "Vergleiche:".$entry["role"]." mit ".$DataArr["Schauspieler"][$entry["schauspielerID"]][1].PHP_EOL;
if
(
isset
(
$DataArr
[
"Schauspieler"
][
$entry
[
"schauspielerID"
]][
1
])){
if
(
!
(
$entry
[
"role"
]
==
$DataArr
[
"Schauspieler"
][
$entry
[
"schauspielerID"
]][
1
])){
...
...
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