Forhåndsvisning
Nyheder
Version 1.0
First release
Hvad den gør
55 handlinger-
CommentDTikTok made by user/heismauri on RoutineHub
-
Dictionary
-
Get Contents of URLhttps://routinehub.co/api/v1/shortcuts/…/versions/latest
-
Get Dictionary Value
-
If
-
Text
-
Choose from Menu…
-
Choose from MenuUpdate now
-
URLhttps://routinehub.co/download/…
-
Open URLs
-
Choose from MenuUpdate later
-
If
-
Set Variableurl
-
If
-
Get Clipboard
-
Set Variableurl
-
Expand URL
-
Match Text
-
URL……
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Match Text
-
Get Dictionary from Input
-
Choose from MenuWhat would you like to download?
-
Choose from MenuOriginal video
-
Set Variableoriginal
-
Choose from MenuUnwatermarked video
-
Set Variableunwatermarked
-
Choose from MenuAudio
-
Set Variablemusic
-
Choose from Menu
-
Show NotificationDownloading "…" by …
-
Get Contents of URL…
-
Get Type
-
If
-
Set Variablevideo
-
If
-
Get Contents of URL…
-
Get Type
-
If
-
Set Variablevideo
-
If
-
Get Contents of URL…
-
Get Type
-
If
-
Set Variablevideo
-
If
-
Show NotificationError - This TikTok cannot be downloaded
-
Stop This Shortcut
-
Set Name
-
Quick Look
-
If
-
Save File
-
If
-
Save to Photo Album
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/web'
#define color red
#define glyph filmstrip
/*
DTikTok
made by user/heismauri on RoutineHub
*/
const Dictionary = {
"DTikTok": {
"api": "https://godownloader.com/api/download",
"dictionary": "(?\u003c=\u003cscript id=\"__NEXT_DATA__\" type=\"application\\/json\"\u003e)(.*?)(?=\u003c\\/script\u003e)",
"id": "(?\u003c=(v\\/|video\\/))\\d+",
"main": "https://godownloader.com/tiktok/"
},
"ID": 5870,
"Name": "DTikTok",
"Version": "2.1.1"
}
const ContentsOfURL = downloadURL("https://routinehub.co/api/v1/shortcuts/{Dictionary['ID']}/versions/latest")
const LatestVersion = getValue(ContentsOfURL, "Version")
if LatestVersion != Dictionary['Version'] {
const UpdatePrompt = "An update is available for \\"{Dictionary['Name']}\\"\n\nRelease notes: \n{ContentsOfURL['Notes']}\n\n{Dictionary['Version']} → {ContentsOfURL['Version']}"
menu UpdatePrompt {
item "Update now":
const URL = url("https://routinehub.co/download/{ContentsOfURL['id']}")
openURL(URL)
item "Update later":
}
}
if ShortcutInput {
@url = ShortcutInput
} else {
getClipboard()
}
@url
expandURL(@url)
const id = containsText(, Dictionary['DTikTok.id'])
url("{Dictionary['DTikTok.main']}{id}")
const ContentsOfURL1 = downloadURL()
makeHTML(ContentsOfURL1, true)
const Matches = containsText(, Dictionary['DTikTok.dictionary'])
menu "What would you like to download?" {
item "Original video":
@original = getDictionary(Matches)
item "Unwatermarked video":
@unwatermarked = DTikTok['props.pageProps.token.nwm']
item "Audio":
@music = DTikTok['props.pageProps.token.music']
item :
}
showNotification("Downloading \"{DTikTok['props.pageProps.data.title']}\" by {DTikTok['props.pageProps.data.author']}", Dictionary['Name'])
const ContentsOfURL2 = formRequest(Dictionary['DTikTok.api'], "POST", {
"t": "{token}"
})
const Type = typeOf(ContentsOfURL2)
if Type contains "Media" {
@video = ContentsOfURL2
} else {
const ContentsOfURL3 = formRequest(Dictionary['DTikTok.api'], "POST", {
"t": "{DTikTok['props.pageProps.token.hevc']}"
})
const Type1 = typeOf(ContentsOfURL3)
if Type1 contains "Media" {
@video = ContentsOfURL3
} else {
const ContentsOfURL4 = formRequest(Dictionary['DTikTok.api'], "POST", {
"t": "{DTikTok['props.pageProps.token.wm']}"
}, {})
const Type2 = typeOf(ContentsOfURL4)
if Type2 contains "Media" {
@video = ContentsOfURL4
} else {
showNotification("Error - This TikTok cannot be downloaded", Dictionary['Name'])
stop()
}
}
}
const RenamedItem = setName(@video, id)
quicklook(RenamedItem)
if RenamedItem['File Extension'] contains "mp3" {
saveFilePrompt(RenamedItem)
} else {
savePhoto(RenamedItem)
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Du vil måske også kunne lide
Annonce