]> gitweb @ CieloNegro.org - youtube-dl.git/commit
[utils,common] Merge format_srt_time and _subtitles_timecode
authorYen Chi Hsuan <yan12125@gmail.com>
Tue, 12 May 2015 05:04:54 +0000 (13:04 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Tue, 12 May 2015 05:04:54 +0000 (13:04 +0800)
commitc1c924abfeda45f29b991bb74f315f0e79dcf126
treef29b6ae2baa7db6397a429c530a81c9ff744fd0f
parent1c7e2e64f6328024711d5fa999d4498396f4cb5c
[utils,common] Merge format_srt_time and _subtitles_timecode

format_srt_time uses a comma as the delimiter between seconds and
milliseconds while _subtitles_timecode uses a dot. All .srt examples I
found on the Internet uses a comma, so I use a comma in the merged
version. See http://matroska.org/technical/specs/subtitles/srt.html and
http://devel.aegisub.org/wiki/SubtitleFormats/SRT
youtube_dl/extractor/common.py
youtube_dl/extractor/kanalplay.py
youtube_dl/utils.py