Skip to content

Wrong Language Code #1

Description

@ulf-de

Something is not correct with the language codes or at least "/usr/lib/python2.7/site-packages/MythTV/tmdb3/locales.py" (version 0.26) seems only to accept the two letter language codes:

$ ./transcode.py -v 29106 20131005143200
Traceback (most recent call last):
File "./transcode.py", line 2878, in
s = MythSource(channel, timecode, opts, defaults)
File "./transcode.py", line 2408, in init
Source.init(self, opts, defaults)
File "./transcode.py", line 1861, in init
fallthrough = 'en')
File "/usr/lib/python2.7/site-packages/MythTV/tmdb3/locales.py", line 143, in set_locale
syslocale = Locale(language, country, sysenc)
File "/usr/lib/python2.7/site-packages/MythTV/tmdb3/locales.py", line 91, in init
self.language = Language.getstored(language)
File "/usr/lib/python2.7/site-packages/MythTV/tmdb3/locales.py", line 51, in getstored
.format(key, cls.name))
MythTV.tmdb3.tmdb_exceptions.TMDBLocaleError: 'deu' is not a known valid Language code.

Workarounds:

  • It will work if I add the parameter --lang=en.
  • "/usr/lib/python2.7/site-packages/MythTV/tmdb3/locales.py" add:
    Language("deu", "ger/deu", u"German")
  • transcode.py change letter code:
    'de' : 'deu' to 'de' : 'de'

I'm using Python 2.7.5, I don't know if this problem is special to my environment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions