Skip to content

jianshuo/claude-skills / wjs-fetching-movie

wjs-fetching-movie

Verified

Use when 王建硕 gives a list of movies and wants them turned into Relisten-ready files — find a LEGAL source for each (public-domain / openly licensed copies on Internet Archive, or a copy he already owns on this Mac), get English subtitles (and Chinese if possible) via OpenSubtitles or Whisper+translation fallback, compress to a small high-quality HEVC mp4 with labeled embedded subtitle tracks, and file them under ~/Movies/Relisten/. Triggers — "找电影", "下载这几部电影", "给 relisten 准备片子", "电影列表", "/wjs-fetching-movie".

FileKindSize
SKILL.mdskill md4.6 KB
scripts/ia_search.pyexecutablescript1.5 KB
scripts/opensubs.pyexecutablescript2.8 KB
scripts/pack.shexecutablescript1.9 KB

scripts/ia_search.py

View on GitHub
#!/usr/bin/env python3
"""Search Internet Archive for a (public-domain / openly licensed) feature film.

usage: ia_search.py "Title" [year]
prints JSON: candidates with identifier, licenseurl, and the video/subtitle files (name, size MB, format).
"""
import json, sys, urllib.parse, urllib.request

def get(url):
    with urllib.request.urlopen(url, timeout=30) as r:
        return json.load(r)

title = sys.argv[1]
year = sys.argv[2] if len(sys.argv) > 2 else ""
q = f'title:("{title}") AND mediatype:movies'
if year:
    q += f" AND year:{year}"
params = urllib.parse.urlencode({
    "q": q, "rows": 8, "output": "json",
    "fl[]": ["identifier", "title", "year", "licenseurl", "downloads", "collection"],
    "sort[]": "downloads desc",
}, doseq=True)
docs = get(f"https://archive.org/advancedsearch.php?{params}")["response"]["docs"]

VIDEO = (".mp4", ".mkv", ".m4v", ".mpeg", ".avi", ".ogv")
SUBS = (".srt", ".vtt", ".ass")
out = []
for d in docs:
    meta = get(f"https://archive.org/metadata/{d['identifier']}")
    files = []
    for f in meta.get("files", []):
        n = f.get("name", "")
        if n.lower().endswith(VIDEO + SUBS):
            files.append({"name": n, "mb": round(int(f.get("size", 0)) / 1e6), "format": f.get("format"),
                          "url": f"https://archive.org/download/{d['identifier']}/{urllib.parse.quote(n)}"})
    out.append({**d, "page": f"https://archive.org/details/{d['identifier']}", "files": files})
print(json.dumps(out, ensure_ascii=False, indent=1))
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall