From ece507d8868ef68cf7bc7eb449b7960116b38ec3 Mon Sep 17 00:00:00 2001
From: Tom Hayward <esarfl+github@gmail.com>
Date: Mon, 27 Aug 2012 16:51:47 -0600
Subject: [PATCH] Fix ttvdb.py so series name overrides in ttvdb.conf are
honored with -M option.
This has been referred to as "Myth does not read ttvdb.conf during metadata
lookup". The problem was not reading the conf file, but honoring it.
Fixes #11054
---
.../programs/scripts/metadata/Television/ttvdb.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mythtv/programs/scripts/metadata/Television/ttvdb.py b/mythtv/programs/scripts/metadata/Television/ttvdb.py
index 77517c0..4d76e40 100755
a
|
b
|
def main(): |
1339 | 1339 | # Fetch a list of matching series names |
1340 | 1340 | if opts.list ==True: |
1341 | 1341 | try: |
1342 | | allSeries=t._getSeries(series_season_ep[0]) |
| 1342 | if opts.configure != "" and override.has_key(series_season_ep[0].lower()): |
| 1343 | allSeries=t._getSeries(override[series_season_ep[0].lower()][0]) |
| 1344 | else: |
| 1345 | allSeries=t._getSeries(series_season_ep[0]) |
1343 | 1346 | except tvdb_shownotfound: |
1344 | 1347 | sys.exit(0) # No matching series |
1345 | 1348 | except Exception, e: |