diff --git a/mythplugins/mythgame/mythgame/scripts/giantbomb.py b/mythplugins/mythgame/mythgame/scripts/giantbomb.py
index 1c8ff40..7575662 100755
a
|
b
|
def main(): |
212 | 212 | help=u"Display version and author") |
213 | 213 | parser.add_option( "-l", "--language", metavar="LANGUAGE", default=u'en', dest="language", |
214 | 214 | help=u"Select data that matches the specified language. At this time giantbomb.com only supports 'en' English.") |
| 215 | parser.add_option( "-a", "--area", metavar="AREA", default=u"gb", dest="area", |
| 216 | help=u"Select data that matches the specified country. This option is currently not used.") |
215 | 217 | parser.add_option( "-M", "--gamelist", action="store_true", default=False, dest="gamelist", |
216 | 218 | help=u"Get matching Movie list") |
217 | 219 | parser.add_option( "-D", "--gamedata", action="store_true", default=False, dest="gamedata", |
diff --git a/mythtv/libs/libmythmetadata/metadatadownload.cpp b/mythtv/libs/libmythmetadata/metadatadownload.cpp
index ce16767..a852349 100644
a
|
b
|
MetadataLookupList MetadataDownload::handleGame(MetadataLookup* lookup) |
450 | 450 | QStringList args; |
451 | 451 | args.append(QString("-l")); // Language Flag |
452 | 452 | args.append(gCoreContext->GetLanguage()); // UI Language |
| 453 | args.append(QString("-a")); |
| 454 | args.append(gCoreContext->GetLocale()->GetCountryCode()); |
453 | 455 | |
454 | 456 | // If the inetref is populated, even in kLookupSearch mode, |
455 | 457 | // become a kLookupData grab and use that. |
… |
… |
MetadataLookupList MetadataDownload::handleMovie(MetadataLookup* lookup) |
495 | 497 | args.append(QString("-l")); // Language Flag |
496 | 498 | args.append(gCoreContext->GetLanguage()); // UI Language |
497 | 499 | |
| 500 | args.append(QString("-a")); |
| 501 | args.append(gCoreContext->GetLocale()->GetCountryCode()); |
| 502 | |
498 | 503 | // If the inetref is populated, even in kLookupSearch mode, |
499 | 504 | // become a kLookupData grab and use that. |
500 | 505 | if (lookup->GetStep() == kLookupSearch && |
… |
… |
MetadataLookupList MetadataDownload::handleTelevision(MetadataLookup* lookup) |
532 | 537 | QStringList args; |
533 | 538 | args.append(QString("-l")); // Language Flag |
534 | 539 | args.append(gCoreContext->GetLanguage()); // UI Language |
| 540 | |
| 541 | args.append(QString("-a")); |
| 542 | args.append(gCoreContext->GetLocale()->GetCountryCode()); |
535 | 543 | |
536 | 544 | // If the inetref is populated, even in kLookupSearch mode, |
537 | 545 | // become a kLookupData grab and use that. |
… |
… |
MetadataLookupList MetadataDownload::handleVideoUndetermined( |
578 | 586 | QStringList args; |
579 | 587 | args.append(QString("-l")); // Language Flag |
580 | 588 | args.append(gCoreContext->GetLanguage()); // UI Language |
| 589 | |
| 590 | args.append(QString("-a")); |
| 591 | args.append(gCoreContext->GetLocale()->GetCountryCode()); |
| 592 | |
581 | 593 | args.append(QString("-N")); |
582 | 594 | if (!lookup->GetInetref().isEmpty()) |
583 | 595 | { |
… |
… |
MetadataLookupList MetadataDownload::handleRecordingGeneric( |
617 | 629 | |
618 | 630 | args.append(QString("-l")); // Language Flag |
619 | 631 | args.append(gCoreContext->GetLanguage()); // UI Language |
| 632 | |
| 633 | args.append(QString("-a")); |
| 634 | args.append(gCoreContext->GetLocale()->GetCountryCode()); |
| 635 | |
| 636 | |
620 | 637 | args.append("-M"); |
621 | 638 | QString title = lookup->GetTitle(); |
622 | 639 | args.append(title); |
diff --git a/mythtv/programs/scripts/metadata/Movie/tmdb.py b/mythtv/programs/scripts/metadata/Movie/tmdb.py
index 9063e07..89b55c1 100755
a
|
b
|
def main(): |
553 | 553 | help=u"Interaction mode (allows selection of a specific Movie or Person)") |
554 | 554 | parser.add_option( "-l", "--language", metavar="LANGUAGE", default=u'en', dest="language", |
555 | 555 | help=u"Select data that matches the specified language fall back to english if nothing found (e.g. 'es' Español, 'de' Deutsch ... etc)") |
| 556 | parser.add_option( "-a", "--area", metavar="COUNTRY", default=False, dest="country", |
| 557 | help=u"Select certificate data that matches the specified country (e.g. 'de' Germany, 'gb' UK ... etc)") |
556 | 558 | parser.add_option( "-M", "--movielist", action="store_true", default=False, dest="movielist", |
557 | 559 | help=u"Get matching Movie list") |
558 | 560 | parser.add_option( "-D", "--moviedata", action="store_true", default=False, dest="moviedata", |
… |
… |
def main(): |
607 | 609 | sys.stderr.write("! Error: There must be a non-empty argument, yours is empty.\n") |
608 | 610 | sys.exit(1) |
609 | 611 | |
| 612 | |
| 613 | passedLanguage = opts.language |
| 614 | if (opts.language and opts.country): |
| 615 | passedLanguage = opts.language + "-" + opts.country |
| 616 | |
610 | 617 | Queries = moviedbQueries(apikey, |
611 | 618 | mythtv = True, |
612 | 619 | interactive = opts.interactive, |
613 | 620 | select_first = False, |
614 | 621 | debug = opts.debug, |
615 | 622 | custom_ui = None, |
616 | | language = opts.language, |
| 623 | language = passedLanguage, |
617 | 624 | search_all_languages = False,) |
618 | 625 | |
619 | 626 | # Display in XML format |
diff --git a/mythtv/programs/scripts/metadata/Television/ttvdb.py b/mythtv/programs/scripts/metadata/Television/ttvdb.py
index c75be97..58cf9c8 100755
a
|
b
|
Options: |
153 | 153 | Series) |
154 | 154 | -c FILE, --configure=FILE |
155 | 155 | Use configuration settings |
| 156 | -a COUNTRY, --area=COUNTRY |
| 157 | Select data that matches the specified country |
156 | 158 | -l LANGUAGE, --language=LANGUAGE |
157 | 159 | Select data that matches the specified language fall |
158 | 160 | back to english if nothing found (e.g. 'es' Español, |
… |
… |
def main(): |
1083 | 1085 | help=u"Use configuration settings") |
1084 | 1086 | parser.add_option( "-l", "--language", metavar="LANGUAGE", default=u'en', dest="language", |
1085 | 1087 | help=u"Select data that matches the specified language fall back to english if nothing found (e.g. 'es' Español, 'de' Deutsch ... etc)") |
| 1088 | parser.add_option( "-a", "--area", metavar="COUNTRY", default=u'', dest="country", |
| 1089 | help=u"Select data that matches the specificed country (e.g. 'de' Germany 'gb' UK). This option is currently not used.") |
1086 | 1090 | parser.add_option( "-n", "--num_seasons", action="store_true", default=False, dest="num_seasons", |
1087 | 1091 | help=u"Return the season numbers for a series") |
1088 | 1092 | parser.add_option( "-t", action="store_true", default=False, dest="test", |