diff --git a/app/sync/migrations/0017_auto_20201208_0521.py b/app/sync/migrations/0017_auto_20201208_0521.py new file mode 100644 index 0000000..0c265f9 --- /dev/null +++ b/app/sync/migrations/0017_auto_20201208_0521.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.4 on 2020-12-08 05:21 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('sync', '0016_auto_20201208_0518'), + ] + + operations = [ + migrations.AlterField( + model_name='source', + name='source_resolution', + field=models.CharField(choices=[('360p', '360p (SD)'), ('480p', '480p (SD)'), ('720p', '720p (HD)'), ('1080p', '1080p (Full HD)'), ('1440p', '1440p (2K)'), ('2160p', '2160p (4K)'), ('4320p', '4320p (8K)'), ('audio', 'Audio only')], db_index=True, default='1080p', help_text='Source resolution, desired video resolution to download', max_length=8, verbose_name='source resolution'), + ), + ] diff --git a/app/sync/models.py b/app/sync/models.py index 32de399..f128635 100644 --- a/app/sync/models.py +++ b/app/sync/models.py @@ -30,11 +30,12 @@ class Source(models.Model): SOURCE_RESOLUTION_1080P = '1080p' SOURCE_RESOLUTION_1440P = '1440p' SOURCE_RESOLUTION_2160P = '2160p' + SOURCE_RESOLUTION_4320P = '4320p' SOURCE_RESOLUTION_AUDIO = 'audio' SOURCE_RESOLUTIONS = (SOURCE_RESOLUTION_360P, SOURCE_RESOLUTION_480P, SOURCE_RESOLUTION_720P, SOURCE_RESOLUTION_1080P, SOURCE_RESOLUTION_1440P, SOURCE_RESOLUTION_2160P, - SOURCE_RESOLUTION_AUDIO) + SOURCE_RESOLUTION_4320P, SOURCE_RESOLUTION_AUDIO) SOURCE_RESOLUTION_CHOICES = ( (SOURCE_RESOLUTION_360P, _('360p (SD)')), (SOURCE_RESOLUTION_480P, _('480p (SD)')), @@ -42,6 +43,7 @@ class Source(models.Model): (SOURCE_RESOLUTION_1080P, _('1080p (Full HD)')), (SOURCE_RESOLUTION_1440P, _('1440p (2K)')), (SOURCE_RESOLUTION_2160P, _('2160p (4K)')), + (SOURCE_RESOLUTION_4320P, _('4320p (8K)')), (SOURCE_RESOLUTION_AUDIO, _('Audio only')), ) RESOLUTION_MAP = { @@ -50,7 +52,8 @@ class Source(models.Model): SOURCE_RESOLUTION_720P: 720, SOURCE_RESOLUTION_1080P: 1080, SOURCE_RESOLUTION_1440P: 1440, - SOURCE_RESOLUTION_2160P: 2160 + SOURCE_RESOLUTION_2160P: 2160, + SOURCE_RESOLUTION_4320P: 4320, } SOURCE_VCODEC_AVC1 = 'AVC1'