Отсканируй на iPhone, чтобы установить
TikTok Video Downloader
Что нового
Версия 1.0
First release
Что делает
Действий: 51-
CommentCreated by Cody Chrunos My website: chrunos.com Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
-
Commenthttps://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
-
If
-
Get Variable
-
If
-
Get Clipboard
-
If
-
Get Contents of URL…
-
Get Name
-
Set VariableTitle
-
Make HTML from Rich Text
-
Set VariableHtml
-
Match Text
-
Count
-
If
-
Text
-
If
-
Get Variable
-
Set VariableU
-
Match Text
-
Count
-
If
-
Match Text
-
If
-
Get Variable
-
Get Item from List
-
Set VariableId
-
Count
-
If
-
Show AlertText Match Failed
-
If
-
URLhttps://tikvid.com/…/tiktok-video/…
-
Get Contents of URL…
-
Get URLs from Input
-
Repeat with Each
-
If
-
Get URLs from Input
-
Set VariableDl
-
If
-
Get Item from List
-
Get URLs from Input
-
Get Contents of URL…
-
Choose from Menu
-
Choose from MenuSave to Photos
-
Save to Photo Album
-
Choose from MenuSave to Files
-
Save File
-
Choose from MenuSave Audio Only
-
Encode Media
-
If
-
Show AlertOops!
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#include 'actions/sharing'
#define color darkgray
#define glyph musicNote
/*
Created by Cody Chrunos
My website: chrunos.com
Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
*/
// https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
const IfResult = if ShortcutInput contains "tiktok.com" {
// TODO: Get Variable not supported: Assign variable here to 'ShortcutInput'.
} else {
getClipboard()
}
if IfResult contains "tiktok.com" {
const ContentsOfURL = downloadURL(IfResult)
getName(ContentsOfURL)
@Title
makeHTML(ContentsOfURL)
@Html
const Matches = containsText(@Html, "(?<=\(@).{1,99}(?=\)\,)")
const Count = count(Matches, "Items")
if Count < 1 {
} else {
// TODO: Get Variable not supported: Assign variable here to 'Matches'.
}
@U = "i18n"
const Matches1 = containsText(@Html, "(?<=tiktok\.com\/v\/)\d{19}(?=\.html)")
const Count1 = count(Matches1, "Items")
if Count1 < 1 {
containsText(@Html, "(?<=video\/)\d{19}(?=\/)")
} else {
// TODO: Get Variable not supported: Assign variable here to 'Matches1'.
}
getListItems(IfResult1, 0, 0)
@Id
const Count2 = count(@Id, "Characters")
if Count2 < 19 {
alert("This means this shortcut is not optimized for your region. Run the Debug to report the error. It will be helpful if you could also specify your country name.", "Text Match Failed")
} else {
}
url("https://tikvid.com/{@U}/tiktok-video/{@Id}")
downloadURL()
const URLs = getURLs()
for _ in URLs {
if @RepeatItem contains "muscdn.com" {
getURLs(@RepeatItem)
@Dl
} else {
}
}
getListItems(@Dl, 0, 0)
getURLs()
const ContentsOfURL1 = downloadURL()
menu nil {
item "Save to Photos":
savePhoto(ContentsOfURL1)
item "Save to Files":
saveFilePrompt(ContentsOfURL1)
item "Save Audio Only":
setMetadata(ContentsOfURL1)
}
} else {
alert("A TikTok link could not be found!", "Oops!")
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от reviver
Вам также может понравиться
Реклама