@danhachuel/thunderbolt 0.5.58 → 0.5.59
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 +15 -13
- package/package.json +1 -1
package/app/main.py
CHANGED
|
@@ -6728,19 +6728,21 @@ def render_google_accounts(*, include_innertube: bool = True):
|
|
|
6728
6728
|
st.rerun()
|
|
6729
6729
|
|
|
6730
6730
|
st.divider()
|
|
6731
|
-
|
|
6732
|
-
st.
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
with
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6731
|
+
add_account = False
|
|
6732
|
+
with st.expander("Adicionar conta Google/YouTube", expanded=False):
|
|
6733
|
+
st.markdown("### Nova conta Gmail")
|
|
6734
|
+
st.caption("Este formulário fica fora dos cartões das contas existentes. A associação de canais não depende da completude deste documento; ela apenas ficará pendente para Upload directo até os campos serem preenchidos.")
|
|
6735
|
+
with st.form("add_batch_account_form"):
|
|
6736
|
+
add_cols = st.columns(2)
|
|
6737
|
+
with add_cols[0]:
|
|
6738
|
+
new_account_label = st.text_input("Nome da nova conta", value="Canais YouTube", key="new_batch_account_label")
|
|
6739
|
+
new_account_email = st.text_input("E-mail/Gmail", key="new_batch_account_email")
|
|
6740
|
+
new_account_client_id = st.text_input("OAuth Client ID", key="new_batch_account_client_id")
|
|
6741
|
+
with add_cols[1]:
|
|
6742
|
+
new_account_client_secret = st.text_input("OAuth Client Secret", type="password", key="new_batch_account_client_secret")
|
|
6743
|
+
new_account_session_info = st.text_input("sessionInfo token desta conta Google", type="password", key="new_batch_account_session_info", help="Token sessionInfo desta conta. Os cookies e delegated_session_ids ficam no documento; a INNERTUBE_API_KEY é configurada no bloco próprio acima.")
|
|
6744
|
+
new_account_document = st.file_uploader("Documento de cookies/credenciais opcional", type=["json"], key="new_batch_account_credentials_document", help="Pode subir agora um JSON completo ou apenas o documento de cookies. Se não subir, será criado um credentials.json padrão vazio.")
|
|
6745
|
+
add_account = st.form_submit_button("Adicionar conta Google/YouTube", type="primary", use_container_width=True)
|
|
6744
6746
|
if add_account:
|
|
6745
6747
|
document_error = ""
|
|
6746
6748
|
if "@" not in new_account_email.strip():
|
package/package.json
CHANGED