harrygg / xmltv-tools

10 stars 7 forks source link

Output folder no respected #9

Closed doglover3920 closed 6 years ago

doglover3920 commented 6 years ago

In the WG++ config file, I am using a destination folder for the output file: f.i.:

<filename>C:\Documents and Settings\All Users\Application Data\TVxb\xml\testWebgrab.xml</filename>

When I am using WGmulti, the output file (guide.xml or like here testWebgrab.xml) is placed in the WG++ workfolder. I absolutely do not want this.

Could this be be fixed pls.

Willy

harrygg commented 6 years ago

Thank you for reporting this issue. I fixed it and uploaded the latest version of the tool. I haven't really done any thorough testing yet. I hope it works.

doglover3920 commented 6 years ago

Problem:

2018-07-05 10:14:26.585 [INFO] #####################################################
2018-07-05 10:14:26.590 [INFO] #                                                   #
2018-07-05 10:14:26.590 [INFO] #      Wgmulti.exe for WebGrab+Plus by Harry_GG     #
2018-07-05 10:14:26.590 [INFO] #                                                   #
2018-07-05 10:14:26.590 [INFO] #####################################################
2018-07-05 10:14:26.590 [INFO] System: Win32NT
2018-07-05 10:14:26.590 [INFO] Working Directory: D:\EPG\WebGrab
2018-07-05 10:14:26.601 [INFO] Config Directory: D:\EPG\WebGrab\
2018-07-05 10:14:26.601 [INFO] Grabbing Temp Directory: D:\EPG\temp
2018-07-05 10:14:26.601 [INFO] Path to WebGrab+Plus.exe: WebGrab+Plus.exe
2018-07-05 10:14:26.602 [INFO] WebGrab+Plus.exe version: 2.1.5.0
2018-07-05 10:14:26.602 [INFO] ConvertXmlConfigToJson: True
2018-07-05 10:14:26.602 [INFO] MaxAsyncProcesses: 20
2018-07-05 10:14:26.602 [INFO] CombineLogFiles: True
2018-07-05 10:14:26.602 [INFO] ConvertTimesToLocal: False
2018-07-05 10:14:26.602 [INFO] GenerateResultsReport: False
2018-07-05 10:14:26.603 [INFO] ShowConsole: False
2018-07-05 10:14:26.603 [INFO] -----------------------------------------------------
2018-07-05 10:14:26.603 [INFO] Execution started at: 5/07/2018 10:14:26
2018-07-05 10:14:26.604 [DEBUG] Deserializing config object from file: D:\EPG\WebGrab\WebGrab++.config.xml
2018-07-05 10:14:26.651 [INFO] Searching for siteinis. Disabling missing ones.
2018-07-05 10:14:26.662 [ERROR] De objectverwijzing is niet op een exemplaar van een object ingesteld.: System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.
   bij wgmulti.SiteIni.GetPath(String iniMasterFolder)
   bij wgmulti.Config.InitSiteinis()
2018-07-05 10:14:26.662 [INFO] Config contains 9 channels for grabbing
2018-07-05 10:14:26.663 [ERROR] System.ArgumentException: Het pad kan niet uit een lege tekenreeks of alleen spaties bestaan.
   bij System.IO.Directory.CreateDirectory(String path)
   bij wgmulti.Config.Save(String file, Boolean toJson)
2018-07-05 10:14:26.665 [INFO] -----------------------------------------------------
2018-07-05 10:14:26.671 [ERROR] #1 GRABBER HOERZU.DE | Bestandsnaam kan niet null zijn.
Parameternaam: sourceFileName
2018-07-05 10:14:26.672 [ERROR] 1.1 | HOERZU.DE | Siteini not saved to temp folder. Grabber disabled!
2018-07-05 10:14:26.672 [ERROR] #1 GRABBER HORIZON.TV | Bestandsnaam kan niet null zijn.
Parameternaam: sourceFileName
2018-07-05 10:14:26.673 [ERROR] 1.2 | HORIZON.TV | Siteini not saved to temp folder. Grabber disabled!
2018-07-05 10:14:26.673 [ERROR] #1 GRABBER TV.ORF.AT | Bestandsnaam kan niet null zijn.
Parameternaam: sourceFileName
2018-07-05 10:14:26.673 [ERROR] 1.3 | TV.ORF.AT | Siteini not saved to temp folder. Grabber disabled!
2018-07-05 10:14:26.674 [ERROR] #1 GRABBER TVAIR.SWISSCOM | Bestandsnaam kan niet null zijn.
Parameternaam: sourceFileName
2018-07-05 10:14:26.675 [ERROR] 1.4 | TVAIR.SWISSCOM | Siteini not saved to temp folder. Grabber disabled!
2018-07-05 10:14:26.676 [ERROR] #1 GRABBER TVHEUTE.AT | Bestandsnaam kan niet null zijn.
Parameternaam: sourceFileName
2018-07-05 10:14:26.676 [ERROR] 1.5 | TVHEUTE.AT | Siteini not saved to temp folder. Grabber disabled!
2018-07-05 10:14:26.677 [INFO] No active grabbers created. Exiting!
2018-07-05 10:14:26.678 [INFO] Merging channel guides
harrygg commented 6 years ago

ok, should be ok now.

doglover3920 commented 6 years ago

The output file still goes to the WEBGRAB++ work folder. Not to the folder defined in the Webgrab++.config.xml file.

Willy

harrygg commented 6 years ago

Yeah, this happens when you are on vacation, next to the pool ... I commited the file again, but I'll do some tests later tonight.