Skip to content

Commit

Permalink
Merge pull request #4 from neniuideo/master
Browse files Browse the repository at this point in the history
install makefile and minor fixes
  • Loading branch information
chriszero committed Aug 30, 2013
2 parents 22fb08b + 64c2f7c commit 2b1e135
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 15 deletions.
33 changes: 33 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# Makefile for tvspielfilm2xmltv
#

GRABBER = tvspielfilm2xmltv

DESTDIR ?=
PREFIX ?= /usr/local
MANDIR = $(PREFIX)/share/man
BINDIR = $(PREFIX)/bin
APPDIR = $(PREFIX)/share/$(GRABBER)

install:
# Install the progam files
@install -D tvspielfilm2xmltv.py $(DESTDIR)/$(APPDIR)/tvspielfilm2xmltv.py
@install -d $(DESTDIR)/$(APPDIR)/tvsp2xmltv
@install -D tvsp2xmltv/*.py $(DESTDIR)/$(APPDIR)/tvsp2xmltv
# Install the config
@install -d $(DESTDIR)/etc/$(GRABBER)
@install -b tvspielfilm2xmltv.ini $(DESTDIR)/etc/$(GRABBER)/tvspielfilm2xmltv.ini
# Install the man page
@install -d $(DESTDIR)/$(MANDIR)/man1/
@gzip -c9 $(GRABBER).1 > $(DESTDIR)/$(MANDIR)/man1/$(GRABBER).1.gz
# create the app link
@install -d $(DESTDIR)/$(BINDIR)
@rm -f $(DESTDIR)/$(BINDIR)/$(GRABBER)
@ln -s $(DESTDIR)/$(APPDIR)/tvspielfilm2xmltv.py $(DESTDIR)/$(BINDIR)/$(GRABBER)
# Install the Grabber API
@install -d $(DESTDIR)/var/lib/epgsources/$(GRABBER)-img
@chmod ugo+w $(DESTDIR)/var/lib/epgsources
@chmod ugo+w $(DESTDIR)/var/lib/epgsources/$(GRABBER)-img

@echo "Now create the controll file with \"$(GRABBER) -c\""
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,23 @@ tvspielfilm2xmltv

Simple XMLTV generator for Linux VDR

Dependencies:
python >= 3.2
requests
pytz

Dependencies:
- python >= 3.2
- requests
- pytz

Debian Dependencies:
- python3
- python3-requests
- python3-tz

apt-get install python3 python3-requests python3-tz
```bash
apt-get install python3 python3-requests python3-tz
```

Install:

```bash
make install
```
16 changes: 8 additions & 8 deletions tvspielfilm2xmltv.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ Load epg data from the TV Spielfilm web service and output it to file in XMLTV f
.SH
OPTIONS
.TP
.BI -c\ </path/filename>
Create the Database with the mapping.
.BI -c
Create the grabber control file.
.TP
.BI -d
Maximum number of days for the mapping Database.
Maximum number of days the data source support. Will be written to the grabber control file.
.TP
.BI -t
The usual data souce update time for the mapping Database.
The usual time at the data souce update the epg. Will be written to the grabber control file.
.TP
.BI -V
Print version information and exit.
Expand Down Expand Up @@ -53,10 +53,10 @@ Network error.
FILES
.TP
.I /var/lib/epgsources/tvspielfilm2xmltv
Database with the mapping of the channel ids to the TVMovie ids.
Grabber control file.
.TP
.I /var/lib/epgsources/tvspielfilm2xmltv.xml
The current epg information.
.I /var/lib/epgsources/tvspielfilm2xmltv.xmltv
The current grabbed epg information.
.SH EXAMPLE
.TP
Load epg data for channel ard.de with epg images for three days.
Expand All @@ -68,7 +68,7 @@ Load epg data for channel ard.de and zdf.de without epg images for four days.
.B tvspielfilm2xmltv 4 '' ard.de zdf.de
.SH SEE ALSO
.TP
List of all known channel ids (May not all supported by tvm2xmltv):
List of all known channel ids (May not all supported by tvspielfilm2xmltv):
.nf
.I http://www.vdr-wiki.de/wiki/index.php/Xmltv2vdr-plugin#Verbindliche_Kanalliste
.TP
Expand Down
4 changes: 2 additions & 2 deletions tvspielfilm2xmltv.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[DEFAULT]
destination_file = tvspielfilm2xmltv2.xml
control_file = tvspielfilm2xmltv
destination_file = /var/lib/epgsources/tvspielfilm2xmltv.xmltv
control_file = /var/lib/epgsources/tvspielfilm2xmltv
grab_today = True

0 comments on commit 2b1e135

Please sign in to comment.