ShareShortcuts

Twitter Saver V1.0

Twitter Video Downloader

reviver
„Twitter Saver V1.0“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit reviver die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
65K
Gesichert
2
Aktionen
65
Kategorie
API
Version
1.0
Sprache
EN

Vorschau

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

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

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 10. Nov 2019

First release

Was er macht

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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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)
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von reviver

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung