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
c3fe70e2
Commit
c3fe70e2
authored
Mar 11, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
einige kleine änderungen
parent
d3f70c29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
media.class.php
media.class.php
+9
-5
No files found.
media.class.php
View file @
c3fe70e2
...
@@ -154,18 +154,22 @@ class Media {
...
@@ -154,18 +154,22 @@ class Media {
echo
"Datei liegt schon am ausgabe Ort!"
.
PHP_EOL
;
echo
"Datei liegt schon am ausgabe Ort!"
.
PHP_EOL
;
}
}
else
{
else
{
if
(
!
is_dir
(
$this
->
PfadzumAusgeben
.
(
$array
[
"3d"
]
==
""
?
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"Filme"
]
:
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"3D"
])
.
$array
[
"collection"
]
.
'/'
)){
shell_exec
(
"mkdir '"
.
$this
->
PfadzumAusgeben
.
(
$array
[
"3d"
]
==
""
?
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"Filme"
]
:
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"3D"
])
.
$array
[
"collection"
]
.
'/'
.
"'"
);
}
if
(
isset
(
$array
[
"collection"
])){
if
(
isset
(
$array
[
"collection"
])){
echo
"Collection Ausgabe in eigenen Collection Ordner: "
.
$array
[
"collection"
]
.
PHP_EOL
;
echo
"Collection Ausgabe in eigenen Collection Ordner: "
.
$array
[
"collection"
]
.
PHP_EOL
;
//exit;
$Pfadnew
=
$array
[
"collection"
]
.
'/'
;
}
else
{
$Pfadnew
=
''
;
}
if
(
!
is_dir
(
$this
->
PfadzumAusgeben
.
(
$array
[
"3d"
]
==
""
?
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"Filme"
]
:
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"3D"
])
.
$Pfadnew
)){
shell_exec
(
"mkdir '"
.
$this
->
PfadzumAusgeben
.
(
$array
[
"3d"
]
==
""
?
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"Filme"
]
:
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"3D"
])
.
$Pfadnew
.
"'"
);
}
}
echo
"Verschiebe Datei..."
;
echo
"Verschiebe Datei..."
;
$copy
=
'mv "'
.
$copy
=
'mv "'
.
$Pfad
.
$FilenameOrg
.
'" "'
.
$Pfad
.
$FilenameOrg
.
'" "'
.
$this
->
PfadzumAusgeben
.
(
$array
[
"3d"
]
==
""
?
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"Filme"
]
:
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"3D"
])
.
$
array
[
"collection"
]
.
'/'
.
$array
[
"name"
]
.
" ("
.
$array
[
"resolution"
]
.
")"
.
(
$array
[
"3d"
]
!=
""
?
" (3D)"
:
""
)
.
" ("
.
$array
[
"imdbID"
]
.
")."
.
$Endung
.
'"'
;
$this
->
PfadzumAusgeben
.
(
$array
[
"3d"
]
==
""
?
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"Filme"
]
:
$this
->
config
[
"HDD"
][
$this
->
HDDID
][
"3D"
])
.
$
Pfadnew
.
$array
[
"name"
]
.
" ("
.
$array
[
"resolution"
]
.
")"
.
(
$array
[
"3d"
]
!=
""
?
" (3D)"
:
""
)
.
" ("
.
$array
[
"imdbID"
]
.
")."
.
$Endung
.
'"'
;
file_put_contents
(
"./phpTestout/imdbID/"
.
$array
[
'imdbID'
]
.
".txt"
,
$copy
.
PHP_EOL
,
FILE_APPEND
);
file_put_contents
(
"./phpTestout/imdbID/"
.
$array
[
'imdbID'
]
.
".txt"
,
$copy
.
PHP_EOL
,
FILE_APPEND
);
shell_exec
(
$copy
);
shell_exec
(
$copy
);
echo
"done!"
.
PHP_EOL
;
echo
"done!"
.
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