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
e3e4d4b4
Commit
e3e4d4b4
authored
Mar 14, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
993fbb68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
media.class.php
media.class.php
+9
-2
No files found.
media.class.php
View file @
e3e4d4b4
...
@@ -460,8 +460,15 @@ class Media {
...
@@ -460,8 +460,15 @@ class Media {
if
(
!
(
strripos
(
$Pfad
,
"("
)
==
false
)){
if
(
!
(
strripos
(
$Pfad
,
"("
)
==
false
)){
$array
[
"imdbID"
]
=
substr
(
$Pfad
,
strripos
(
$Pfad
,
"("
)
+
1
,
7
);
$array
[
"imdbID"
]
=
substr
(
$Pfad
,
strripos
(
$Pfad
,
"("
)
+
1
,
7
);
}
}
$array
[
"Season"
]
=
substr
(
$Filename
,
stripos
(
$Filename
,
"S"
)
+
1
,
2
);
for
(
$i
=
0
;
$i
<
strlen
(
$Filename
)
-
2
;
$i
++
)
{
$array
[
"Episode"
]
=
substr
(
$Filename
,
stripos
(
$Filename
,
"E"
)
+
1
,
2
);
echo
"Compare: "
.
substr
(
$Filename
,
$i
,
1
)
.
" "
.
substr
(
$Filename
,
$i
+
2
,
1
)
.
PHP_EOL
;
if
((
substr
(
$Filename
,
$i
,
1
)
==
"S"
)
AND
(
substr
(
$Filename
,
$i
+
2
,
1
)
==
"E"
)){
echo
"FOUND"
.
PHP_EOL
;
$array
[
"Season"
]
=
substr
(
$Filename
,
$i
+
1
,
2
);
$array
[
"Episode"
]
=
substr
(
$Filename
,
$i
+
3
,
2
);
}
}
return
$array
;
return
$array
;
...
...
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