public override Task <bool> InitWrapperAsync(bool useHttps)
 {
     try
     {
         OmDbWrapper wrapper = new OmDbWrapper();
         if (wrapper.Init(CACHE_PATH, useHttps))
         {
             _wrapper = wrapper;
             return(Task.FromResult(true));
         }
     }
     catch (Exception ex)
     {
         ServiceRegistration.Get <ILogger>().Error("SeriesOmDbMatcher: Error initializing wrapper", ex);
     }
     return(Task.FromResult(false));
 }
Beispiel #2
0
 public override bool InitWrapper(bool useHttps)
 {
     try
     {
         OmDbWrapper wrapper = new OmDbWrapper();
         if (wrapper.Init(CACHE_PATH, useHttps))
         {
             _wrapper = wrapper;
             return(true);
         }
     }
     catch (Exception ex)
     {
         ServiceRegistration.Get <ILogger>().Error(Id + ": Error initializing wrapper", ex);
     }
     return(false);
 }