Отсканируй на iPhone, чтобы установить
JUST TO MAKE IT CLEAR THIS WAS NOT MADE BY ME! THIS IS A REPOST TO SHARESHORTCUTS.COM!
- Install youtube videos by clicking more and tapping this!
Что нового
Версия 1.0
First release
Что делает
Действий: 29-
If
-
If
-
Get Component of URL
-
Get Dictionary from Input
-
Get Dictionary Value
-
URLhttp://youtube.com/get_video_info?video_id=…&el=detailpage&ps=default&url=&gl=US&hl=en
-
Get Contents of URL…
-
Get Dictionary Value
-
Split Text
-
Repeat with Each
-
Get Dictionary from Input
-
Set VariableStream Dictionaries
-
List
-
Repeat with Each
-
Set VariableVideo Format
-
Repeat with Each
-
Set VariableStream Dictionary
-
Get Dictionary Value
-
If
-
Get Dictionary Value
-
If
-
Nothing
-
Get Contents of URL…
-
Get Item from List
-
Choose from Menu
-
Choose from MenuShare
-
Share
-
Choose from MenuSave to photo album
-
Save to Photo Album
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#define color red
#define glyph videoIcon
if ShortcutInput contains "youtube.com" {
} else {
}
const ComponentOfURL = getURLDetail(, "Query")
const Dictionary = getDictionary(ComponentOfURL)
url("http://youtube.com/get_video_info?video_id={}&el=detailpage&ps=default&url=&gl=US&hl=en")
const ContentsOfURL = downloadURL()
const DictionaryValue = getValue(ContentsOfURL, "url_encoded_fmt_stream_map")
const SplitText = splitText(DictionaryValue, ",")
for _ in SplitText {
getDictionary(@RepeatItem)
}
@StreamDictionaries
const List = list("22", "18", "34", "35")
for _ in List {
@VideoFormat = @RepeatItem
for _ in @StreamDictionaries {
@StreamDictionary = @RepeatItem2
const DictionaryValue1 = getValue(@StreamDictionary, "itag")
if DictionaryValue1 contains @VideoFormat {
} else {
}
}
}
const ContentsOfURL1 = downloadURL()
const ItemFromList = getListItem(ContentsOfURL1)
menu nil {
item "Share":
share(ItemFromList)
item "Save to photo album":
savePhoto(ItemFromList)
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от shortcutmaster
Вам также может понравиться
Реклама