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

All Samples(443)  |  Call(427)  |  Derive(0)  |  Import(16)

src/g/u/guessit-0.7.1/guessit/language.py   guessit(Download)
from guessit import UnicodeMixin, base_text_type, u
from guessit.textutils import find_words
from babelfish import Language
import babelfish
import re
log = logging.getLogger(__name__)
 
UNDETERMINED = babelfish.Language('und')
 
SYN = {('und', None): ['unknown', 'inconnu', 'unk', 'un'],
    def convert(self, alpha3, country=None, script=None):
        return str(babelfish.Language(alpha3, country, script))
 
    def reverse(self, name):
        with_country = (GuessitConverter._with_country_regexp.match(name) or
 
            log.debug(msg)
            self.lang = UNDETERMINED
 
    @property
    def __bool__(self):
        return self.lang != UNDETERMINED
    __nonzero__ = __bool__
 
    def __unicode__(self):

src/g/u/guessit-HEAD/guessit/language.py   guessit(Download)
from guessit import UnicodeMixin, base_text_type, u
from guessit.textutils import find_words
from babelfish import Language
import babelfish
import re
log = logging.getLogger(__name__)
 
UNDETERMINED = babelfish.Language('und')
 
SYN = {('und', None): ['unknown', 'inconnu', 'unk', 'un'],
    def convert(self, alpha3, country=None, script=None):
        return str(babelfish.Language(alpha3, country, script))
 
    def reverse(self, name):
        with_country = (GuessitConverter._with_country_regexp.match(name) or
 
            log.debug(msg)
            self.lang = UNDETERMINED
 
    @property
    def __bool__(self):
        return self.lang != UNDETERMINED
    __nonzero__ = __bool__
 
    def __unicode__(self):

src/s/i/sickbeard_mp4_automator-HEAD/setup/subliminal/subliminal/providers/tvsubtitles.py   sickbeard_mp4_automator(Download)
class TVsubtitlesProvider(Provider):
    languages = {babelfish.Language('por', 'BR')} | {babelfish.Language(l)
                 for l in ['ara', 'bul', 'ces', 'dan', 'deu', 'ell', 'eng', 'fin', 'fra', 'hun', 'ita', 'jpn', 'kor',
                           'nld', 'pol', 'por', 'ron', 'rus', 'spa', 'swe', 'tur', 'ukr', 'zho']}
    video_types = (Episode,)

src/s/i/sickbeard_mp4_automator-HEAD/setup/subliminal/subliminal/providers/addic7ed.py   sickbeard_mp4_automator(Download)
class Addic7edProvider(Provider):
    languages = {babelfish.Language('por', 'BR')} | {babelfish.Language(l)
                 for l in ['ara', 'aze', 'ben', 'bos', 'bul', 'cat', 'ces', 'dan', 'deu', 'ell', 'eng', 'eus', 'fas',
                           'fin', 'fra', 'glg', 'heb', 'hrv', 'hun', 'hye', 'ind', 'ita', 'jpn', 'kor', 'mkd', 'msa',
                           'nld', 'nor', 'pol', 'por', 'ron', 'rus', 'slk', 'slv', 'spa', 'sqi', 'srp', 'swe', 'tha',

src/s/u/subliminal-0.7.4/subliminal/providers/tvsubtitles.py   subliminal(Download)
class TVsubtitlesProvider(Provider):
    languages = {babelfish.Language('por', 'BR')} | {babelfish.Language(l)
                 for l in ['ara', 'bul', 'ces', 'dan', 'deu', 'ell', 'eng', 'fin', 'fra', 'hun', 'ita', 'jpn', 'kor',
                           'nld', 'pol', 'por', 'ron', 'rus', 'spa', 'swe', 'tur', 'ukr', 'zho']}
    video_types = (Episode,)

src/s/u/subliminal-0.7.4/subliminal/providers/addic7ed.py   subliminal(Download)
class Addic7edProvider(Provider):
    languages = {babelfish.Language('por', 'BR')} | {babelfish.Language(l)
                 for l in ['ara', 'aze', 'ben', 'bos', 'bul', 'cat', 'ces', 'dan', 'deu', 'ell', 'eng', 'eus', 'fas',
                           'fin', 'fra', 'glg', 'heb', 'hrv', 'hun', 'hye', 'ind', 'ita', 'jpn', 'kor', 'mkd', 'msa',
                           'nld', 'nor', 'pol', 'por', 'ron', 'rus', 'slk', 'slv', 'spa', 'sqi', 'srp', 'swe', 'tha',

src/s/u/subliminal-HEAD/subliminal/providers/tvsubtitles.py   subliminal(Download)
class TVsubtitlesProvider(Provider):
    languages = {babelfish.Language('por', 'BR')} | {babelfish.Language(l)
                 for l in ['ara', 'bul', 'ces', 'dan', 'deu', 'ell', 'eng', 'fin', 'fra', 'hun', 'ita', 'jpn', 'kor',
                           'nld', 'pol', 'por', 'ron', 'rus', 'spa', 'swe', 'tur', 'ukr', 'zho']}
    video_types = (Episode,)

src/s/u/subliminal-HEAD/subliminal/providers/addic7ed.py   subliminal(Download)
class Addic7edProvider(Provider):
    languages = {babelfish.Language('por', 'BR')} | {babelfish.Language(l)
                 for l in ['ara', 'aze', 'ben', 'bos', 'bul', 'cat', 'ces', 'dan', 'deu', 'ell', 'eng', 'eus', 'fas',
                           'fin', 'fra', 'glg', 'heb', 'hrv', 'hun', 'hye', 'ind', 'ita', 'jpn', 'kor', 'mkd', 'msa',
                           'nld', 'nor', 'pol', 'por', 'ron', 'rus', 'slk', 'slv', 'spa', 'sqi', 'srp', 'swe', 'tha',

src/s/i/sickbeard_mp4_automator-HEAD/setup/subliminal/subliminal/video.py   sickbeard_mp4_automator(Download)
                subtitles.add(babelfish.Language.fromalpha2(os.path.splitext(p)[0][-2:]))
            else:
                subtitles.add(babelfish.Language('und'))
    logger.debug('Found subtitles %r', subtitles)
    return subtitles
                            except babelfish.Error:
                                logger.error('Embedded subtitle track language %r is not a valid language', st.language)
                                embedded_subtitle_languages.add(babelfish.Language('und'))
                        elif st.name:
                            try:
                                embedded_subtitle_languages.add(babelfish.Language.fromname(st.name))
                            except babelfish.Error:
                                logger.debug('Embedded subtitle track name %r is not a valid language', st.name)
                                embedded_subtitle_languages.add(babelfish.Language('und'))
                                embedded_subtitle_languages.add(babelfish.Language('und'))
                        else:
                            embedded_subtitle_languages.add(babelfish.Language('und'))
                    logger.debug('Found embedded subtitle %r with enzyme', embedded_subtitle_languages)
                    video.subtitle_languages |= embedded_subtitle_languages

src/s/u/subliminal-0.7.4/subliminal/video.py   subliminal(Download)
                subtitles.add(babelfish.Language.fromalpha2(os.path.splitext(p)[0][-2:]))
            else:
                subtitles.add(babelfish.Language('und'))
    logger.debug('Found subtitles %r', subtitles)
    return subtitles
                            except babelfish.Error:
                                logger.error('Embedded subtitle track language %r is not a valid language', st.language)
                                embedded_subtitle_languages.add(babelfish.Language('und'))
                        elif st.name:
                            try:
                                embedded_subtitle_languages.add(babelfish.Language.fromname(st.name))
                            except babelfish.Error:
                                logger.error('Embedded subtitle track name %r is not a valid language', st.name)
                                embedded_subtitle_languages.add(babelfish.Language('und'))
                                embedded_subtitle_languages.add(babelfish.Language('und'))
                        else:
                            embedded_subtitle_languages.add(babelfish.Language('und'))
                    logger.debug('Found embedded subtitle %r with enzyme', embedded_subtitle_languages)
                    video.subtitle_languages |= embedded_subtitle_languages

  1 | 2 | 3  Next