def tc_to_f(timecode_str: str, df=False) -> int: if timecode_str.startswith('--:--:--'): return 0 if df: return Timecode.df_to_f(timecode_str) else: return Timecode.ndf_to_f(timecode_str)