You are here

Can I create two different XMLTV files?

8 posts / 0 new
Last post
RayW1986
Offline
Donator
Joined: 10 years
Last seen: 5 months
Can I create two different XMLTV files?

Hey guys, I have a question. I have my WG+ set to automatically run and upload to a server once a day, and I share the XMLTV file with friends and family for use within XBMC's PVR player. The issue I have is that some of my friends and family have Sky, and can therefore use the Sky Go channels, but the others don't, so can't use them channels.
 
What I would like to do is make two XMLTV file's, one with the Sky Channels, and one without, and was wondering if this was possible, without manually changing the config.xml file name and running it myself every day. I'd like for this to be automated. Any thoughts?
 
Thanks,
Ray.

hicks
Offline
Joined: 10 years
Last seen: 8 years

One possible way is to create a batch file that will run one webgrab++.config.xml file and output to guide1.xml.
In the next step rename webgrab++.config.xml to any other name and rename a 2nd config file with sky channels as webgrab++.config.xml.
Then run webg++ again and output to guide2.xml.
Finall undo all the renaming.
Sounds possible doesnt it  cheeky

RayW1986
Offline
Donator
Joined: 10 years
Last seen: 5 months

I figured a batch file was the most logical way, but I don't have much experience in writing commands for a batch file. I'll have to read up and work something out.

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

One other simple solution, is to create 2 folders. Copy in each folder a .config file and the .ini files you need. (that is all WG++ needs)
On the command line, you can define a folder where WG++ will look for the .config file (instead of the default directory)
 
So something like:
Folder1:
 - path: c:\EPG\withSky
- in c:\EPG\withSky\WebGrab++.config.xml
    <filename>c:\EPG\withSky\guide.xml</filename>
- on command line (or in the batch file):
"C:\Program Files (x86)\ServerCare\WebGrab+PlusV1.1.1\WebGrab+Plus.exe" "c:\EPG\withSky"
 
Folder2:
 - path: c:\EPG\withoutSky
- in c:\EPG\withSky\WebGrab++.config.xml
    <filename>c:\EPG\withoutSky\guide.xml</filename>
- on command line (or in the batch file):
"C:\Program Files (x86)\ServerCare\WebGrab+PlusV1.1.1\WebGrab+Plus.exe" "c:\EPG\withoutSky"
 
 
That's it. You can simply run WG++ from another configuration folder. So you can create as many configuration as you want. (I have most of the time 20 or more of those folders, just to debug/test several .ini files)
So if you run
"C:\Program Files (x86)\ServerCare\WebGrab+PlusV1.1.1\WebGrab+Plus.exe"
it wil just use the default configuration folder (C:\ProgramData\ServerCare\WebGrab). And if you define another path, it will use that.

RayW1986
Offline
Donator
Joined: 10 years
Last seen: 5 months

Thanks Francis, that worked a charm. :)

RayW1986
Offline
Donator
Joined: 10 years
Last seen: 5 months

Thanks Francis, that worked a charm. :)

kirkydman
Offline
Joined: 8 years
Last seen: 6 years

Hi there i Know this is a bit old, but when you say, on the command line add......, where do i find the command pline please?

kirkydman
Offline
Joined: 8 years
Last seen: 6 years

i got it duuhh! Tahnks

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl