Просмотр
Download YouTube Videos (1080p), Thumbnails (High quality), mp3 and Instagram profile picture (Private, Public, Verified) and many more coming soon…
Что нового
Версия 1.5
Fixed an issue where youtube shorts video unable to download
Что делает
Действий: 54-
CommentTwitter: @pritamdeoghar10 (☝◞‸◟)☞ 𝙿𝚛𝚘𝚝𝚎𝚌𝚝𝚎𝚍 𝚋𝚢 𝙲𝚘𝚙𝚢𝚛𝚒𝚐𝚑𝚝
-
Expand URL
-
Match Text
-
If
-
Get Group from Matched Text
-
If
-
Get Group from Matched Text
-
Replace Text
-
Replace Text
-
Set VariableVideoID
-
Dictionary
-
Get Contents of URLhttps://routinehub.co/api/v1/shortcuts/…/versions/latest
-
Get Dictionary Value
-
Text
-
If
-
Open URLs
-
Stop This Shortcut
-
If
-
Make HTML from Rich Text
-
Match Text
-
Match Text
-
Replace Text
-
Replace Text
-
If
-
Repeat with Each
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Match Text
-
Match Text
-
Get Item from List
-
Match Text
-
Get Item from List
-
Match Text
-
Dictionary
-
Choose from List
-
Get Dictionary Value
-
Text
-
If
-
Get URLs from Input
-
If
-
Replace Text
-
Replace Text
-
Replace Text
-
Replace Text
-
Replace Text
-
Replace Text
-
If
-
Get Contents of URL…
-
Match Text
-
If
-
Save to Photo Album
-
If
-
Quick Look
-
Text
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#define color lightblue
#define glyph downloadArrow
/*
Twitter: @pritamdeoghar10
(☝◞‸◟)☞ 𝙿𝚛𝚘𝚝𝚎𝚌𝚝𝚎𝚍 𝚋𝚢 𝙲𝚘𝚙𝚢𝚛𝚒𝚐𝚑𝚝
*/
const ExpandedURL = expandURL("{ShortcutInput}{Clipboard}")
const Matches = containsText(ExpandedURL, "^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu\.be))(\/([a-zA-Z0-9_-]+\?v=|embed\/|v\/)?)([a-zA-Z0-9_-]+)(\S+)?$")
if Matches['text'] !contains "shorts" {
getMatchGroup(Matches, 6)
} else {
getMatchGroup(Matches, 7)
replaceText("/", "")
replaceText("?feature=share", "")
}
@VideoID
const Dictionary = {
"DOU": [
"[{“Version”:”0.1”} {090721} {14.6(18F72)}]",
"[{“Version”:”0.2”} {090721} {14.6(18F72)}]",
"[{“Version”:”1.0”} {110721} {14.6(18F72)}]",
"[{“Version”:”1.1”} {150721} {14.6(18F72)}]",
"[{“Version”:”1.2”} {150721} {14.6(18F72)}]",
"[{“Version”:”1.3”} {170721} {14.6(18F72)}]",
"[{“Version”:”1.4”} {180721} {14.6(18F72)}]",
"[{“Version”:”1.5”} {200721} {14.7(18G69)}]"
],
"Name": "P⤓Download",
"Owner": "Pritam Kumar",
"RH ID": "9624",
"TA": 61,
"Tested": "iPhone 7",
"Updates": [
"https://routinehub.co/api/v1/shortcuts/9624/versions/latest"
],
"Version": "1.5",
"twitter": "@pritamdeoghar10",
"youtube": [
"https://iytthumb.blogspot.com/?m=1",
"https://www.yt2mp3s.me/file/mp4/{@VideoID}",
"https://www.yt2mp3s.me/file/merged/{@VideoID}",
"https://www.yt2mp3s.me/file/mp3/{@VideoID}"
]
}
const UpdatesPage = downloadURL("https://routinehub.co/api/v1/shortcuts/{Dictionary['RH ID']}/versions/latest")
const Text = "{}"
if Text != Dictionary['Version'] {
openURL("https://routinehub.co/shortcut/9624/")
stop()
}
if ExpandedURL contains "insta" {
makeHTML(ExpandedURL, false)
containsText(, "(?<=profile_pic_url_hd\").*(?=requested)")
containsText(, "\".+?\"")
replaceText("\"", "")
replaceText("\u0026", "&")
} else {
for _ in Dictionary['youtube'] {
const ContentsOfURL = downloadURL(@RepeatItem)
makeHTML(ContentsOfURL, true)
}
containsText(, ".*/vi_webp/.*")
const Matches1 = containsText(, ".*/248/.*|.*/247/.*")
getLastItem(Matches1)
const Matches2 = containsText(, ".*/22/.*|.*/18/.*")
getFirstItem(Matches2)
containsText(, ".*/320/.*")
const Dictionary1 = {
"720p": "{}",
"High Quality Up To 1080p": "{}",
"MP3": "{}",
"Thumbnails": "{}"
}
chooseFromList(Dictionary1['Keys'], "Choose the quality below:")
const Text1 = "{}"
if Text1 !contains "\"src\"" {
getURLs(Text1)
} else {
replaceText("document.getElementById(\"maxres\").setAttribute", "", Text1)
replaceText("\");//.removeClass(\"disabled\");", "")
replaceText(" (\"src\", \"", "")
replaceText("\" + result + \"", @VideoID)
replaceText("_webp", "")
replaceText("webp", "jpg")
}
}
if LastPart {
const ContentsOfURL1 = downloadURL(LastPart)
const Matches3 = containsText(ContentsOfURL1['File Extension'], "mp4|jpg")
if Matches3 {
savePhoto(ContentsOfURL1)
} else {
quicklook(ContentsOfURL1)
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Вам также может понравиться
Реклама