Arreglar algo que se me olvido
This commit is contained in:
parent
b63cf6d8c4
commit
dc959493df
1 changed files with 3 additions and 3 deletions
|
@ -18,15 +18,15 @@ while true; do
|
|||
echo "Checkqueando si $TWITCH_USER esta en vivo"
|
||||
|
||||
# Checkea si el streamer esta en vivo usando la API de twitch
|
||||
checkstream=$(xh GET "https://api.twitch.tv/helix/streams?user_login=$TWITCH_USER" "Authorization: Bearer $twitchauth" "Client-Id: $clientid" -b | ./jtc -w '[data][:][type]')
|
||||
checkstream=$(xh GET "https://api.twitch.tv/helix/streams?user_login=$TWITCH_USER" "Authorization: Bearer $twitchauth" "Client-Id: $clientid" -b | ./jtc -w '[data][:][type]' -qq)
|
||||
|
||||
# Si el streamer esta en vivo, empieza a subir a youtube
|
||||
if [[ $checkstream = *live* ]]; then
|
||||
STREAMER_NAME=$TWITCH_USER
|
||||
VIDEO_PLAYLIST="$STREAMER_NAME VODs"
|
||||
|
||||
TWITCH_USER_ID=$(xh GET "https://api.twitch.tv/helix/streams?user_login=$TWITCH_USER" "Authorization: Bearer $twitchauth" "Client-Id: $clientid" -b | ./jtc -w '[data][:][type]')
|
||||
TWITCH_TITLE=$(xh GET "https://api.twitch.tv/helix/streams?user_login=$TWITCH_USER" "Authorization: Bearer $twitchauth" "Client-Id: $clientid" -b | ./jtc -w '[data][:][type]')
|
||||
TWITCH_USER_ID=$(xh GET "https://api.twitch.tv/helix/streams?user_login=$TWITCH_USER" "Authorization: Bearer $twitchauth" "Client-Id: $clientid" -b | ./jtc -w '[data][:][id]' -qq)
|
||||
TWITCH_TITLE=$(xh GET "https://api.twitch.tv/helix/streams?user_login=$TWITCH_USER" "Authorization: Bearer $twitchauth" "Client-Id: $clientid" -b | ./jtc -w '[data][:][title]' -qq)
|
||||
TWITCH_TITLE_CUT=$(echo "$TWITCH_TITLE" | colrm 70 | tr "><" " ")
|
||||
|
||||
VIDEO_DESCRIPTION="Hosteado por Fijxu. https://twitch.tv/$TWITCH_USER \nTitulo Completo: $TWITCH_TITLE \nFecha y hora: $(date +"A las %H:%M horas, día %d/%m/%y") \nDonaciones: https://ko-fi.com/fijxu \nSi eres el streamer que aparece en el VOD y por alguna razon necesitas ocultar o recuperar (nunca borrare los VODs, eso va en contra de mi objetivo, aunque pueden haber excepciones) el VOD, puedes dejar un comentario, enviar un mensaje por Twitch @fijxu o usando el correo de contacto del canal. \n \nEste es un proyecto de caracter personal, me gusta archivar streams de twitch para que nada se pierda, y que todos puedan volver a ver streams del pasado sin problemas. 'Sharing is caring'" # Descripción del video
|
||||
|
|
Loading…
Add table
Reference in a new issue