]> git.parisson.com Git - telemeta.git/commitdiff
Removing numerical prefix in marker title
authorGael Le Mignot <gael@pilotsystems.net>
Thu, 19 Dec 2019 10:21:56 +0000 (11:21 +0100)
committerGael Le Mignot <gael@pilotsystems.net>
Thu, 19 Dec 2019 10:21:56 +0000 (11:21 +0100)
telemeta/util/kdenlive/session.py

index bb040d0087ebe664665efe048d06778205748d7a..448550a83d4ea5f802879bbf748074cf3e21124a 100644 (file)
@@ -145,7 +145,12 @@ class KDEnLiveSession(object):
 
                             marker['time'] = rel_time
                             marker['session_timecode'] = time.strftime('%H:%M:%S', time.gmtime(rel_time))
-                            marker['comment'] = self.fix_text(att['cdata'])
+                            comment = self.fix_text(att['cdata'])
+                            if ":" in comment:
+                                pre, post = comment.split(':', 1)
+                                if pre.isdigit():
+                                    comment = post
+                            marker['comment'] = comment
                             markers.append(marker)
 
                         i += 1