harrygg / xmltv-tools

10 stars 7 forks source link

data.xml wrong filename #8

Closed ghost closed 4 years ago

ghost commented 6 years ago

it does matter if use the wg config.xml or json file its always write my file as epg.xml

wg config.xml.. <filename>/raid/NAS_WebGrab/guide.xml</filename>

json config.. "filename": "guide.xml"

2018-01-22 18:24:46.231 [ERROR] processing /tmp/vodafone.de/epg.xml ...

also all these lines(wg startup) are marked as [ERROR],they should be [Debug] or [Info] i know its just cosmetic but though i'de mention it.

seems to be working fine(first time i really tested it as i had no reason to use it).i want to try the channel fallback feature.

also i'll put this here for you to add sometime(maybe the additions just need to be added to the json config?

there have been some additions added to the <timespan> setting. keeppastdays and oneshowonly

from the documentation..

<!--timespan :
The timespan for which shows will be grabbed, starting from value 0 for today only up to a maximum of 30.
With the optional attribute keeppastdays="n" it is possible to retain the epg of a number of past days in the listing 
and with a timevalue between 0:00 and 24:00 in the optional attribute oneshowonly="HH:mm" the download can be limited to a single show (per day) which is scheduled around the specified time. Any value between start time (including) and stop time will do
This -one-show-only mode is helpful if a SiteIni file needs to be debugged
Change the following to your own needs: -->
<timespan keeppastdays="" oneshowonly="">1</timespan>

<!--Note that the syntax used before, without the new attributes (with a timespan value and the optional onshowonly timevalue separate by a space or a comma), will still be allowed:
<timespan>n HH:mm</timespan>

thks

harrygg commented 6 years ago

I will check about the ERRORs you mention - I haven't noticed that. Regarding the file name - the setting is for the final output filename, not for the temporary files. It doesn't really matter what their names are... does it?

Even though the WIKI is not upldated the tool accepts the WebGrab 2 standard for timespan (I added this feature in November): In xml:

2

In json: "timespan": { "days": 2, "pastdays":1, "time": "12:00" },

My idea was to build some kind of a GUI for building the config file (import from XML etc) ... but I have other priorities now.

ghost commented 6 years ago

thanks about the [ERROR] what i am referring to is the console ouput. if i run wgmulti.exe from terminal with

"ShowWebGrabConsole" set to false https://pastebin.com/MXxjWQrt

"ShowWebGrabConsole" set to true https://pastebin.com/bRr09Umq

about the epg.xml files,yes i can they are written to my temp dir <add key="GrabingTempFolder" value="/tmp" />

when its done its also writting my final xml file as epg.xml instead of guide.xml as i have it set to.

N4810:/raid/NAS_WebGrab# ls epg.xml epg.xml no epg.xml file should be in this directory?

ghost commented 6 years ago

also i was looking in the source code at config.cs shouldnt the outputFilePath have the value of "guide.xml" in my case?

 [DataMember(Name = "filename", Order = 5, IsRequired = true), XmlElement("filename")]
    public String outputFilePath = "epg.xml";

    public static String epgFileName = "epg.xml";

i know enough about coding to get myself into trouble only.

ghost commented 6 years ago

morning, seen u made some changes and all these issues are fixed. thanks again.

harrygg commented 6 years ago

Yes, I did some changes to fix it. Thank you for trying.