@danhachuel/thunderbolt 0.7.9 → 0.7.10
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.
- package/app/main.py +13 -0
- package/package.json +1 -1
package/app/main.py
CHANGED
|
@@ -5910,6 +5910,19 @@ def render_automation():
|
|
|
5910
5910
|
with header_cols[1]:
|
|
5911
5911
|
st.write(f"**{channel.get('name', 'Sem nome')}**")
|
|
5912
5912
|
st.caption(channel.get("handle") or channel.get("url") or "sem URL")
|
|
5913
|
+
channel_url = str(channel.get("url") or "").strip()
|
|
5914
|
+
if not channel_url:
|
|
5915
|
+
channel_id_or_handle = str(channel.get("youtube_channel_id") or channel.get("youtube_id") or channel.get("handle") or "").strip()
|
|
5916
|
+
if channel_id_or_handle.startswith("http"):
|
|
5917
|
+
channel_url = channel_id_or_handle
|
|
5918
|
+
elif channel_id_or_handle.startswith("UC"):
|
|
5919
|
+
channel_url = f"https://www.youtube.com/channel/{channel_id_or_handle}"
|
|
5920
|
+
elif channel_id_or_handle.startswith(("@", "channel/")):
|
|
5921
|
+
channel_url = f"https://www.youtube.com/{channel_id_or_handle}"
|
|
5922
|
+
elif channel_id_or_handle:
|
|
5923
|
+
channel_url = f"https://www.youtube.com/@{channel_id_or_handle}"
|
|
5924
|
+
if channel_url:
|
|
5925
|
+
st.link_button("Abrir canal", channel_url, type="primary", width="content")
|
|
5913
5926
|
with header_cols[2]:
|
|
5914
5927
|
st.markdown("**Thumbnail Blueprint**")
|
|
5915
5928
|
st.caption(str(paired_thumbnail.get("name") or "Generic_Thumbnail_Blueprint"))
|
package/package.json
CHANGED