MyanmarSwe commited on
Commit
7faef68
·
verified ·
1 Parent(s): fb10d48

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -1
main.py CHANGED
@@ -64,9 +64,11 @@ def meta(user_key: str, m_type: str, meta_id: str):
64
  rec_cursor = metas_col.find({"id": {"$in": [f"tmdb:{rid}" for rid in m["recommendations"]]}})
65
  related = [{"id": r["id"], "type": r["type"], "name": r["name"], "poster": r["poster"]} for r in rec_cursor]
66
 
67
- # UI Optimization
68
  m.pop("_id", None)
 
69
  m["related"] = related
 
70
  # Collection ဆိုလျှင် type ကို series အဖြစ်ပြမှ videos ပေါ်မည်
71
  if meta_id.startswith("tmdb_col:"): m["type"] = "series"
72
 
 
64
  rec_cursor = metas_col.find({"id": {"$in": [f"tmdb:{rid}" for rid in m["recommendations"]]}})
65
  related = [{"id": r["id"], "type": r["type"], "name": r["name"], "poster": r["poster"]} for r in rec_cursor]
66
 
67
+ # UI Optimization & Error Prevention
68
  m.pop("_id", None)
69
+ m.pop("updated_at", None) # Stremio JSON Error မဖြစ်အောင် Datetime ကို ဖြုတ်ထုတ်ပေးခြင်း
70
  m["related"] = related
71
+
72
  # Collection ဆိုလျှင် type ကို series အဖြစ်ပြမှ videos ပေါ်မည်
73
  if meta_id.startswith("tmdb_col:"): m["type"] = "series"
74