add 1400p support
This commit is contained in:
parent
78e59a4630
commit
a249d6b3b0
|
@ -0,0 +1,23 @@
|
||||||
|
# Generated by Django 3.1.4 on 2020-12-06 09:11
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('sync', '0010_auto_20201206_0159'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='source',
|
||||||
|
name='fallback',
|
||||||
|
field=models.CharField(choices=[('f', 'Fail, do not download any media'), ('s', 'Get next best SD media or codec instead'), ('h', 'Get next best HD media or codec instead')], db_index=True, default='h', help_text='What do do when media in your source resolution and codecs is not available', max_length=1, verbose_name='fallback'),
|
||||||
|
),
|
||||||
|
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)'), ('audio', 'Audio only')], db_index=True, default='1080p', help_text='Source resolution, desired video resolution to download', max_length=8, verbose_name='source resolution'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -28,16 +28,19 @@ class Source(models.Model):
|
||||||
SOURCE_RESOLUTION_480p = '480p'
|
SOURCE_RESOLUTION_480p = '480p'
|
||||||
SOURCE_RESOLUTION_720P = '720p'
|
SOURCE_RESOLUTION_720P = '720p'
|
||||||
SOURCE_RESOLUTION_1080P = '1080p'
|
SOURCE_RESOLUTION_1080P = '1080p'
|
||||||
|
SOURCE_RESOLUTION_1440P = '1440p'
|
||||||
SOURCE_RESOLUTION_2160P = '2160p'
|
SOURCE_RESOLUTION_2160P = '2160p'
|
||||||
SOURCE_RESOLUTION_AUDIO = 'audio'
|
SOURCE_RESOLUTION_AUDIO = 'audio'
|
||||||
SOURCE_RESOLUTIONS = (SOURCE_RESOLUTION_360p, SOURCE_RESOLUTION_480p,
|
SOURCE_RESOLUTIONS = (SOURCE_RESOLUTION_360p, SOURCE_RESOLUTION_480p,
|
||||||
SOURCE_RESOLUTION_720P, SOURCE_RESOLUTION_1080P,
|
SOURCE_RESOLUTION_720P, SOURCE_RESOLUTION_1080P,
|
||||||
SOURCE_RESOLUTION_2160P, SOURCE_RESOLUTION_AUDIO)
|
SOURCE_RESOLUTION_1440P, SOURCE_RESOLUTION_2160P,
|
||||||
|
SOURCE_RESOLUTION_AUDIO)
|
||||||
SOURCE_RESOLUTION_CHOICES = (
|
SOURCE_RESOLUTION_CHOICES = (
|
||||||
(SOURCE_RESOLUTION_360p, _('360p (SD)')),
|
(SOURCE_RESOLUTION_360p, _('360p (SD)')),
|
||||||
(SOURCE_RESOLUTION_480p, _('480p (SD)')),
|
(SOURCE_RESOLUTION_480p, _('480p (SD)')),
|
||||||
(SOURCE_RESOLUTION_720P, _('720p (HD)')),
|
(SOURCE_RESOLUTION_720P, _('720p (HD)')),
|
||||||
(SOURCE_RESOLUTION_1080P, _('1080p (Full HD)')),
|
(SOURCE_RESOLUTION_1080P, _('1080p (Full HD)')),
|
||||||
|
(SOURCE_RESOLUTION_1440P, _('1440p (2K)')),
|
||||||
(SOURCE_RESOLUTION_2160P, _('2160p (4K)')),
|
(SOURCE_RESOLUTION_2160P, _('2160p (4K)')),
|
||||||
(SOURCE_RESOLUTION_AUDIO, _('Audio only')),
|
(SOURCE_RESOLUTION_AUDIO, _('Audio only')),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue