Skip to content

Commit 05e4229

Browse files
committed
test
1 parent 78de4a6 commit 05e4229

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_mcp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@
2525

2626
# 新しい関数を定義
2727
def patched_extract_captions_json(self, html: str, video_id: str) -> dict:
28+
print(html)
29+
2830
splitted_html = html.split("var ytInitialPlayerResponse = ")
2931

3032
if len(splitted_html) <= 1:
3133
if 'class="g-recaptcha"' in html:
3234
raise IpBlocked(video_id)
3335

3436
json_string = splitted_html[1].split("</script>")[0].strip()
35-
print(json_string)
3637
video_data = json.loads(
3738
json_string.split('};var')[0] + '}' if '};var' in json_string else \
3839
json_string.rstrip(";")

0 commit comments

Comments
 (0)