Implementation principle: JianYingPro project files are stored in the form of json, only need to create draft_content.json, draft_mate_info.json will be automatically completed after opening the software.
Add a piece of media to the track order Draft Library -> Content Library -> Track Clips
add_media_to_track will identify the media type and add it to the corresponding track.
When there is no video track, creating an audio track will create a video track first.
import os
import time
import util
import template
from material import Material
from track import Tracks
class Draft:
drafts_folder = "D:/JianyingPro Drafts"
template_folder = &#