YouTube ID を外部に

このコミットが含まれているのは:
2023-12-03 09:11:08 +09:00
コミット bbfb8c97fe
4個のファイルの変更18行の追加4行の削除
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
/connection.py /connection.py
/__pycache__ /__pycache__
/nizika_talking.wav /nizika_talking.wav
/youtube.py
+13
ファイルの表示
@@ -0,0 +1,13 @@
import unicodedata
class CommonModule:
@staticmethod
def is_wide (c: str) -> bool:
return unicodedata.east_asian_width (c) in ['F', 'W', 'A']
@classmethod
def string_width_per_pt (cls, string: str) -> float:
return sum ([1 if cls.is_wide (c) else .5
for c in string.decode ('utf-8')])
+2 -3
ファイルの表示
@@ -8,9 +8,8 @@ from talk import Talk
import subprocess import subprocess
from aques import Aques from aques import Aques
from playsound import playsound from playsound import playsound
from common_module import CommonModule
from youtube import *
YOUTUBE_ID: str = 'Q0kSYNcu5Xk'
class Main: class Main:
+2
ファイルの表示
@@ -0,0 +1,2 @@
YOUTUBE_ID: str = 'XXXXXXXXXXX'