Compare commits

..

2 Commits

Author SHA1 Message Date
Yiannis Christodoulou
75b88a6f9c build assets (chapters editor) 2025-11-17 12:55:43 +02:00
Yiannis Christodoulou
f2e04cbe2d FIX: Preserve custom chapter titles when renumbering (151)
Updated the renumberAllSegments function to only update chapter titles that match the default 'Chapter X' pattern, preserving any custom titles. Also ensured segments are renumbered after updates for consistent chronological naming.
2025-11-17 12:47:16 +02:00
2 changed files with 3 additions and 10 deletions

View File

@@ -1 +1 @@
VERSION = "7.2.2" VERSION = "7.2.1"

View File

@@ -329,17 +329,10 @@ class Media(models.Model):
if to_transcribe: if to_transcribe:
TranscriptionRequest.objects.create(media=self, translate_to_english=False) TranscriptionRequest.objects.create(media=self, translate_to_english=False)
tasks.whisper_transcribe.apply_async( tasks.whisper_transcribe.delay(self.friendly_token, translate_to_english=False)
args=[self.friendly_token, False],
countdown=10,
)
if to_transcribe_and_translate: if to_transcribe_and_translate:
TranscriptionRequest.objects.create(media=self, translate_to_english=True) TranscriptionRequest.objects.create(media=self, translate_to_english=True)
tasks.whisper_transcribe.apply_async( tasks.whisper_transcribe.delay(self.friendly_token, translate_to_english=True)
args=[self.friendly_token, True],
countdown=10,
)
def update_search_vector(self): def update_search_vector(self):
""" """