ShareShortcuts

Download

JUST TO MAKE IT CLEAR THIS WAS NOT MADE BY ME!

shortcutmaster
Fork “Download”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so shortcutmaster gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
68K
Saved
4
Actions
29
Category
Photos and videos
Version
1.0
Language
EN

JUST TO MAKE IT CLEAR THIS WAS NOT MADE BY ME! THIS IS A REPOST TO SHARESHORTCUTS.COM!


  1. Install youtube videos by clicking more and tapping this!

What's New

Version 1.0

First release

Version History
1.0 Sep 15, 2019

First release

What it does

29 actions
  1. If
  2. If
  3. Get Component of URL
  4. Get Dictionary from Input
  5. Get Dictionary Value
  6. URL
    http://youtube.com/get_video_info?video_id=…&el=detailpage&ps=default&url=&gl=US&hl=en
  7. Get Contents of URL
    …
  8. Get Dictionary Value
  9. Split Text
  10. Repeat with Each
  11. Get Dictionary from Input
  12. Set Variable
    Stream Dictionaries
  13. List
  14. Repeat with Each
  15. Set Variable
    Video Format
  16. Repeat with Each
  17. Set Variable
    Stream Dictionary
  18. Get Dictionary Value
  19. If
  20. Get Dictionary Value
  21. If
  22. Nothing
  23. Get Contents of URL
    …
  24. Get Item from List
  25. Choose from Menu
  26. Choose from Menu
    Share
  27. Share
  28. Choose from Menu
    Save to photo album
  29. Save to Photo Album

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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)
}
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 shortcutmaster

See All

You Might Also Like

See All
Advertisement