Skip to content
Snippets Groups Projects
Unverified Commit a7ddbc04 authored by pukkandan's avatar pukkandan
Browse files

[ModifyChapters] Handle the entire video being marked for removal

Closes #5238
parent 8fab2330
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,9 @@ def run(self, info):
info['chapters'], cuts = self._remove_marked_arrange_sponsors(chapters + sponsor_chapters)
if not cuts:
return [], info
elif not info['chapters']:
self.report_warning('You have requested to remove the entire video, which is not possible')
return [], info
original_duration, info['duration'] = info.get('duration'), info['chapters'][-1]['end_time']
if self._duration_mismatch(real_duration, original_duration, 1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment