Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add ManualETSize and TrailerTMDBPref

  • Loading branch information...
commit 8f8478e9993b363ce49c38c2c82ab7ab5526aff4 1 parent 29a2cc0
DanCooper authored May 01, 2012
15  Addons/scraper.EmberCore/scraperMovieNativeModule.vb
... ...
@@ -1,4 +1,4 @@
1  
-' ################################################################################
  1
+' ################################################################################
2 2
 ' #                             EMBER MEDIA MANAGER                              #
3 3
 ' ################################################################################
4 4
 ' ################################################################################
@@ -173,12 +173,14 @@ Public Class EmberNativeScraperModule
173 173
         _setupPost.cbEnabled.Checked = _PostScraperEnabled
174 174
         _setupPost.chkTrailerIMDB.Checked = MySettings.UseIMDBTrailer
175 175
         _setupPost.chkTrailerTMDB.Checked = MySettings.UseTMDBTrailer
  176
+        _setupPost.cbTrailerTMDBPref.Text = MySettings.UseTMDBTrailerPref
176 177
         _setupPost.chkTrailerTMDBXBMC.Checked = MySettings.UseTMDBTrailerXBMC
177 178
         _setupPost.chkScrapePoster.Checked = ConfigScrapeModifier.Poster
178 179
         _setupPost.chkScrapeFanart.Checked = ConfigScrapeModifier.Fanart
179 180
         _setupPost.chkUseTMDB.Checked = MySettings.UseTMDB
180 181
         _setupPost.chkUseIMPA.Checked = MySettings.UseIMPA
181 182
         _setupPost.chkUseMPDB.Checked = MySettings.UseMPDB
  183
+        _setupPost.cbManualETSize.Text = MySettings.ManualETSize
182 184
         _setupPost.txtTimeout.Text = MySettings.TrailerTimeout.ToString
183 185
         _setupPost.chkDownloadTrailer.Checked = MySettings.DownloadTrailers
184 186
         _setupPost.CheckTrailer()
@@ -289,6 +291,8 @@ Public Class EmberNativeScraperModule
289 291
         MySettings.UseIMDBTrailer = AdvancedSettings.GetBooleanSetting("UseIMDBTrailer", True)
290 292
         MySettings.UseTMDBTrailer = AdvancedSettings.GetBooleanSetting("UseTMDBTrailer", True)
291 293
         MySettings.UseTMDBTrailerXBMC = AdvancedSettings.GetBooleanSetting("UseTMDBTrailerXBMC", False)
  294
+        MySettings.ManualETSize = Convert.ToString(AdvancedSettings.GetSetting("ManualETSize", "original"))
  295
+        MySettings.UseTMDBTrailerPref = Convert.ToString(AdvancedSettings.GetSetting("UseTMDBTrailerPref", "en"))
292 296
 
293 297
         ConfigScrapeModifier.DoSearch = True
294 298
         ConfigScrapeModifier.Meta = True
@@ -460,13 +464,16 @@ Public Class EmberNativeScraperModule
460 464
         AdvancedSettings.SetBooleanSetting("UseTMDBTrailer", MySettings.UseTMDBTrailer)
461 465
         AdvancedSettings.SetBooleanSetting("UseTMDBTrailerXBMC", MySettings.UseTMDBTrailerXBMC)
462 466
 
  467
+        AdvancedSettings.SetSetting("ManualETSize", MySettings.ManualETSize.ToString)
  468
+        AdvancedSettings.SetSetting("UseTMDBTrailerPref", MySettings.UseTMDBTrailerPref.ToString)
  469
+
463 470
         AdvancedSettings.SetBooleanSetting("DoPoster", ConfigScrapeModifier.Poster)
464 471
         AdvancedSettings.SetBooleanSetting("DoFanart", ConfigScrapeModifier.Fanart)
465 472
         'AdvancedSettings.SetBooleanSetting("DoTrailer", ConfigScrapeModifier.Trailer)
466 473
     End Sub
467 474
 
468 475
     Sub SaveSetupPostScraper(ByVal DoDispose As Boolean) Implements Interfaces.EmberMovieScraperModule.SaveSetupPostScraper
469  
-        MySettings.DownloadTrailers = _setupPost.chkDownloadTrailer.Checked        
  476
+        MySettings.DownloadTrailers = _setupPost.chkDownloadTrailer.Checked
470 477
         MySettings.UseIMDBTrailer = _setupPost.chkTrailerIMDB.Checked
471 478
         MySettings.UseTMDBTrailer = _setupPost.chkTrailerTMDB.Checked
472 479
         MySettings.UseTMDBTrailerXBMC = _setupPost.chkTrailerTMDBXBMC.Checked
@@ -474,6 +481,8 @@ Public Class EmberNativeScraperModule
474 481
         MySettings.UseTMDB = _setupPost.chkUseTMDB.Checked
475 482
         MySettings.UseIMPA = _setupPost.chkUseIMPA.Checked
476 483
         MySettings.UseMPDB = _setupPost.chkUseMPDB.Checked
  484
+        MySettings.ManualETSize = _setupPost.cbManualETSize.Text
  485
+        MySettings.UseTMDBTrailerPref = _setupPost.cbTrailerTMDBPref.Text
477 486
         ConfigScrapeModifier.Poster = _setupPost.chkScrapePoster.Checked
478 487
         ConfigScrapeModifier.Fanart = _setupPost.chkScrapeFanart.Checked
479 488
         SaveSettings()
@@ -673,6 +682,8 @@ Public Class EmberNativeScraperModule
673 682
         Dim UseTMDBTrailer As Boolean
674 683
         Dim UseIMDBTrailer As Boolean
675 684
         Dim UseTMDBTrailerXBMC As Boolean
  685
+        Dim ManualETSize As String
  686
+        Dim UseTMDBTrailerPref As String
676 687
 #End Region 'Fields
677 688
 
678 689
     End Structure

0 notes on commit 8f8478e

Please sign in to comment.
Something went wrong with that request. Please try again.