#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tampilkan caption lengkap jadwal IG SS hari ini."""
import sys, time, datetime
sys.path.insert(0, "/home/mantapman/.hermes/profiles/atun/workspace")
from repliz_client import get_client
IG_SS = "6a38ac33c5ff4ce3a3231232"
c = get_client()
ids = {
 "07:00 story": "6abb94711733078385934bc7",
 "08:30 album": "6abef59b07008e0e9146e98e",
 "08:40 story": "6abef59b07008e0e9146e995",
 "11:00 video": "6abd30811733078385f48210",
 "13:00 text ": "6abefbfd07008e0e9147d429",
 "19:00 video": "6abd306f1246a403eda825f8",
}
for label, sid in ids.items():
    for a in range(5):
        try:
            d = c.get_schedule(sid); break
        except Exception as e:
            time.sleep(3); d = None
    if not d:
        print(label, "GAGAL"); continue
    d = d.get("data", d)
    print("=" * 70)
    print(label, "| status:", d.get("status"), "| type:", d.get("type"))
    print("-" * 70)
    print(d.get("description") or "(kosong)")
