Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[nrk] Subtitles can't be converted with python 2.6 #5036
Comments
|
I think it's OK to just workaround this by |
|
Thanks for looking into it. |
For example with http://tv.nrk.no/serie/ikke-gjoer-dette-hjemme/DMPV73000411/sesong-2/episode-1, the problem is that we call
xml.etree.ElementTree.Element.itertextin this line, which is not available in 2.6.We need to call
itertextto correctly extract the text from nodes like this one:(Call
youtube-dl 'http://tv.nrk.no/serie/ikke-gjoer-dette-hjemme/DMPV73000411/sesong-2/episode-1' --write-sub --sub-format ttmlfor getting the ttml file)I haven't looked into the python source code, so I don't know how hard is to backport the function.