]> git.bitcoin.ninja Git - youtube-dl/commit
[YoutubeDL] Disable newline conversion when writing subtitles
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 11 Aug 2016 11:04:23 +0000 (19:04 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 11 Aug 2016 11:04:23 +0000 (19:04 +0800)
commitb1927f4e8a07a7893392135a71fdb6818295bbad
treefa4f507a9fb442e101ce123ddf257d35dc880199
parent3b9323d96e2be7341d2e309124075134ec8a50ca
[YoutubeDL] Disable newline conversion when writing subtitles

By default io.open() convert all '\n' occurrences to '\r\n' when writing
files. If the content already contains '\r\n', it will be converted to
'\r\r\n', breaking some video players.
youtube_dl/YoutubeDL.py