From 6920726b7e1f1982edd5aaec899cf17f4fc11474 Mon Sep 17 00:00:00 2001 From: wonipapa Date: Fri, 19 May 2017 10:26:06 +0900 Subject: [PATCH] =?UTF-8?q?epg2xml-web=20=EB=B2=84=EC=A0=84=20=EC=84=A4?= =?UTF-8?q?=EB=AA=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c680b92..235037d 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,16 @@ python 3과 php 5.6.3 이하에서는 정상적인 작동을 보장하지 못한 ## 필요 모듈 -### EPG2XML.PY +### epg2xml.py BeautifulSoup(bs4), lxml, requests 모듈이 추가로 필요하다. 설치 OS별로 모듈을 설치하기 위한 사전 설치 방법이 다를 수도 있으므로 검색해서 설치하도록 한다. synology의 경우 파이썬 모듈을 설치하면 easy_install beautifulsoup, easy_install lxml, easy_install requests 로 추가할 수 있다. -### EPG2XML.php -json, dom, mbstring, openssl 모듈이 필요하다. 일반적으로 PHP가 설치되어 있다면 대부분 설치되어 있는 모듈이나 설치되어 있지 않을 경우 추가로 설치해야 한다. +### epg2xml.php +json, dom, mbstring, openssl, curl 모듈이 필요하다. 일반적으로 PHP가 설치되어 있다면 대부분 설치되어 있는 모듈이나 설치되어 있지 않을 경우 추가로 설치해야 한다. + +### epg2xml-web.php +epg2xml.php와 동일 ## 설정방법 epg2xml.json 안의 항목이 설정 가능한 항목이다. @@ -35,6 +38,7 @@ Channel.json 파일을 텍스트 편집기로 열어보면 각채널별 정보 삭제된 채널등으로 인해서 오류 발생시에도 Enabled:0으로 변경하면 오류 발생을 차단할 수 있다. ## 옵션 소개 +### epg2xml.py, epg2xml.php 옵션 실행시 사용가능한 인수는 --help 명령어로 확인이 가능하다 epg2xml.json의 설정을 옵션의 인수를 이용하여 변경할 수 있다.
@@ -51,10 +55,15 @@ epg2xml.json의 설정을 옵션의 인수를 이용하여 변경할 수 있다.
 --verbose : EPG 정보 상세하게 표기 ex) --verbose y
 
+### epg2xml-web.php 옵션 +실행시 사용가능한 인수는 epg2xml.php?help 명령어로 확인이 가능하다 +epg2xml.json의 설정을 옵션의 인수를 이용하여 변경할 수 있다. +ex : http://domain/epg2xml.php?i=ALL&l=2 + ## 사용방법 -### tv_grab_file 사용시 (https://github.com/neo365/tvheadend-for-Korea) -epg2xml tv_grab_file 안의 cat xmltv.xml 또는 wget 부분을 아래와 같이 변경해준다. +### tv_grab_file 사용시 (https://github.com/nurtext/tv_grab_file_synology) +tv_grab_file 안의 cat xmltv.xml 또는 wget 부분을 아래와 같이 변경해준다. #### PYTHON의 경우
@@ -62,7 +71,7 @@ epg2xml tv_grab_file 안의 cat xmltv.xml 또는 wget 부분을 아래와 같이
 /home/hts/epg2xml.py
 
-#### PHP의 경우 +#### PHP CLI의 경우
 /usr/bin/php /home/hts/epg2xml.php 또는
 /home/hts/epg2xml.php
@@ -77,11 +86,15 @@ epg2xml tv_grab_file 안의 cat xmltv.xml 또는 wget 부분을 아래와 같이
 /home/hts/epg2xml.py
 
-#### PHP의 경우 +#### PHP CLI의 경우
 /usr/bin/php /home/hts/epg2xml.php 또는
 /home/hts/epg2xml.php
 
+### PHP WEB의 경우 +
+http://domain/epg2xml.php
+
## 라이센스 BSD