Mit dem iPhone scannen, um zu installieren
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
Was er macht
65 Aktionen-
If
-
If
-
Get Clipboard
-
Set VariableURL
-
URLhttps://tvd.now.sh/download
-
Get Contents of URL…
-
Set VariableResponse
-
Get Variable
-
If
-
Get Dictionary Value
-
Set VariableError
-
Show AlertError
-
Stop This Shortcut
-
If
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableHighSize
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableMediumSize
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableLowSize
-
Count
-
If
-
Count
-
If
-
Choose from Menu
-
Choose from MenuLow (LowSize)
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableVideoURL
-
If
-
Choose from Menu
-
Choose from MenuMedium (MediumSize)
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableVideoURL
-
Choose from MenuLow (LowSize)
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableVideoURL
-
If
-
Choose from Menu
-
Choose from MenuHigh (HighSize)
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableVideoURL
-
Choose from MenuMedium (MediumSize)
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableVideoURL
-
Choose from MenuLow (LowSize)
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableVideoURL
-
URL Encode
-
Get Contents of URL…
-
Set Name
-
Text
-
If
-
Save to Photo Album
-
Show AlertComplete ...
-
If
-
Save File
Als Code ansehen
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
Das gefällt dir vielleicht auch
Werbung