Skip to content

Commit

Permalink
modify the directory detection path
Browse files Browse the repository at this point in the history
  • Loading branch information
tanayan299 committed Jul 23, 2023
1 parent c581a2e commit b0d1317
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions media-checker/media_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ def command_put(args):
sys.exit(1)

# 動画が格納されているフォルダの第一階層のフォルダ名を取得する
input_dir = json_load["GROUPFOLDER_PATH"] + json_load["GLOUPFOLDER_ID"]
input_dir = (
json_load["GROUPFOLDER_PATH"]
+ json_load["GLOUPFOLDER_ID"]
+ "/*"
+ json_load["EVENT_ABBR"]
)

# talksリストの取得
talks = _create_talks(json_load["DREAMKAST_DOMAIN"], json_load["EVENT_ABBR"])
Expand Down Expand Up @@ -228,7 +233,12 @@ def command_stdout(args):
json_open = open("./media_checker_env.json", "r")
json_load = json.load(json_open)

input_dir = json_load["GROUPFOLDER_PATH"] + json_load["GLOUPFOLDER_ID"]
input_dir = (
json_load["GROUPFOLDER_PATH"]
+ json_load["GLOUPFOLDER_ID"]
+ "/*"
+ json_load["EVENT_ABBR"]
)

# 対象フォルダ配下の動画の情報をすべて標準出力する
media_status = []
Expand Down

0 comments on commit b0d1317

Please sign in to comment.