Skip to content

Commit

Permalink
set default codecs that work on all platform
Browse files Browse the repository at this point in the history
  • Loading branch information
biolds committed Jan 8, 2023
1 parent 0e86b47 commit f2f72f6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions tubesync/sync/migrations/0016_default_codecs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.15 on 2023-01-08 10:52

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sync', '0015_twitch'),
]

operations = [
migrations.AlterField(
model_name='source',
name='source_acodec',
field=models.CharField(choices=[('MP4A', 'MP4A'), ('OPUS', 'OPUS')], db_index=True, default='MP4A', help_text='Source audio codec, desired audio encoding format to download', max_length=8, verbose_name='source audio codec'),
),
migrations.AlterField(
model_name='source',
name='source_vcodec',
field=models.CharField(choices=[('AVC1', 'AVC1 (H.264)'), ('VP9', 'VP9')], db_index=True, default='AVC1', help_text='Source video codec, desired video encoding format to download (ignored if "resolution" is audio only)', max_length=8, verbose_name='source video codec'),
),
]
4 changes: 2 additions & 2 deletions tubesync/sync/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ class IndexSchedule(models.IntegerChoices):
max_length=8,
db_index=True,
choices=SOURCE_VCODEC_CHOICES,
default=SOURCE_VCODEC_VP9,
default=SOURCE_VCODEC_AVC1,
help_text=_('Source video codec, desired video encoding format to download (ignored if "resolution" is audio only)')
)
source_acodec = models.CharField(
_('source audio codec'),
max_length=8,
db_index=True,
choices=SOURCE_ACODEC_CHOICES,
default=SOURCE_ACODEC_OPUS,
default=SOURCE_ACODEC_MP4A,
help_text=_('Source audio codec, desired audio encoding format to download')
)
prefer_60fps = models.BooleanField(
Expand Down

0 comments on commit f2f72f6

Please sign in to comment.