Scan with your iPhone to install
Preview
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 ...
ပုံ / ကိုရဲရင့် 😎😎😎
What's New
Version 1.0
First release
What it does
65 actions-
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
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#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)
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by reviver
You Might Also Like
Advertisement