ShareShortcuts

Twitter Saver V1.0

Twitter Video Downloader

reviver
Fazer fork de “Twitter Saver V1.0”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que reviver receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
65K
Salvo
2
Ações
65
Categoria
API
Versão
1.0
Idioma
EN

Pré-visualização

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 ...

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

Novidades

Versão 1.0

First release

Histórico de versões
1.0 10 de nov de 2019

First release

O que ele faz

65 ações
  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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de reviver

Ver tudo

Você também pode gostar

Ver tudo
Publicidade