ShareShortcuts

Twitter Saver V1.0

Twitter Video Downloader

reviver
Dupliquer « Twitter Saver V1.0 »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que reviver soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
65K
Enregistré
2
Actions
65
Catégorie
API
Version
1.0
Langue
EN

Aperçu

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

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

Nouveautés

Version 1.0

First release

Historique des versions
1.0 10 nov. 2019

First release

Ce qu’il fait

65 actions
  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

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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)
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de reviver

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité