Grabber

Fetching schedule data for each service is done during the grabbing process. The grabber supports various method for fetching data files. These files can be on a web-server, ftp-server or local filesystem.

The grabber is fetching files from the configured source to target directory. This target directory is different for each service. The directory is named by the SID of the service and located inside /var/lib/cherryepg/ingest/. This directory in created on demand and handled by cherryEPG.

The configuration of the grabber is done by the scheme file. The columns relevant for configuring the grabber are URL and Update.

URL

Here we configure the source for data fetching.

Update

The process of grabbing is started on regular basis. The intensity is depending on the data source. With the parameter in the Update field you can select the update interval. Various update intervals are defined in the cherryEPG cron file /etc/cron.d/cherryepg.

Possible values are:

  • monthly - will be run at the end of the month;
  • weekly - will be run at Friday night,
  • daily - will be run daily at 2:35am in the morning,
  • hourly - will be run 5 minutes before the hour.

Control from Command-line

The grabber is invoked from command-line with the cherryTool script.

When grabbing by target the ingester is automatically started.

Grabbing and ingesting of schedule files by target is started by specifying the target e.g. daily

cherryTool -G daily

or to grab and ingest schedule files for all services by specifying all

cherryTool -G all

It also possible to grab schedule files for individual services by specifying the service SID. In this case the ingester is not run.

cherryTool -g 42

but is is possible to combine grabbing and ingesting

cherryTool -gi 42

The files inside a service directory can be deleted with

cherryTool -d 42

It is also possible to clean the whole ingest directory. All directories inside /var/lib/cherryepg/ingest/ will be deleted.

cherryTool -D