public bool LoadScript() { string scriptFileName = InternalScriptDirectory + @"\InternalActorMoviesGrabber.csscript"; // Script support script.csscript if (!File.Exists(scriptFileName)) { Log.Error("InternalActorMoviesGrabber LoadScript() - grabber script not found: {0}", scriptFileName); return(false); } try { Environment.CurrentDirectory = Config.GetFolder(Config.Dir.Base); AsmHelper script = new AsmHelper(CSScript.Load(scriptFileName, null, false)); InternalGrabber = (IIMDBInternalScriptGrabber)script.CreateObject("InternalGrabber"); } catch (Exception ex) { Log.Error("InternalActorMoviesGrabber LoadScript() - file: {0}, message : {1}", scriptFileName, ex.Message); return(false); } return(true); }
public bool LoadScript() { string scriptFileName = InternalScriptDirectory + @"\InternalActorMoviesGrabber.csscript"; // Script support script.csscript if (!File.Exists(scriptFileName)) { Log.Error("InternalActorMoviesGrabber LoadScript() - grabber script not found: {0}", scriptFileName); return false; } try { Environment.CurrentDirectory = Config.GetFolder(Config.Dir.Base); AsmHelper script = new AsmHelper(CSScript.Load(scriptFileName, null, false)); InternalGrabber = (IIMDBInternalScriptGrabber)script.CreateObject("InternalGrabber"); } catch (Exception ex) { Log.Error("InternalActorMoviesGrabber LoadScript() - file: {0}, message : {1}", scriptFileName, ex.Message); return false; } return true; }