Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
django-panik-emissions
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
radiopanik
django-panik-emissions
Commits
06641a2e
Commit
06641a2e
authored
Sep 01, 2020
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add subsecond support to soxi fallback
parent
13ac90a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
emissions/utils.py
emissions/utils.py
+2
-2
No files found.
emissions/utils.py
View file @
06641a2e
...
@@ -30,10 +30,10 @@ def get_duration(filename):
...
@@ -30,10 +30,10 @@ def get_duration(filename):
if
not
line
.
startswith
(
'Duration'
):
if
not
line
.
startswith
(
'Duration'
):
continue
continue
try
:
try
:
hours
,
minutes
,
seconds
=
re
.
findall
(
r'(\d\d):(\d\d):
(\d\d)'
,
line
)[
0
]
hours
,
minutes
,
seconds
,
cs
=
re
.
findall
(
r'(\d\d):(\d\d):(\d\d)\.
(\d\d)'
,
line
)[
0
]
except
IndexError
:
except
IndexError
:
continue
continue
return
int
(
hours
)
*
3600
+
int
(
minutes
)
*
60
+
int
(
seconds
)
return
int
(
hours
)
*
3600
+
int
(
minutes
)
*
60
+
int
(
seconds
)
+
(
int
(
cs
)
/
100
)
return
None
return
None
...
...
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