Douyin-to-Photos
Use this skill to implement a one-tap Apple Shortcuts flow for authorized Douyin video archiving into Photos.
Hard Rules
- - Process only links the user is allowed to download and store.
- Request only required permissions: network + Photos add-only.
- Keep all temporary files in Shortcuts temp folder and delete after import.
- Never persist user links, tokens, or media metadata outside local shortcut runtime.
Workflow
- 1. Accept input from Share Sheet (
URL or text) or clipboard fallback. - Normalize and validate Douyin URL (
douyin.com or iesdouyin.com). - Resolve playable MP4 via API provider chain:
- - Primary: INLINECODE3
- Fallback: user-defined gateway API (for example self-hosted parser)
- 4. Download MP4 to temporary file.
- Save to Photos (optionally target user-selected album).
- Delete temporary file and report success/failure.
Included Resources
- -
scripts/fetch_douyin_no_watermark.sh: provider-chain URL resolver with timeout and structured errors. - INLINECODE5 : action-by-action Shortcuts build instructions.
- INLINECODE6 : market-ready manifest template with parameterized options.
Integration Notes
- - Share Sheet: enable
URLs input type. - Back Tap: configure a tiny launcher shortcut that reads clipboard and calls the main shortcut.
- Keep API base URL and album name configurable via shortcut dictionary values.
Validation
- - Run URL resolver script with a test share link before wiring into Shortcuts.
- Test four scenarios: success, invalid link, API timeout, API quota/blocked.
- Confirm temporary media file is deleted in both success and failure paths.
抖音转相册
使用此技能实现一键式苹果快捷指令流程,用于将授权后的抖音视频归档至相册。
硬性规则
- - 仅处理用户允许下载和存储的链接。
- 仅请求必要权限:网络 + 相册仅添加权限。
- 将所有临时文件保留在快捷指令临时文件夹中,导入后删除。
- 绝不在本地快捷指令运行环境之外持久化存储用户链接、令牌或媒体元数据。
工作流程
- 1. 从共享表单接受输入(URL或文本),或回退至剪贴板。
- 标准化并验证抖音URL(douyin.com或iesdouyin.com)。
- 通过API提供商链解析可播放的MP4:
- 主要:https://www.tikwm.com/api/
- 备用:用户自定义网关API(例如自建解析器)
- 4. 将MP4下载至临时文件。
- 保存至相册(可选择目标用户相册)。
- 删除临时文件并报告成功/失败。
包含资源
- - scripts/fetchdouyinno_watermark.sh:带超时和结构化错误的提供商链URL解析器。
- references/shortcut-build-guide.md:分步骤的快捷指令构建指南。
- assets/skill-manifest.json:带参数化选项的市售清单模板。
集成说明
- - 共享表单:启用URLs输入类型。
- 轻点背面:配置一个读取剪贴板并调用主快捷指令的微型启动快捷指令。
- 通过快捷指令字典值保持API基础URL和相册名称可配置。
验证
- - 在接入快捷指令前,使用测试分享链接运行URL解析器脚本。
- 测试四种场景:成功、无效链接、API超时、API配额/被屏蔽。
- 确认临时媒体文件在成功和失败路径中均被删除。