mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-06-08 18:02:36 -04:00
fix: update documentation and fix smaller issues (#1520)
This commit is contained in:
@@ -559,9 +559,8 @@ class Media(models.Model):
|
||||
profiles.remove(profile)
|
||||
encoding = Encoding(media=self, profile=profile)
|
||||
encoding.save()
|
||||
enc_url = settings.SSL_FRONTEND_HOST + encoding.get_absolute_url()
|
||||
tasks.encode_media.apply_async(
|
||||
args=[self.friendly_token, profile.id, encoding.id, enc_url],
|
||||
args=[self.friendly_token, profile.id, encoding.id],
|
||||
kwargs={"force": force},
|
||||
priority=0,
|
||||
)
|
||||
@@ -575,13 +574,12 @@ class Media(models.Model):
|
||||
continue
|
||||
encoding = Encoding(media=self, profile=profile)
|
||||
encoding.save()
|
||||
enc_url = settings.SSL_FRONTEND_HOST + encoding.get_absolute_url()
|
||||
if profile.resolution in settings.MINIMUM_RESOLUTIONS_TO_ENCODE:
|
||||
priority = 9
|
||||
else:
|
||||
priority = 0
|
||||
tasks.encode_media.apply_async(
|
||||
args=[self.friendly_token, profile.id, encoding.id, enc_url],
|
||||
args=[self.friendly_token, profile.id, encoding.id],
|
||||
kwargs={"force": force},
|
||||
priority=priority,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user