Opened 9 years ago
Closed 8 years ago
#10240 closed Patch - Feature (Fixed)
Get locale-specific certiciates for movie metadata
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - Mythmetadatalookup | Version: | Master Head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
TMDB supports localised movie certificates by modifying the language parameter passed to the script to include the 2-character country code
e.g. cjo20@ubuntu:~/mythsrc/mythtv$ /usr/local/share/mythtv/metadata/Movie/tmdb.py -l en -D 170 | grep certi
<certifications>
<certification locale="us" name="R"/>
</certifications>
cjo20@ubuntu:~/mythsrc/mythtv$ /usr/local/share/mythtv/metadata/Movie/tmdb.py -l en-GB -D 170 | grep certi
<certifications>
<certification locale="us" name="18"/>
</certifications>
Attachments (2)
Change History (10)
Changed 9 years ago by
Attachment: | metadata_locale.patch added |
---|
comment:1 Changed 9 years ago by
Status: | new → infoneeded_new |
---|
All metadata scripts need to behave according to the same standard, meaning the addition of locale to the command line options needs to also work with Television scripts. I can live with adding locale as a metadata script argument (in fact, it's tough to avoid it) but the other script in our repository (ttvdb.py) needs to be patched to at least accept the argument so that script behavior is standard. As it is right now, passing the locale in this manner to the ttvdb.py script breaks returns in the language (ie, -l de returns german results, -l de-de returns english results).
If you want to patch ttvdb.py so that it will accept and disregard the locale, I will see about applying the patch. Also, if they can all be patched to take an underscore rather than a dash (en_gb) then I'll feel better too, since that's the more standard notation as far as I know.
comment:2 Changed 9 years ago by
So would a modification so that each script takes a -c <country_code> argument be sufficient, allowing the TMDB script to concatenate the -l and -c options, and the TTDB script to just ignore the option?
comment:3 Changed 9 years ago by
Yes, this is fine too-- how the script handles the arguments internally isn't of concern to me, only that the script behaviors and the arguments passed be the same.
Thanks!
Changed 9 years ago by
Attachment: | metadatalangugage.patch added |
---|
Updated to add option to all metadata grabbers
comment:5 Changed 9 years ago by
Milestone: | unknown → 0.26 |
---|---|
Owner: | changed from robertm to stuartm |
Status: | infoneeded_new → assigned |
Version: | Unspecified → Master Head |
comment:6 Changed 8 years ago by
Milestone: | 0.26 → 0.27 |
---|
comment:8 Changed 8 years ago by
Resolution: | → Fixed |
---|---|
Status: | assigned → closed |
Patch to add locale to metadata lookup