@danhachuel/thunderbolt 0.5.61 → 0.5.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app/main.py +4 -0
  2. package/package.json +1 -1
package/app/main.py CHANGED
@@ -1332,6 +1332,9 @@ def render_channel_edit_form(channel: dict, youtube_account_ids: list[str], yout
1332
1332
  edited_style = st.selectbox("Fonte do vídeo", WIDE_STYLE_OPTIONS, index=WIDE_STYLE_OPTIONS.index(channel_video_source_value(channel.get("style_wide"))) if channel_video_source_value(channel.get("style_wide")) in WIDE_STYLE_OPTIONS else 0)
1333
1333
  edited_aspect = st.selectbox("Proporção do vídeo", CHANNEL_ASPECT_RATIO_OPTIONS, index=CHANNEL_ASPECT_RATIO_OPTIONS.index(str(channel.get("video_aspect_ratio") or "Landscape 16:9")) if str(channel.get("video_aspect_ratio") or "Landscape 16:9") in CHANNEL_ASPECT_RATIO_OPTIONS else 0)
1334
1334
  edited_niche = st.text_input("Nicho", value=str(channel.get("niche") or channel_niche_label(channel) if channel_niche_label(channel) != "SEM NICHO CONFIGURADO" else "") )
1335
+ edited_subscribers = st.number_input("Inscritos", min_value=0, value=int(str(channel.get("subscriber_count") or 0).replace(".", "").replace(",", "")), step=1)
1336
+ edited_videos = st.number_input("Vídeos", min_value=0, value=int(str(channel.get("video_count") or 0).replace(".", "").replace(",", "")), step=1)
1337
+ edited_views = st.number_input("Visualizações", min_value=0, value=int(str(channel.get("view_count") or 0).replace(".", "").replace(",", "")), step=1)
1335
1338
  with edit_cols[1]:
1336
1339
  edited_blueprint = st.selectbox("Blueprint Padrão", blueprint_ids, index=blueprint_ids.index(current_blueprint) if current_blueprint in blueprint_ids else 0, format_func=lambda item: blueprint_labels.get(item, item or "Sem Blueprint padrão"))
1337
1340
  edited_voice = st.selectbox("Narrador/Voz Padrão", voice_options, index=voice_options.index(current_voice) if current_voice in voice_options else 0, format_func=lambda item: item or "Sem voz padrão")
@@ -1358,6 +1361,7 @@ def render_channel_edit_form(channel: dict, youtube_account_ids: list[str], yout
1358
1361
  "default_voice": edited_voice.strip(), "voice": edited_voice.strip(),
1359
1362
  "google_account_id": edited_account.strip(), "google_account_email": str(youtube_accounts_by_id.get(edited_account, {}).get("email", "")),
1360
1363
  "description": edited_description.strip(), "automation_on": bool(edited_automation), "automation_time": edited_time.strip(),
1364
+ "subscriber_count": int(edited_subscribers) or None, "video_count": int(edited_videos) or None, "view_count": int(edited_views) or None,
1361
1365
  })
1362
1366
  st.session_state.pop(f"edit_channel_{channel_id}", None)
1363
1367
  st.success("Canal actualizado.")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.5.61",
3
+ "version": "0.5.62",
4
4
  "description": "Thunderbolt — interface local para operação de canais faceless e motor MoneyPrinterTurbo",
5
5
  "license": "MIT",
6
6
  "main": "scripts/cli.mjs",