Hi everyone.
First let me say thanks for a great piece of software.
So my problem is this. I originally installed it on my Windows laptop to test and tinker. I managed to get it all up and running fine, it was downloading all the right information and worked well with the Kodi TV Guide Addon.
I then tried to transfer it to my Kodibuntu installation. Everything went ok, and I have a script that executes the program fine.
My problem is that when it calls the cookies file for my site ini that it mashes the windows and linux paths together.
Here is the logfiles
Warning : Load Cookie fails for yourtv.com.au!
Could not find file "/home/xbmc/wg++/C:\ProgramData\ServerCare\WebGrab\yourtv.cookie.txt".
But I can't find anywhere in the config files that specify the directory for the cookie file.
I am sure it is something simple but I am stumped.
Thanks in advance
Justin
Its ok, an update solved that issue.
Ok, So I resolved the cookie issue when I ran the upgrade patch. This however caused a new issue with time parsing and culture.
[ Info ] ( 1/20 ) YOURTV.COM.AU -- chan. (xmltv_id=ABC) -- mode full
[ Error ] Unable to update channel ABC
[Critical] Generic syntax exception:
[Critical] message:
[ Error ] Current culture: en-GB
[ Error ] time parsing error : String was not recognized as a valid DateTime.
[ Error ] starttime time scrubbed : 6am
[ Error ] computer date/time format: 08/02/2016 07:59:04
[ Info ] No guide data to restore
[ Debug ]
I had set up yourtv.com.au which was working well originally under windows. But after migrating to Linux its been problematic.
I tried setting up a config file for oztivo.net which doesn't use cookies and that works ok. I would prefer to use yourtv.com.au though as its easier to get information off their website for me to customise my channels. (and the naming is cleaner)
I have attached a log file for both configurations, the config files for both and the .ini files for both.
My system is a Acer Revo R3610 running Kodibuntu Linux (14.04), I have updated to the latest Beta Build as I saw in these forums that it may fix the time parsing error.
mono Version
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-proj ect.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
I hope I have provided enough information.
Thanks Justin
So I am getting closer. I think..
As per this thread http://www.webgrabplus.com/content/solved-yourtvcomau-date-error I added in the line
This has helped as it now scans all channels, however the logfiles says that it has skipped,
[ Info ] ( 1/28 ) YOURTV.COM.AU -- chan. (xmltv_id=ABC) -- mode full
[ Debug ] debugging information siteini; urlindex builder
[ Debug ] siteini entry :
[ Debug ] urldate format type: list, value: |restofday|tomorrow|{datestring|ddd}
[ Debug ] url_index created:
[ Debug ] http://www.yourtv.com.au/guide/restofday//
[ Debug ] skipped
but there is information in the guide.xml which is being loaded by my EPG addon..
There is still some issues with some channels/shows and finish times.
I also tried adding
But that brought up these results
( 1/28 ) YOURTV.COM.AU -- chan. (xmltv_id=ABC) -- mode full
iUnable to update channel ABC
See log file for details
Exception.Message: Object reference not set to an instance of an object
Exception.StackTrace: at WGconsole.Scrub+Times.GetTimes (Int32 n, System.String[] indexshows, WGconsole.Scrub s, WGconsole.ChannelToUpdate chtu, WGconsole.UpdatedChannel uch) [0x00000] in <filename unknown>:0
at WGconsole.Program.UpdateChannel (System.String strIndex, WGconsole.ChannelToUpdate Chan, WGconsole.XmlTarget xTarget) [0x00000] in <filename unknown>:0
at WGconsole.Program.ConsoleApplication (System.String[] args) [0x00000] in <filename unknown>:0
Existing guide data restored!
Log file attached. Either way I removed that line.
I tried to comment out the following line
index_start.modify {replace|.|:}
as I thought it might be clashing with
And to a point it worked in that it produced a guide.xml with a lot more programs and detail. Its just that the start and finish times were all the same...
<programme start="20160208000000 +1000" stop="20160208000000 +1000" channel="ABC2 / KIDS">
<title lang="en">Gruen Pitch Rewind</title>
<desc lang="en">We ask them how their agencies approached the briefs, and how the brilliant ads that m$
<category lang="en">Talk Show</category>
<video>
<aspect>Widescreen</aspect>
</video>
<subtitles type="ClosedCaption" />
<rating system="AU">
<value>PG</value>
</rating>
</programme>
<programme start="20160208000000 +1000" stop="20160208000000 +1000" channel="ABC2 / KIDS">
<title lang="en">Louis Theroux's LA Stories</title>
<sub-title lang="en">City of Dogs</sub-title>
<desc lang="en">Award winning journalist Louis Theroux looks at LA's problem with neglected and feral $
<date>2014</date>
<category lang="en">Documentary</category>
<video>
So the issue is obviously with how it is handling time I just need to keep tinkering to figure it out...
Ok so I have been playing with the index.start commands.
If I remove the index_start.modify {replace|.|:} I get all the shows for the channels (as best as I can tell from scanning the guide.xml and watching how many 'n's appear under each channel. But they all have a start and stop time of 12am (guide2.xml and WebGrab2.log_.txt)
If I leave it in then I get some show records but no where near as many. For some reason it doesn;t pick up the next shows start date and as such assumes that the first show finishes at midnight and isn't searching for more records.
So I need to find out how to make index_start.modify {replace|.|:} to work with with
Could I make it one function? I am assuming the first function replaces the . in the time to : and that the second converts 7pm or 8.35am to 24hour time with a : seperator..
Any help is appreciated.
Ch
here's a litl aid
let's see how far you can go...
I am wondering if I may have better luck getting accurate information in to a EPG if I use a start and stop time.
The yourtv.com.au ini already calls the pop up for each show in the guide. This pop has a field
which lists the start and finish time. So how would I alter
index_start.scrub {single|<div class="ptime">||</div>|</div>}
to use that line and can I get it to break that line down in to a start and stop time.
Thanks 1NSdbZVbpZDX
I am playing with that now trying to work it out. Although I have no idea what I am doing!
add 'firstshow=now' to site {}
cookie name has mismatches with the help txt (05.)
run ini without loadcookie in site {} to verify if cookie is wellformed
check yout WG version, here (version 55.27) the ini runs well under linux environment
Thanks for the help guys but still no luck. I tried reinstalling everything from scratch on linux, created new loadcookies and .ini files etc.
Updated to the latest stable update
Still having the same issues.
For whatever reason, as soon as it finds a show starting or ending on the hour (so displayed on the website as 6am or 7pm) it processes that time as 00.00 (midnight)
In the guide.xml you produced Blackbear, it still does that. If you look through the information the last show is "The Bill" which should run from 5.10 am to 6am however the output is 5.10am to 00.00
<programme start="20160210051000 +1000" stop="20160211000000 +1000" channel="ABC">
<title lang="en">The Bill</title>
1NSdbZVbpZDX I tried adding in the regex entries in the ini you posted, but I had trouble finding how they worked and I was wasn't really able to modify them.
The replace function works to change the . to : on any time with minutes, some how I need to insert :00 to any time that has no .
The calculate function seems to be failing with that.
no need to insert :00 nor calculate functions, add these 2 lines to the ini:
index_start.modify {replace|am| am}
index_start.modify {replace|pm| pm}
Wow. I think after all that I finally got there. So many thanks for your help and time.
It was doing my head in there for a while, it looked like it was working and then you would find out it was over.
Should I move this thread to the site.ini forum for future reference?
Thanks agauin Blackbear and 1NSdbZVbpZDX.
Cheers
Justin
mark it as 'SOLVED'
i want to say something.. when you run linux, your hardware clock (bios) is set by the system to UTC... so if you change your bios clock in the bios itself, when you reboot in Linux, the harware clock will be changed again! by the system...
in my case, my bios (hardware) clock says
OpenELEC:~/xmltv # hwclock
Fri Apr 15 04:18:37 2016 0.000000 seconds
and, its in reality Friday april 15 00:19