File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11# Import the obspython module
22import obspython as obs
33
4- # The Python module search path will be displayed in the Script Log Window
4+ # The Python Module Search Path will be displayed in the Script Log Window
55import sys
66obs .script_log (obs .LOG_INFO , str (sys .path ))
Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ def script_load(settings):
1919 global data
2020 data = settings
2121
22- # Read the Script Setting Item closed_time, which is the stop- time of the script
22+ # Read the Script Setting Item closed_time, which is the stop time of the script
2323 closed_time = obs .obs_data_get_string (data , 'closed_time' )
2424 if closed_time :
2525 obs .script_log (obs .LOG_INFO , f'The last time the script stopped was at { closed_time } ' )
2626
2727 obs .script_log (obs .LOG_INFO , script_path ())
2828
2929# def script_unload():
30- # # Write the current time to the Script Setting Item closed_time as the stop- time of the script
30+ # # Write the current time to the Script Setting Item closed_time as the stop time of the script
3131# from datetime import datetime
3232# obs.obs_data_set_string(data, 'closed_time', datetime.now().ctime())
3333
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def test(props, prop):
2828
2929 # 取得名稱為 Media 的媒體來源
3030 media = obs .obs_get_source_by_name ('Media' )
31- # 取得持續時間和當前時間 ,並計算播放進度
31+ # 取得持續時間和目前時間 ,並計算播放進度
3232 duration = obs .obs_source_media_get_duration (media )
3333 time = obs .obs_source_media_get_time (media )
3434 obs .script_log (obs .LOG_INFO , f'Media 播放進度 { int (time * 100 / duration )} %' )
Original file line number Diff line number Diff line change @@ -27,17 +27,17 @@ def script_load(settings):
2727 obs .script_log (obs .LOG_INFO , script_path ())
2828
2929# def script_unload():
30- # # 將當前時間寫入腳本設定項 closed_time,作為腳本的停止時間
30+ # # 將目前時間寫入腳本設定項 closed_time,作為腳本的停止時間
3131# from datetime import datetime
3232# obs.obs_data_set_string(data, 'closed_time', datetime.now().ctime())
3333
3434def script_update (settings ):
3535 # 讀取腳本設定項 hours 並顯示
3636 hours = obs .obs_data_get_int (settings , 'hours' )
37- obs .script_log (obs .LOG_INFO , f'當前小時為 { hours } ' )
37+ obs .script_log (obs .LOG_INFO , f'目前小時為 { hours } ' )
3838
3939def script_save (settings ):
40- # 將當前時間寫入腳本設定項 closed_time,作為腳本的停止時間
40+ # 將目前時間寫入腳本設定項 closed_time,作為腳本的停止時間
4141 from datetime import datetime
4242 obs .obs_data_set_string (settings , 'closed_time' , datetime .now ().ctime ())
4343
You can’t perform that action at this time.
0 commit comments