Ticket #7547: ttvdb_season_banner_fix.py

File ttvdb_season_banner_fix.py, 1.5 KB (added by Robin Hill <myth@…>, 11 years ago)

Patch for ttvdb.py

Line 
1--- /opt/pkg/checkouts/svn/mythtv-0.22-fixes/mythplugins/mythvideo/mythvideo/scripts/ttvdb.py   2009-10-22 13:55:17.363033714 +0100
2+++ /usr/share/mythtv/mythvideo/scripts/ttvdb.py        2009-11-11 23:00:46.000000000 +0000
3@@ -1199,16 +1199,17 @@
4                                        print u"Banner:%s" % (search_for_series(t, series_name)['banner']).replace(http_find, http_replace)
5                sys.exit(True) # Only the top rated for a TV Series is returned
6 
7-       if (poster==True and opts.poster==True and opts.raw!=True): # Get posters and send to stdout
8+       if (opts.poster==True and opts.raw!=True): # Get posters and send to stdout
9                season_poster_found = False
10-               if opts.mythvideo:
11-                       if len(series_season_ep) < 2:
12-                               print u"Season and Episode numbers required."
13-                               sys.exit(True)
14-               for p in get_graphics(t, opts, series_season_ep, poster_type, single_option, opts.language):
15-                       print p
16-                       season_poster_found = True
17-               if season_poster_found == False: # If there were no season posters get the series top poster
18+               if banner==True:
19+                       if opts.mythvideo:
20+                               if len(series_season_ep) < 2:
21+                                       print u"Season number required."
22+                                       sys.exit(True)
23+                       for p in get_graphics(t, opts, series_season_ep, poster_type, single_option, opts.language):
24+                               print p
25+                               season_poster_found = True
26+               if (poster==True and season_poster_found == False): # If there were no season posters get the series top poster
27                        series_name=''
28                        if opts.configure != "" and override.has_key(series_season_ep[0].lower()):
29                                series_name=override[series_season_ep[0].lower()][0] # Override series name