Merge remote-tracking branch 'cap_rem/main' into add_http_sample

This commit is contained in:
Xin Wang
2025-07-19 17:39:04 +08:00
3 changed files with 7 additions and 8 deletions

View File

@@ -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"
})

View File

@@ -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"
})

View File

@@ -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:
"""草稿文件中的素材信息部分"""