Americana's guide logo rendered by the kit's own guide-app.js; the importer knows Americana
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 7.3 KiB |
@@ -26,8 +26,9 @@ SLUGS = {101: "orbit-1", 102: "orbit-2", 103: "orbit-three", 104: "orbit-gold",
|
||||
300: "orbit-drive-in", 301: "orbit-premiere", 302: "orbit-action", 303: "orbit-sci-fi", 304: "orbit-horror",
|
||||
305: "orbit-after-dark", 306: "orbit-vhs", 307: "orbit-romance", 308: "orbit-detour", 309: "orbit-britx",
|
||||
310: "orbit-christmas", 401: "orbit-ring-x", 601: "orbit-vortex", 602: "orbit-heroes", 603: "orbit-x",
|
||||
604: "orbit-rewind", 605: "orbit-toonz", 611: "orbit-junior", 612: "orbit-wonder", 613: "orbit-pixelz", 614: "orbit-tots"}
|
||||
NAMED = {"TOTS_NUMBER": 614, "DRIVE_IN_NUMBER": 300, "VORTEX_NUMBER": 601, "CHRISTMAS_NUMBER": 310, "AFTER_DARK_NUMBER": 305}
|
||||
604: "orbit-rewind", 605: "orbit-toonz", 611: "orbit-junior", 612: "orbit-wonder", 613: "orbit-pixelz", 614: "orbit-tots",
|
||||
111: "orbit-americana"}
|
||||
NAMED = {"AMERICANA_NUMBER": 111, "TOTS_NUMBER": 614, "DRIVE_IN_NUMBER": 300, "VORTEX_NUMBER": 601, "CHRISTMAS_NUMBER": 310, "AFTER_DARK_NUMBER": 305}
|
||||
PACKS = {"orbit-mistletoe": "orbit-mistletoe", "orbit-sakura": "orbit-sakura"}
|
||||
|
||||
def run(*cmd): subprocess.run(cmd, check=True, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE)
|
||||
@@ -49,7 +50,9 @@ def original(rel):
|
||||
|
||||
def ident(src, rel_out):
|
||||
"""The kit ident held on its end frame for as long as the old one ran, with the old one's sound."""
|
||||
old = original(rel_out)
|
||||
# A channel newer than SOUND_FROM (Americana, 23 November 2026) keeps the sound its ident already has in the app.
|
||||
try: old = original(rel_out)
|
||||
except subprocess.CalledProcessError: old = os.path.join(ROOT, "android/app/src/main", rel_out)
|
||||
length = duration(old)
|
||||
has_audio = subprocess.check_output(["ffprobe", "-v", "error", "-select_streams", "a", "-show_entries", "stream=index", "-of", "csv=p=0", old]).strip() != b""
|
||||
cmd = ["ffmpeg", "-y", "-loglevel", "error", "-i", need(src)]
|
||||
|
||||
Reference in New Issue
Block a user