]> git.ipfire.org Git - thirdparty/tvheadend.git/log
thirdparty/tvheadend.git
14 years agoMerge branch 'master' into epg-rewrite
Adam Sutton [Wed, 20 Jun 2012 11:47:13 +0000 (12:47 +0100)] 
Merge branch 'master' into epg-rewrite

14 years agoSome additional XML helpers.
Adam Sutton [Wed, 20 Jun 2012 11:47:03 +0000 (12:47 +0100)] 
Some additional XML helpers.

14 years agoUpdated XMLTV code to use new broadcast metadata.
Adam Sutton [Wed, 20 Jun 2012 11:35:09 +0000 (12:35 +0100)] 
Updated XMLTV code to use new broadcast metadata.

14 years agoUpdated EPG code to include some missing metadata handling.
Adam Sutton [Wed, 20 Jun 2012 11:34:31 +0000 (12:34 +0100)] 
Updated EPG code to include some missing metadata handling.

14 years agoEnsure title is init and used properly.
Adam Sutton [Wed, 20 Jun 2012 10:22:51 +0000 (11:22 +0100)] 
Ensure title is init and used properly.

14 years agoRemove json hack, no longer required.
Adam Sutton [Wed, 20 Jun 2012 10:06:37 +0000 (11:06 +0100)] 
Remove json hack, no longer required.

14 years agoMerge branch 'master' into epg-rewrite
Adam Sutton [Wed, 20 Jun 2012 09:39:43 +0000 (10:39 +0100)] 
Merge branch 'master' into epg-rewrite

14 years agoAdd protection around use of broadcast->episode-> as the episode is not always set...
Adam Sutton [Wed, 20 Jun 2012 09:21:03 +0000 (10:21 +0100)] 
Add protection around use of broadcast->episode-> as the episode is not always set (currenly opentv has limitations that cause this to happen).

14 years agoAdded skyit and aus config.
Adam Sutton [Tue, 19 Jun 2012 22:46:02 +0000 (23:46 +0100)] 
Added skyit and aus config.

14 years agoMerge branch 'epg-opentv' into epg-rewrite
Adam Sutton [Tue, 19 Jun 2012 22:34:51 +0000 (23:34 +0100)] 
Merge branch 'epg-opentv' into epg-rewrite

14 years agoAdded initial background tuning thread. May need some additional logic adding to...
Adam Sutton [Tue, 19 Jun 2012 22:34:35 +0000 (23:34 +0100)] 
Added initial background tuning thread. May need some additional logic adding to make it work better.

14 years agoFix stupid mistake in earlier printf fix.
Adam Sutton [Tue, 19 Jun 2012 22:30:26 +0000 (23:30 +0100)] 
Fix stupid mistake in earlier printf fix.

14 years agoMerge remote-tracking branch 'adamsutton/master'
Andreas Öman [Tue, 19 Jun 2012 18:27:15 +0000 (20:27 +0200)] 
Merge remote-tracking branch 'adamsutton/master'

14 years agoMerge pull request #95 from adamsutton/e183645081af85ae3a85c9cc43088d7a22b2b901
Andreas Öman [Tue, 19 Jun 2012 18:21:32 +0000 (11:21 -0700)] 
Merge pull request #95 from adamsutton/e183645081af85ae3a85c9cc43088d7a22b2b901

Expose/Extend DVB tables API

14 years agoMerge branch 'epg-rewrite' into epg-opentv
Adam Sutton [Tue, 19 Jun 2012 15:55:52 +0000 (16:55 +0100)] 
Merge branch 'epg-rewrite' into epg-opentv

14 years agoMerge branch 'epg-rewrite' of github.com:adamsutton/tvheadend into epg-rewrite
Adam Sutton [Tue, 19 Jun 2012 15:55:42 +0000 (16:55 +0100)] 
Merge branch 'epg-rewrite' of github.com:adamsutton/tvheadend into epg-rewrite

14 years agoFix printfs() for 64 bit numbers on 32 bit arch. Thanks to andyb2k5 for helping track...
Adam Sutton [Tue, 19 Jun 2012 15:55:10 +0000 (16:55 +0100)] 
Fix printfs() for 64 bit numbers on 32 bit arch. Thanks to andyb2k5 for helping track this down.

14 years agoAdd proper #if test around use of SYS_DVBS, this fixes my earlier mod. 98/head
Adam Sutton [Tue, 19 Jun 2012 11:23:05 +0000 (12:23 +0100)] 
Add proper #if test around use of SYS_DVBS, this fixes my earlier mod.

14 years agoAnother ptr bug spotted by andyb2k5. 96/head 97/head
Adam Sutton [Mon, 18 Jun 2012 14:48:14 +0000 (15:48 +0100)] 
Another ptr bug spotted by andyb2k5.

14 years agoMove the reading from file descriptor into generic routine as I intend to reuse this... 100/head
Adam Sutton [Wed, 6 Jun 2012 19:31:01 +0000 (20:31 +0100)] 
Move the reading from file descriptor into generic routine as I intend to reuse this function in the new EPG code.

14 years agoSome extensions to the htsmsg API, including fix for single length XML strings and... 99/head
Adam Sutton [Tue, 19 Jun 2012 10:40:08 +0000 (11:40 +0100)] 
Some extensions to the htsmsg API, including fix for single length XML strings and cdata processing (previously in xmltv code).

14 years agoImprove escape handling in json parser.
Adam Sutton [Tue, 19 Jun 2012 10:28:04 +0000 (11:28 +0100)] 
Improve escape handling in json parser.

14 years agoAllow multiple callbacks per PID (with limitations). 95/head
Adam Sutton [Mon, 18 Jun 2012 12:38:01 +0000 (13:38 +0100)] 
Allow multiple callbacks per PID (with limitations).

14 years agoExpose DVB table API within the rest of the app (needed by new grabbers).
Adam Sutton [Sat, 16 Jun 2012 20:04:55 +0000 (21:04 +0100)] 
Expose DVB table API within the rest of the app (needed by new grabbers).

14 years agoMinor hack to make series linking work properly with sky epg info.
Adam Sutton [Mon, 18 Jun 2012 23:17:45 +0000 (00:17 +0100)] 
Minor hack to make series linking work properly with sky epg info.

14 years agoEnsure quality/channel locking is enforced by default.
Adam Sutton [Mon, 18 Jun 2012 23:17:06 +0000 (00:17 +0100)] 
Ensure quality/channel locking is enforced by default.

14 years agoFix to summary parsing and inclusion of initial series link support.
Adam Sutton [Mon, 18 Jun 2012 22:50:36 +0000 (23:50 +0100)] 
Fix to summary parsing and inclusion of initial series link support.

14 years agoMerge branch 'epg-rewrite' into epg-opentv
Adam Sutton [Mon, 18 Jun 2012 22:23:57 +0000 (23:23 +0100)] 
Merge branch 'epg-rewrite' into epg-opentv

14 years agoFix bug in the handling of broadcast find/create.
Adam Sutton [Mon, 18 Jun 2012 22:23:31 +0000 (23:23 +0100)] 
Fix bug in the handling of broadcast find/create.

