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
c2b65ff2
Commit
c2b65ff2
authored
Jan 26, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
32e03ca4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
media.class.php
media.class.php
+17
-4
renamer.php
renamer.php
+1
-1
No files found.
media.class.php
View file @
c2b65ff2
...
@@ -21,10 +21,18 @@ class Media {
...
@@ -21,10 +21,18 @@ class Media {
"HDD"
=>
array
(
1
=>
array
(
"HDDdir"
=>
"/media/QNAP/"
,
"HDD"
=>
array
(
1
=>
array
(
"HDDdir"
=>
"/media/QNAP/"
,
"FolderFilme"
=>
"Filme/"
,
"FolderFilme"
=>
"Filme/"
,
"Folder3D"
=>
"Filme3D/"
),
"Folder3D"
=>
"Filme3D/"
),
2
=>
NULL
,
2
=>
array
(
"HDDdir"
=>
NULL
,
3
=>
NULL
,
"FolderFilme"
=>
"Filme/"
,
4
=>
NULL
,
"Folder3D"
=>
"Filme3D/"
,
5
=>
NULL
)
3
=>
array
(
"HDDdir"
=>
NULL
,
"FolderFilme"
=>
"Filme/"
,
"Folder3D"
=>
"Filme3D/"
,
4
=>
array
(
"HDDdir"
=>
NULL
,
"FolderFilme"
=>
"Filme/"
,
"Folder3D"
=>
"Filme3D/"
,
5
=>
array
(
"HDDdir"
=>
NULL
,
"FolderFilme"
=>
"Filme/"
,
"Folder3D"
=>
"Filme3D/"
)
);
);
...
@@ -35,6 +43,11 @@ class Media {
...
@@ -35,6 +43,11 @@ class Media {
//var_dump($this->config);
//var_dump($this->config);
echo
$this
->
Console
->
getColoredString
(
"Folgende Config ist geladen:"
,
"black"
,
"light_gray"
)
.
PHP_EOL
.
PHP_EOL
;
echo
$this
->
Console
->
getColoredString
(
"Folgende Config ist geladen:"
,
"black"
,
"light_gray"
)
.
PHP_EOL
.
PHP_EOL
;
echo
"Config erstellt: "
.
date
(
"H:i:s d.m.Y "
,
$this
->
config
[
"configChangeTime"
])
.
PHP_EOL
;
echo
"Config erstellt: "
.
date
(
"H:i:s d.m.Y "
,
$this
->
config
[
"configChangeTime"
])
.
PHP_EOL
;
foreach
(
$this
->
config
[
"HDD"
]
as
$key
=>
$value
)
{
if
(
$value
[
"HDDdir"
]
!=
NULL
){
echo
"HDD "
.
$Key
.
" Mount: "
.
$value
[
"HDDdir"
]
.
PHP_EOL
;
}
}
...
...
renamer.php
View file @
c2b65ff2
...
@@ -100,7 +100,7 @@ foreach ($Notindexed as $value) {
...
@@ -100,7 +100,7 @@ foreach ($Notindexed as $value) {
//echo exec("mkdir '".str_replace("3DHD-Filme", "Filme3D",$dir.$value[0])."/'").PHP_EOL;
//echo exec("mkdir '".str_replace("3DHD-Filme", "Filme3D",$dir.$value[0])."/'").PHP_EOL;
echo
$befehl
.
PHP_EOL
;
echo
$befehl
.
PHP_EOL
;
echo
exec
(
$befehl
);
//
echo exec($befehl);
}
else
{
}
else
{
echo
"Keine Infos zu "
.
$dir
.
$value
[
0
]
.
"/"
.
$value
[
1
]
.
" gefunden!"
.
PHP_EOL
;
echo
"Keine Infos zu "
.
$dir
.
$value
[
0
]
.
"/"
.
$value
[
1
]
.
" gefunden!"
.
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