OSDN Git Service

some exp added.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 27 Sep 2009 06:32:59 +0000 (06:32 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 27 Sep 2009 06:32:59 +0000 (06:32 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@162 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/install.py
rec10/trunk/src/readme.txt

index fb42d99..57b8f24 100644 (file)
@@ -2,9 +2,17 @@
 # coding: UTF-8
 # Rec10 TS Recording Tools
 # Copyright (C) 2009 Yukikaze
+import sys
 import chdata
-import epgdb
 import timerec
+code=sys.getdefaultencoding()
+if code != 'utf-8':
+    print "The default encoding of python is not utf-8."
+    print "Using multibyte character in not utf-8 environment cause many errors."
+    print "please make /usr/lib/python(version)/site-package/sitecustomize.py and"
+    print "write \n import sys\n sys.setdefaultencoding('utf-8')\n in it."
+    print "then please retry this install.py."
+    print "thank you."
+    sys.exit(0)
 chdata
-timerec.task()
-#epgdb.updateall_bak()
\ No newline at end of file
+timerec.task()
\ No newline at end of file
index 06b0bd3..1fe923c 100644 (file)
@@ -85,7 +85,6 @@ crontab -e を実行するとcronを編集できるようになるので
 以上で設定は終了です。
 
 ちなみに
-dbviewer.pyを実行すると現在のデーターベースを見ることができます。
 エンコードの設定を変えたい場合はts2x264を参照してください
 
 チャンネルの設定を買えた場合はchdata.pyを編集したの知に