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
1ef71e29
Commit
1ef71e29
authored
Jan 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
48fd1b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
media.class.php
media.class.php
+5
-1
No files found.
media.class.php
View file @
1ef71e29
...
...
@@ -112,6 +112,7 @@ class Media {
//var_dump($FilmeArr);
foreach
(
$FilmeArr
as
$value
)
{
//echo " ".$this->PfadzumEinlesen.'/'.(strlen($value[0])>0?$value[0].'/':'').$value[1].PHP_EOL;
$ret
=
$this
->
parseMovie
((
strlen
(
$value
[
0
])
>
0
?
$value
[
0
]
.
'/'
:
''
),
$value
[
1
]);
if
(
$ret
==
false
){
echo
$this
->
Console
->
getColoredString
(
" "
,
"black"
,
"red"
)
.
PHP_EOL
;
...
...
@@ -129,13 +130,16 @@ class Media {
$Counter
++
;
$status
=
"Laufzeit: "
.
sprintf
(
"%02d:%02d:%02d"
,
$H
,
$i
,
$s
)
.
"! "
.
$Counter
.
' von '
.
count
(
$FilmeArr
)
.
PHP_EOL
.
PHP_EOL
;
echo
$status
;
file_put_contents
(
"./phpTestout/default.txt"
,
$status
.
PHP_EOL
,
FILE_APPEND
);
file_put_contents
(
"./phpTestout/default.txt"
,
$status
.
" "
.
$value
[
1
]
.
PHP_EOL
,
FILE_APPEND
);
}
echo
$this
->
Console
->
getColoredString
(
"Alle Filme Verarbeitet!"
,
"green"
,
"light_gray"
)
.
PHP_EOL
;
echo
"Folgende Filme konten nicht verarbeitet werden: "
.
PHP_EOL
;
foreach
(
$fehlerArr
as
$fehler
)
{
echo
$fehler
.
PHP_EOL
;
}
$status
=
"Gesamtlaufzeit: "
.
sprintf
(
"%02d:%02d:%02d"
,
$H
,
$i
,
$s
)
.
"! "
.
$Counter
.
' von '
.
count
(
$FilmeArr
)
.
PHP_EOL
.
PHP_EOL
;
echo
$status
;
file_put_contents
(
"./phpTestout/default.txt"
,
$status
.
PHP_EOL
,
FILE_APPEND
);
//trim(fgets(STDIN));
echo
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