mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-22 13:06:34 +00:00
Replace FALLBACK_FAIL
Remove `FALLBACK_FAIL`, `FALLBACK_NEXT_BEST`, and `FALLBACK_NEXT_BEST_HD`
This commit is contained in:
parent
a9f9424dd5
commit
366e6fd864
@ -41,10 +41,6 @@ class Source(models.Model):
|
|||||||
or a YouTube playlist.
|
or a YouTube playlist.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
FALLBACK_FAIL = Val(Fallback.FAIL)
|
|
||||||
FALLBACK_NEXT_BEST = Val(Fallback.NEXT_BEST)
|
|
||||||
FALLBACK_NEXT_BEST_HD = Val(Fallback.NEXT_BEST_HD)
|
|
||||||
|
|
||||||
sponsorblock_categories = CommaSepChoiceField(
|
sponsorblock_categories = CommaSepChoiceField(
|
||||||
_(''),
|
_(''),
|
||||||
max_length=128,
|
max_length=128,
|
||||||
@ -452,7 +448,7 @@ class Source(models.Model):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def can_fallback(self):
|
def can_fallback(self):
|
||||||
return self.fallback != self.FALLBACK_FAIL
|
return self.fallback != Val(Fallback.FAIL)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def example_media_format_dict(self):
|
def example_media_format_dict(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user