Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/b/a/babelsubs-HEAD/babelsubs/parsers/youtube.py   babelsubs(Download)
from lxml import etree
from babelsubs.utils import unescape_html
from babelsubs.parsers.base import BaseTextParser, register, SubtitleParserError
from babelsubs.storage import SubtitleSet
 
                        duration = 3000
                    end = start + duration
                    text = item.text and unescape_html(item.text) or u''
                    self.sub_set.append_subtitle(start, end, text)
                    has_subs = True