Ticket #12585: 0001-Use-searchMovieWithYear-instead-of-searchMovie.patch

File 0001-Use-searchMovieWithYear-instead-of-searchMovie.patch, 1.3 KB (added by angela.schmid@…, 4 years ago)
Line 
1From dca17a91a98350841cc82e53d1f1e16e7fff2f3a Mon Sep 17 00:00:00 2001
2From: angelaschmid <angela.schmid@wolke7.net>
3Date: Tue, 27 May 2014 17:39:23 +0200
4Subject: [PATCH] tmdb3: Use searchMovieWithYear instead of searchMovie
5
6Use searchMovieWithYear instead of searchMovie so that an optional year
7in the query string is used to query tmdb.
8
9For example "Star Wars (1977)", instead of "Star Wars"
10
11---
12 mythtv/programs/scripts/metadata/Movie/tmdb3.py | 5 ++++-
13 1 file changed, 4 insertions(+), 1 deletion(-)
14
15diff --git a/mythtv/programs/scripts/metadata/Movie/tmdb3.py b/mythtv/programs/scripts/metadata/Movie/tmdb3.py
16index 0b5cbff..1d66990 100755
17--- a/mythtv/programs/scripts/metadata/Movie/tmdb3.py
18+++ b/mythtv/programs/scripts/metadata/Movie/tmdb3.py
19@@ -110,9 +110,12 @@ def buildList(query, opts):
20     query = query.replace('-',' ')
21 
22     from MythTV.tmdb3 import searchMovie
23+    from MythTV.tmdb3 import searchMovieWithYear
24     from MythTV import VideoMetadata
25     from lxml import etree
26-    results = iter(searchMovie(query))
27+    results = iter(searchMovieWithYear(query))
28+
29     tree = etree.XML(u'<metadata></metadata>')
30     mapping = [['runtime',      'runtime'],     ['title',       'originaltitle'],
31                ['releasedate',  'releasedate'], ['tagline',     'tagline'],
32--
331.9.1
34