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
e39c7762
Commit
e39c7762
authored
Mar 16, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
4ba7f53b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
media.class.php
media.class.php
+4
-2
No files found.
media.class.php
View file @
e39c7762
...
@@ -296,6 +296,7 @@ class Media {
...
@@ -296,6 +296,7 @@ class Media {
foreach
(
$FilmeArr
as
$value
)
{
foreach
(
$FilmeArr
as
$value
)
{
$File
=
$value
[
2
]
.
(
strlen
(
$value
[
0
])
>
0
?
'/'
:
''
)
.
$value
[
1
];
$File
=
$value
[
2
]
.
(
strlen
(
$value
[
0
])
>
0
?
'/'
:
''
)
.
$value
[
1
];
$array
=
$this
->
parseEpisode
(
$value
[
2
]
.
(
strlen
(
$value
[
0
])
>
0
?
'/'
:
''
),
$value
[
1
],
$action
);
$array
=
$this
->
parseEpisode
(
$value
[
2
]
.
(
strlen
(
$value
[
0
])
>
0
?
'/'
:
''
),
$value
[
1
],
$action
);
$array
[
"HDD"
]
=
$this
->
HDDID
;
if
(
!
isset
(
$array
[
"width"
])
OR
(
$array
[
"width"
]
<
1280
)){
$Resolution
=
"(SD)"
;}
if
(
!
isset
(
$array
[
"width"
])
OR
(
$array
[
"width"
]
<
1280
)){
$Resolution
=
"(SD)"
;}
else
if
(
$array
[
"width"
]
<
1920
){
$Resolution
=
"(720p)"
;}
else
if
(
$array
[
"width"
]
<
1920
){
$Resolution
=
"(720p)"
;}
else
{
$Resolution
=
"(1080p)"
;}
else
{
$Resolution
=
"(1080p)"
;}
...
@@ -319,18 +320,19 @@ class Media {
...
@@ -319,18 +320,19 @@ class Media {
$values
=
array
(
0
,
"null"
,
"''"
,
"'"
.
date
(
"Y-m-d"
)
.
"'"
);
$values
=
array
(
0
,
"null"
,
"''"
,
"'"
.
date
(
"Y-m-d"
)
.
"'"
);
var_dump
(
$array
);
var_dump
(
$array
);
if
(
false
){
echo
" Berechne MD5... "
;
echo
" Berechne MD5... "
;
$array
[
"md5"
]
=
substr
(
shell_exec
(
'md5sum -b "'
.
$File
.
'"'
),
0
,
32
);
$array
[
"md5"
]
=
substr
(
shell_exec
(
'md5sum -b "'
.
$File
.
'"'
),
0
,
32
);
file_put_contents
(
"./phpTestout/imdbID/"
.
$DataArr
[
'imdbID'
]
.
".txt"
,
"md5 = "
.
$DataArr
[
"md5"
]
.
" > "
.
$File
.
PHP_EOL
,
FILE_APPEND
);
file_put_contents
(
"./phpTestout/imdbID/"
.
$DataArr
[
'imdbID'
]
.
".txt"
,
"md5 = "
.
$DataArr
[
"md5"
]
.
" > "
.
$File
.
PHP_EOL
,
FILE_APPEND
);
//$array["lastUpdate"] = date("Y-m-d");
//$array["lastUpdate"] = date("Y-m-d");
echo
" done!"
.
PHP_EOL
;
echo
" done!"
.
PHP_EOL
;
}
var_dump
(
$array
);
var_dump
(
$array
);
exit
;
exit
;
foreach
(
$DataArr
as
$key
=>
$value
)
{
foreach
(
$DataArr
as
$key
=>
$value
)
{
if
(
!
in_array
(
$key
,
array
(
"
Genre"
,
"Schauspieler
"
))
){
if
(
!
in_array
(
$key
,
array
(
"
imdbID"
,
"Season"
,
"SerienName
"
))
){
$keys
[]
=
trim
(
$key
);
$keys
[]
=
trim
(
$key
);
$values
[]
=
"'"
.
mysql_escape_string
(
trim
(
$value
))
.
"'"
;
//TODO ggf. utf8_encode einbauen?!
$values
[]
=
"'"
.
mysql_escape_string
(
trim
(
$value
))
.
"'"
;
//TODO ggf. utf8_encode einbauen?!
}
}
...
...
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