Opened 10 years ago

Closed 10 years ago

#8470 closed enhancement (invalid)

Language support for TMDB

Reported by: Lomion Owned by: Raymond Wagner
Priority: minor Milestone: 0.23-fixes
Component: Bindings - Python Version: 0.23-fixes
Severity: low Keywords:
Cc: Ticket locked: no

Description

The language support was added to the TMDB python script as a dummy function but hard-coded to "en" for the time being.

First testing showed good support for german metadata at least.

Please advice how to proceed in order to enable multi-language support in the TMDB script!

Index: tmdb_api.py =================================================================== --- tmdb_api.py (revision 24733) +++ tmdb_api.py (working copy) @@ -308,17 +308,19 @@

# "ru","he","ja","pt","zh","cs","sl", "hr","ko","en","sv","no" #]

+ self.configvalid_languages? = de? +# # ONLY ENGISH is supported at this time +# self.configlanguage? = "en" + if language is None: + self.configlanguage? = "en" + elif language not in self.configvalid_languages?: + raise ValueError?("Invalid language %s, options are: %s" % ( + language, self.configvalid_languages? + )) + else: + self.configlanguage? = language +

# The following url_ configs are based of the # http://api.themoviedb.org/2.1/ self.configbase_url? = "http://api.themoviedb.org/2.1"

Change History (1)

comment:1 Changed 10 years ago by robertm

Resolution: invalid
Status: newclosed

Feature request without (usable) patch.

Note: See TracTickets for help on using tickets.