Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for .nfs files #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion to_srt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re


SUPPORTED_EXTENSIONS = [".xml", ".vtt"]
SUPPORTED_EXTENSIONS = [".xml", ".vtt", ".nfs"]


def leading_zeros(value, digits=2):
Expand Down Expand Up @@ -73,6 +73,8 @@ def to_srt(text, extension):
return xml_to_srt(text)
if extension.lower() == ".vtt":
return vtt_to_srt(text)
if extension.lower() == ".nfs":
return xml_to_srt(text)


def convert_vtt_time(line):
Expand Down