14 years agoAttempt to improve decode efficiency (although I might now have tracked this down...
Adam Sutton [Mon, 18 Jun 2012 22:21:32 +0000 (23:21 +0100)] 
Attempt to improve decode efficiency (although I might now have tracked this down to problems elsewhere).

14 years agoTry to make huffman decoder a bit more efficient.
Adam Sutton [Mon, 18 Jun 2012 22:17:22 +0000 (23:17 +0100)] 
Try to make huffman decoder a bit more efficient.

14 years agoMerge pull request #94 from mmrvka/dvb_adapter_priority
Andreas Öman [Mon, 18 Jun 2012 21:28:17 +0000 (14:28 -0700)] 
Merge pull request #94 from mmrvka/dvb_adapter_priority

dvb: added extra priority per adapter

14 years agoMerge pull request #93 from cohe6423/patch-1
Andreas Öman [Mon, 18 Jun 2012 21:27:01 +0000 (14:27 -0700)] 
Merge pull request #93 from cohe6423/patch-1

Needed when string length equal 1.

14 years agodvb: added extra priority per adapter 94/head
Martin Mrvka [Mon, 18 Jun 2012 21:00:54 +0000 (23:00 +0200)] 
dvb: added extra priority per adapter

14 years agoNeeded when string length equal 1. 93/head
cohe6423 [Mon, 18 Jun 2012 20:45:03 +0000 (23:45 +0300)] 
Needed when string length equal 1.
exemple:
<programme channel="chanel.4" stop="20120619054500 +0200" start="20120619052000 +0200">
<title>H</title>
</programme>

14 years agoFix erroneous parse of title info and invalid setting of event stop time.
Adam Sutton [Mon, 18 Jun 2012 19:36:39 +0000 (20:36 +0100)] 
Fix erroneous parse of title info and invalid setting of event stop time.

14 years agoFailed to properly setup the module provider config.
Adam Sutton [Mon, 18 Jun 2012 15:26:07 +0000 (16:26 +0100)] 
Failed to properly setup the module provider config.

14 years agoAnother ptr bug spotted by andyb2k5.
Adam Sutton [Mon, 18 Jun 2012 14:48:14 +0000 (15:48 +0100)] 
Another ptr bug spotted by andyb2k5.

14 years agoFix erroneous ptr usage spotted by andyb2k5 and removed redundant equiv test.
Adam Sutton [Mon, 18 Jun 2012 13:50:53 +0000 (14:50 +0100)] 
Fix erroneous ptr usage spotted by andyb2k5 and removed redundant equiv test.

14 years agoMoved EIT handling code from dvb_tables into the eit grab module. Needs tidying up.
Adam Sutton [Mon, 18 Jun 2012 12:47:43 +0000 (13:47 +0100)] 
Moved EIT handling code from dvb_tables into the eit grab module. Needs tidying up.

14 years agoInitial opentv data for skyuk.
Adam Sutton [Mon, 18 Jun 2012 12:38:36 +0000 (13:38 +0100)] 
Initial opentv data for skyuk.

14 years agoAllow multiple callbacks per PID (with limitations).
Adam Sutton [Mon, 18 Jun 2012 12:38:01 +0000 (13:38 +0100)] 
Allow multiple callbacks per PID (with limitations).

14 years agoRemoved the EIT enabled flag and using proper OTA config system.
Adam Sutton [Mon, 18 Jun 2012 12:33:02 +0000 (13:33 +0100)] 
Removed the EIT enabled flag and using proper OTA config system.

14 years agoTidied up most of the parsing code and the way in which the config works (untested).
Adam Sutton [Mon, 18 Jun 2012 12:32:06 +0000 (13:32 +0100)] 
Tidied up most of the parsing code and the way in which the config works (untested).

14 years agoMore hacking around the opentv code will now build a full EPG with title and summary...
Adam Sutton [Mon, 18 Jun 2012 00:01:22 +0000 (01:01 +0100)] 
More hacking around the opentv code will now build a full EPG with title and summary. The other info is currently not included and things need a good tidy up.

14 years agoLots of messing about with the parsing (too much trial and error), but I think I...
Adam Sutton [Sun, 17 Jun 2012 23:15:04 +0000 (00:15 +0100)] 
Lots of messing about with the parsing (too much trial and error), but I think I mostly have it now. But I still need to figure out how best to get the data into the EPG.

14 years agoMinor tweak to huffman api.
Adam Sutton [Sun, 17 Jun 2012 23:13:59 +0000 (00:13 +0100)] 
Minor tweak to huffman api.

14 years agoMerge branch 'epg-rewrite' into epg-opentv
Adam Sutton [Sun, 17 Jun 2012 13:53:56 +0000 (14:53 +0100)] 
Merge branch 'epg-rewrite' into epg-opentv

14 years agoFix mistake in config conversion that stops modules being enabled at startup.
Adam Sutton [Sun, 17 Jun 2012 13:53:40 +0000 (14:53 +0100)] 
Fix mistake in config conversion that stops modules being enabled at startup.

14 years agoStarted to clean up opentv module, added some configuration (though currently its...
Adam Sutton [Sun, 17 Jun 2012 13:52:22 +0000 (14:52 +0100)] 
Started to clean up opentv module, added some configuration (though currently its mostly ALL enabled).

14 years agoProvide top level API call to allow all epg grabbers to be informed about tuning...
Adam Sutton [Sun, 17 Jun 2012 12:57:15 +0000 (13:57 +0100)] 
Provide top level API call to allow all epg grabbers to be informed about tuning events, as OTA grabbers will need to know this.

14 years agoSome minor mods and fixes to the huffman decoder.
Adam Sutton [Sun, 17 Jun 2012 12:55:46 +0000 (13:55 +0100)] 
Some minor mods and fixes to the huffman decoder.

14 years agoExpose DVB table API within the rest of the app (needed by new grabbers).
Adam Sutton [Sat, 16 Jun 2012 20:04:55 +0000 (21:04 +0100)] 
Expose DVB table API within the rest of the app (needed by new grabbers).

14 years agoInitial code for opentv module, just testing at the moment.
Adam Sutton [Sat, 16 Jun 2012 19:29:10 +0000 (20:29 +0100)] 
Initial code for opentv module, just testing at the moment.

14 years agoFirst stab at a huffman decoder that I can use for decoding opentv strings.
Adam Sutton [Sat, 16 Jun 2012 19:28:30 +0000 (20:28 +0100)] 
First stab at a huffman decoder that I can use for decoding opentv strings.

14 years agoTemporary hack to get htsmsg_json to accept (though ignore) escaped hex.
Adam Sutton [Sat, 16 Jun 2012 19:27:53 +0000 (20:27 +0100)] 
Temporary hack to get htsmsg_json to accept (though ignore) escaped hex.

14 years agoRemove erroneous assert() and modified so that existing EPG database and config is...
Adam Sutton [Sat, 16 Jun 2012 19:20:46 +0000 (20:20 +0100)] 
Remove erroneous assert() and modified so that existing EPG database and config is left in place.

14 years agoMerge branch 'master' into epg-rewrite
Adam Sutton [Fri, 15 Jun 2012 13:34:29 +0000 (14:34 +0100)] 
Merge branch 'master' into epg-rewrite

14 years agoMerge pull request #92 from adamsutton/master
Andreas Öman [Fri, 15 Jun 2012 12:28:11 +0000 (05:28 -0700)] 
Merge pull request #92 from adamsutton/master

Minor fixes to htsmsg handling

14 years agoFix json parsing to handle empty objects and ensure hm_ilist is properly set on htsms... 92/head
Adam Sutton [Fri, 15 Jun 2012 10:40:01 +0000 (11:40 +0100)] 
Fix json parsing to handle empty objects and ensure hm_ilist is properly set on htsmsg_add_msg to allow some post load modifications.

14 years agoAdded automatic configuration migration for epggrab (inc xmltv) and epgdb.
Adam Sutton [Fri, 15 Jun 2012 10:38:16 +0000 (11:38 +0100)] 
Added automatic configuration migration for epggrab (inc xmltv) and epgdb.

14 years agoSome very early attempts at duplicate detection. Really not sure if this is the best...
Adam Sutton [Thu, 14 Jun 2012 16:11:03 +0000 (17:11 +0100)] 
Some very early attempts at duplicate detection. Really not sure if this is the best way to go and definitley needs more thought but it does at least stop series links from creating lots of duplicates.

14 years agoFix silly typo.
Adam Sutton [Thu, 14 Jun 2012 12:25:36 +0000 (13:25 +0100)] 
Fix silly typo.

14 years agoFirst stab at allowing quality shifting from autorec, still undecided on this at...
Adam Sutton [Thu, 14 Jun 2012 11:33:08 +0000 (12:33 +0100)] 
First stab at allowing quality shifting from autorec, still undecided on this at the moment.

14 years agoAdd safety check.
Adam Sutton [Thu, 14 Jun 2012 11:10:12 +0000 (12:10 +0100)] 
Add safety check.

14 years agoForgot to finish of the episode number checking in series link.
Adam Sutton [Thu, 14 Jun 2012 10:42:24 +0000 (11:42 +0100)] 
Forgot to finish of the episode number checking in series link.

14 years agoStarted to add some configuration options to the series linking.
Adam Sutton [Thu, 14 Jun 2012 10:33:10 +0000 (11:33 +0100)] 
Started to add some configuration options to the series linking.

14 years agoRename some link variables to be a bit clearer and move to using anon structs to...
Adam Sutton [Thu, 14 Jun 2012 09:10:02 +0000 (10:10 +0100)] 
Rename some link variables to be a bit clearer and move to using anon structs to remove some of the code ugliness. May need to replace anon structures with MACRO based solution if people are not happy with using anon structs.

14 years agoAdd some of the missing stuff to xmltv and EIT. I think the only significant issue...
Adam Sutton [Wed, 13 Jun 2012 14:21:45 +0000 (15:21 +0100)] 
Add some of the missing stuff to xmltv and EIT. I think the only significant issue now is series numbering in XMLTV.

14 years agoFix some obvious memory leaks.
Adam Sutton [Wed, 13 Jun 2012 12:59:00 +0000 (13:59 +0100)] 
Fix some obvious memory leaks.

14 years agoSome VERY simple duplicate detection, I have not really started on this yet, but...
Adam Sutton [Wed, 13 Jun 2012 11:56:15 +0000 (12:56 +0100)] 
Some VERY simple duplicate detection, I have not really started on this yet, but I thought I might as well keep this minor mod.

14 years agoMinor tweak to layout of EPG entry info to make it easier to see useful stuff.
Adam Sutton [Tue, 12 Jun 2012 16:14:29 +0000 (17:14 +0100)] 
Minor tweak to layout of EPG entry info to make it easier to see useful stuff.

14 years agoGenerate missing brand/season if referenced in autorec rule, this ensures these will...
Adam Sutton [Tue, 12 Jun 2012 16:13:56 +0000 (17:13 +0100)] 
Generate missing brand/season if referenced in autorec rule, this ensures these will still work should the EPG db become corrupt or get deleted.

14 years agoFix a couple of memory leaks, and add basic ordering to episode lists in brand/season...
Adam Sutton [Tue, 12 Jun 2012 16:13:18 +0000 (17:13 +0100)] 
Fix a couple of memory leaks, and add basic ordering to episode lists in brand/season (these are NOT garaunteed).

14 years agoPartial revert of previous multi-key update. I have decided to leave it to the upstre...
Adam Sutton [Tue, 12 Jun 2012 12:05:39 +0000 (13:05 +0100)] 
Partial revert of previous multi-key update. I have decided to leave it to the upstream data providers to fix this (which still makes it my problem) but I have kept some of the simplifications added as part of the previous update.

14 years agoMore significant changes to the EPG code because I want to include the concept of...
Adam Sutton [Mon, 11 Jun 2012 16:18:11 +0000 (17:18 +0100)] 
More significant changes to the EPG code because I want to include the concept of having multiple URIs per object (to cope with badly merged upstream data).

14 years agodeb: Rename tvheadend.tvheadend.init -> tvheadend.init
Andreas Öman [Mon, 11 Jun 2012 12:41:08 +0000 (14:41 +0200)] 
deb: Rename tvheadend.tvheadend.init -> tvheadend.init

14 years agoFix a warning
Andreas Öman [Sun, 10 Jun 2012 04:28:09 +0000 (06:28 +0200)] 
Fix a warning

14 years agoMerge branch 'master' into epg-rewrite
Adam Sutton [Fri, 8 Jun 2012 21:30:31 +0000 (22:30 +0100)] 
Merge branch 'master' into epg-rewrite

14 years agoUpdated to include compat genre support (more will have to wait), DVR code fully...
Adam Sutton [Fri, 8 Jun 2012 21:24:11 +0000 (22:24 +0100)] 
Updated to include compat genre support (more will have to wait), DVR code fully updated to use new EPG code. Updated related code and added useful extra inputs to dvr event creation that should make XBMC devs happy.

14 years agoAdded genre updates to eit code.
Adam Sutton [Fri, 8 Jun 2012 18:52:17 +0000 (19:52 +0100)] 
Added genre updates to eit code.

14 years agoAdded some additional support to the pyepg and eit grabbers.
Adam Sutton [Fri, 8 Jun 2012 16:37:37 +0000 (17:37 +0100)] 
Added some additional support to the pyepg and eit grabbers.

14 years agoAdded image fields for brand, season and episode. Also simplified the repetetive...
Adam Sutton [Fri, 8 Jun 2012 16:37:01 +0000 (17:37 +0100)] 
Added image fields for brand, season and episode. Also simplified the repetetive string update code.

14 years agoStarted work on adding back in genre support.
Adam Sutton [Fri, 8 Jun 2012 16:05:30 +0000 (17:05 +0100)] 
Started work on adding back in genre support.

14 years agoAdd ability to record series from the EPG window.
Adam Sutton [Fri, 8 Jun 2012 14:45:31 +0000 (15:45 +0100)] 
Add ability to record series from the EPG window.

14 years agoInternal automatic detection of the fact the epg objects have been updated. This...
Adam Sutton [Fri, 8 Jun 2012 14:34:43 +0000 (15:34 +0100)] 
Internal automatic detection of the fact the epg objects have been updated. This should remove some burden from user code. However save flag is still returned and epg_updated() still needs to be called.

14 years agoSome simple display and configuration of brand based series link configuration.
Adam Sutton [Fri, 8 Jun 2012 14:33:48 +0000 (15:33 +0100)] 
Some simple display and configuration of brand based series link configuration.

14 years agoFirst stab at adding proper brand based series linking (some aspects of season based...
Adam Sutton [Fri, 8 Jun 2012 14:33:22 +0000 (15:33 +0100)] 
First stab at adding proper brand based series linking (some aspects of season based exist, but generally I am ignoring this for now).

14 years agoAdded channel list function to epggrab, however as yet not sure how best to integrate...
Adam Sutton [Fri, 8 Jun 2012 12:28:39 +0000 (13:28 +0100)] 
Added channel list function to epggrab, however as yet not sure how best to integrate into the UI.

14 years agoFix silly bug in channel linking.
Adam Sutton [Fri, 8 Jun 2012 11:19:40 +0000 (12:19 +0100)] 
Fix silly bug in channel linking.

14 years agoAdded extra metadata to epggrab channels, change log levels to get some useful info...
Adam Sutton [Fri, 8 Jun 2012 10:49:40 +0000 (11:49 +0100)] 
Added extra metadata to epggrab channels, change log levels to get some useful info when debug is off.

14 years agohtsp: Remove the broken signal status updates (causing crashes)
Andreas Öman [Fri, 8 Jun 2012 05:56:38 +0000 (07:56 +0200)] 
htsp: Remove the broken signal status updates (causing crashes)

htsp->hs_s may only be accessed if global_lock is held and obtaining
global_lock in HTSP delivery code is not acceptable as it can take
a long time to acquire that lock

Fixes #1029

14 years agoYet more tidying up of the epggrab framework including epggrab channel save/load...
Adam Sutton [Thu, 7 Jun 2012 20:46:51 +0000 (21:46 +0100)] 
Yet more tidying up of the epggrab framework including epggrab channel save/load. Definitely think I am getting somewhere now.

14 years agoSlight improvement to the config UI and fixed problem with error reporting on socket...
Adam Sutton [Thu, 7 Jun 2012 14:09:08 +0000 (15:09 +0100)] 
Slight improvement to the config UI and fixed problem with error reporting on socket close.

14 years agoSome tidying up and enabled full config save/store again.
Adam Sutton [Thu, 7 Jun 2012 12:55:32 +0000 (13:55 +0100)] 
Some tidying up and enabled full config save/store again.

14 years agoAnother significant reworking (cannot make my mind up ;) ) of the epggrab framework...
Adam Sutton [Thu, 7 Jun 2012 11:42:57 +0000 (12:42 +0100)] 
Another significant reworking (cannot make my mind up ;) ) of the epggrab framework. This time its MUCH simpler. All clever stuff is defered to a unix domain socket interface which allows users to define schedules using system cron and do whatever the hell they like as long as they send the data to the socket (using nc etc.).

14 years agoMerge branch 'epg-rewrite-tmp' into epg-rewrite
Adam Sutton [Thu, 7 Jun 2012 08:48:20 +0000 (09:48 +0100)] 
Merge branch 'epg-rewrite-tmp' into epg-rewrite

14 years agoCommitting this for posterity, but going to do a massive u-turn on the whole epggrab...
Adam Sutton [Thu, 7 Jun 2012 08:41:15 +0000 (09:41 +0100)] 
Committing this for posterity, but going to do a massive u-turn on the whole epggrab setup.

14 years agoMove the read from file descriptor into buffer into generic routine as I intend to...
Adam Sutton [Wed, 6 Jun 2012 19:31:01 +0000 (20:31 +0100)] 
Move the read from file descriptor into buffer into generic routine as I intend to reuse this for external epggrab input.

14 years agoFixed some bugs in cron code and re-enabled basic grabber code (still not fully funct...
Adam Sutton [Wed, 6 Jun 2012 16:08:15 +0000 (17:08 +0100)] 
Fixed some bugs in cron code and re-enabled basic grabber code (still not fully functional).