diff --git a/README-zh.md b/README-zh.md index 726dc32..fea98ab 100644 --- a/README-zh.md +++ b/README-zh.md @@ -74,7 +74,7 @@ python capcut_server.py ```python import requests -response = requests.post("http://localhost:9000/add_video", json={ +response = requests.post("http://localhost:9001/add_video", json={ "video_url": "http://example.com/video.mp4", "start": 0, "end": 10, @@ -90,7 +90,7 @@ print(response.json()) ```python import requests -response = requests.post("http://localhost:9000/add_text", json={ +response = requests.post("http://localhost:9001/add_text", json={ "text": "你好,世界!", "start": 0, "end": 3, @@ -107,7 +107,7 @@ print(response.json()) ```python import requests -response = requests.post("http://localhost:9000/save_draft", json={ +response = requests.post("http://localhost:9001/save_draft", json={ "draft_id": "123456", "draft_folder":"your capcut draft folder" }) diff --git a/README.md b/README.md index 4a02613..a78a6b5 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ Once the server is started, you can access the related functions through the API ```python import requests -response = requests.post("http://localhost:9000/add_video", json={ +response = requests.post("http://localhost:9001/add_video", json={ "video_url": "http://example.com/video.mp4", "start": 0, "end": 10, @@ -92,7 +92,7 @@ print(response.json()) ```python import requests -response = requests.post("http://localhost:9000/add_text", json={ +response = requests.post("http://localhost:9001/add_text", json={ "text": "Hello, World!", "start": 0, "end": 3, @@ -109,7 +109,7 @@ print(response.json()) ```python import requests -response = requests.post("http://localhost:9000/save_draft", json={ +response = requests.post("http://localhost:9001/save_draft", json={ "draft_id": "123456", "draft_folder": "your capcut draft folder" }) diff --git a/pyJianYingDraft/script_file.py b/pyJianYingDraft/script_file.py index 10222f4..fa577fb 100644 --- a/pyJianYingDraft/script_file.py +++ b/pyJianYingDraft/script_file.py @@ -6,7 +6,6 @@ from copy import deepcopy from typing import Optional, Literal, Union, overload from typing import Type, Dict, List, Any -from core.capcut_api.pyJianYingDraft.metadata.font_meta import Font_type from . import util from . import exceptions @@ -21,7 +20,7 @@ from .text_segment import Text_segment, Text_style, TextBubble, Text_border, Tex from .track import Track_type, Base_track, Track from settings.local import IS_CAPCUT_ENV -from .metadata import Video_scene_effect_type, Video_character_effect_type, Filter_type +from .metadata import Video_scene_effect_type, Video_character_effect_type, Filter_type, Font_type class Script_material: """草稿文件中的素材信息部分"""