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
Incidents
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
062a307d
Commit
062a307d
authored
Apr 08, 2020
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add intermediate sound quality
parent
8e465650
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
emissions/management/commands/create-sound-files.py
emissions/management/commands/create-sound-files.py
+3
-1
emissions/models.py
emissions/models.py
+1
-0
No files found.
emissions/management/commands/create-sound-files.py
View file @
062a307d
...
...
@@ -124,8 +124,10 @@ class Command(BaseCommand):
orig_bitrate
=
get_bitrate
(
soundfile
.
file
.
path
)
vorbis_q
=
5
if
orig_bitrate
is
not
None
:
if
soundfile
.
episode
.
emission
.
podcast_sound_quality
==
'high'
:
if
soundfile
.
episode
.
emission
.
podcast_sound_quality
==
'high
est
'
:
vorbis_q
=
9
elif
soundfile
.
episode
.
emission
.
podcast_sound_quality
==
'high'
:
vorbis_q
=
7
# cap quality to original bitrate (using vorbis quality mapping)
for
i
,
rate
in
enumerate
(
vorbis_rates
):
if
orig_bitrate
<
rate
:
...
...
emissions/models.py
View file @
062a307d
...
...
@@ -35,6 +35,7 @@ LICENSES = (
PODCAST_SOUND_QUALITY_LIST
=
(
(
'standard'
,
_
(
'Standard'
)),
(
'high'
,
_
(
'High'
)),
(
'highest'
,
_
(
'Highest'
)),
)
...
...
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