Update README.md

This commit is contained in:
wonipapa 2017-04-14 10:47:08 +09:00 committed by GitHub
parent dd26f142d1
commit a0b654ae41

View File

@ -31,40 +31,6 @@ Channel.json 파일을 텍스트 편집기로 열어보면 각채널별 정보
필요없는 채널정보를 가져오지 않게 하는 것으로 EPG 정보 수집시 시간을 단축할 수 있다. 필요없는 채널정보를 가져오지 않게 하는 것으로 EPG 정보 수집시 시간을 단축할 수 있다.
삭제된 채널등으로 인해서 오류 발생시에도 Enabled:0으로 변경하면 오류 발생을 차단할 수 있다. 삭제된 채널등으로 인해서 오류 발생시에도 Enabled:0으로 변경하면 오류 발생을 차단할 수 있다.
## 사용방법
### tv_grab_file 사용시 (https://github.com/neo365/tvheadend-for-Korea)
epg2xml tv_grab_file 안의 cat xmltv.xml 또는 wget 부분을 아래와 같이 변경해준다.
#### PYTHON의 경우
<pre>
/usr/bin/python /home/hts/epg2xml.py 또는
/home/hts/epg2xml.py
</pre>
#### PHP의 경우
<pre>
/usr/bin/php /home/hts/epg2xml.php 또는
/home/hts/epg2xml.php
</pre>
### XMLTV SOCKET 사용시
**xmltv.sock 사용시 socat 등을 사용하지 않고 바로 socket에 쓰기가 가능하다**
#### PYTHON의 경우
<pre>
/usr/bin/python /home/hts/epg2xml.py 또는
/home/hts/epg2xml.py
</pre>
#### PHP의 경우
<pre>
/usr/bin/php /home/hts/epg2xml.php 또는
/home/hts/epg2xml.php
</pre>
## 옵션 소개 ## 옵션 소개
실행시 사용가능한 인수는 --help 명령어로 확인이 가능하다 실행시 사용가능한 인수는 --help 명령어로 확인이 가능하다
epg2xml.json의 설정을 옵션의 인수를 이용하여 변경할 수 있다. epg2xml.json의 설정을 옵션의 인수를 이용하여 변경할 수 있다.
@ -82,5 +48,38 @@ epg2xml.json의 설정을 옵션의 인수를 이용하여 변경할 수 있다.
--verbose : EPG 정보 상세하게 표기 ex) --verbose y --verbose : EPG 정보 상세하게 표기 ex) --verbose y
</pre> </pre>
## 사용방법
### tv_grab_file 사용시 (https://github.com/neo365/tvheadend-for-Korea)
epg2xml tv_grab_file 안의 cat xmltv.xml 또는 wget 부분을 아래와 같이 변경해준다.
#### PYTHON의 경우
<pre>
/usr/bin/python /home/hts/epg2xml.py 또는
/home/hts/epg2xml.py
</pre>
#### PHP의 경우
<pre>
/usr/bin/php /home/hts/epg2xml.php 또는
/home/hts/epg2xml.php
</pre>
### XMLTV SOCKET 사용시
**xmltv.sock 사용시 socat 등을 사용하지 않고 바로 socket에 쓰기가 가능하다**
#### PYTHON의 경우
<pre>
/usr/bin/python /home/hts/epg2xml.py 또는
/home/hts/epg2xml.py
</pre>
#### PHP의 경우
<pre>
/usr/bin/php /home/hts/epg2xml.php 또는
/home/hts/epg2xml.php
</pre>
## 라이센스 ## 라이센스
BSD BSD