ShareShortcuts

Twitter Saver V1.0

Twitter Video Downloader

reviver
Bifurcar “Twitter Saver V1.0”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que reviver reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
65K
Guardado
2
Acciones
65
Categoría
API
Versión
1.0
Idioma
EN

Vista previa

Twitter Video Downloader ...

Auto Save To Camera Roll

If You Want To Save

Downloaded Video

To File Application

Open Shortcut

And Delete

(Camera Roll)

From Text

Thank ...

ပုံ / ကိုရဲရင့် 😎😎😎

Novedades

Versión 1.0

First release

Historial de versiones
1.0 10 de nov. de 2019

First release

Qué hace

65 acciones
  1. If
  2. If
  3. Get Clipboard
  4. Set Variable
    URL
  5. URL
    https://tvd.now.sh/download
  6. Get Contents of URL
    …
  7. Set Variable
    Response
  8. Get Variable
  9. If
  10. Get Dictionary Value
  11. Set Variable
    Error
  12. Show Alert
    Error
  13. Stop This Shortcut
  14. If
  15. Get Dictionary Value
  16. Get Dictionary Value
  17. Set Variable
    HighSize
  18. Get Dictionary Value
  19. Get Dictionary Value
  20. Set Variable
    MediumSize
  21. Get Dictionary Value
  22. Get Dictionary Value
  23. Set Variable
    LowSize
  24. Count
  25. If
  26. Count
  27. If
  28. Choose from Menu
  29. Choose from Menu
    Low (LowSize)
  30. Get Dictionary Value
  31. Get Dictionary Value
  32. Set Variable
    VideoURL
  33. If
  34. Choose from Menu
  35. Choose from Menu
    Medium (MediumSize)
  36. Get Dictionary Value
  37. Get Dictionary Value
  38. Set Variable
    VideoURL
  39. Choose from Menu
    Low (LowSize)
  40. Get Dictionary Value
  41. Get Dictionary Value
  42. Set Variable
    VideoURL
  43. If
  44. Choose from Menu
  45. Choose from Menu
    High (HighSize)
  46. Get Dictionary Value
  47. Get Dictionary Value
  48. Set Variable
    VideoURL
  49. Choose from Menu
    Medium (MediumSize)
  50. Get Dictionary Value
  51. Get Dictionary Value
  52. Set Variable
    VideoURL
  53. Choose from Menu
    Low (LowSize)
  54. Get Dictionary Value
  55. Get Dictionary Value
  56. Set Variable
    VideoURL
  57. URL Encode
  58. Get Contents of URL
    …
  59. Set Name
  60. Text
  61. If
  62. Save to Photo Album
  63. Show Alert
    Complete ...
  64. If
  65. Save File

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#include 'actions/web'
#include 'actions/sharing'
#define color lightblue
#define glyph textSymbol


if ShortcutInput contains ShortcutInput {
} else {
	getClipboard()
}
@URL
url("https://tvd.now.sh/download")
jsonRequest(, "POST", {
	"url": "{@URL}"
})
@Response
// TODO: Get Variable not supported: Assign variable here to '@Response'.

if @Response contains "error" {
	@Error = @Response['error']
	alert("An error occurred: {@Error}", "Error")
	stop()
} else {
}
const DictionaryValue = getValue(@Response, "high")
@HighSize = DictionaryValue['size']
const DictionaryValue1 = getValue(@Response, "medium")
@MediumSize = DictionaryValue1['size']
const DictionaryValue2 = getValue(@Response, "low")
@LowSize = DictionaryValue2['size']
const Count = count(@HighSize, "Characters")

if Count == "2" {
	const Count1 = count(@MediumSize, "Characters")
	if Count1 == "2" {
		menu nil {
		item "Low ({@LowSize})":
			const DictionaryValue3 = getValue(@Response, "low")
			@VideoURL = DictionaryValue3['downloadURL']
		}
	} else {
		menu nil {
		item "Medium ({@MediumSize})":
			const DictionaryValue4 = getValue(@Response, "medium")
			@VideoURL = DictionaryValue4['downloadURL']
		item "Low ({@LowSize})":
			const DictionaryValue5 = getValue(@Response, "low")
			@VideoURL = DictionaryValue5['downloadURL']
		}
	}
} else {
	menu nil {
	item "High ({@HighSize})":
		const DictionaryValue6 = getValue(@Response, "high")
		@VideoURL = DictionaryValue6['downloadURL']
	item "Medium ({@MediumSize})":
		const DictionaryValue7 = getValue(@Response, "medium")
		@VideoURL = DictionaryValue7['downloadURL']
	item "Low ({@LowSize})":
		const DictionaryValue8 = getValue(@Response, "low")
		@VideoURL = DictionaryValue8['downloadURL']
	}
}
urlEncode(@VideoURL)
const ContentsOfURL = downloadURL()
const RenamedItem = setName(ContentsOfURL, "Twitter Video")
const Text = "Camera Roll"

if Text == "Camera Roll" {
	savePhoto(RenamedItem, "Recents")
	alert("Download Complete & Saved to the Camera Roll ...", "Complete ...")
} else {
	saveFilePrompt(RenamedItem)
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de reviver

Ver todo

También te puede gustar

Ver todo
Publicidad