ShareShortcuts

Chrunos Multi Downloader

chrunos
Fork “Chrunos Multi Downloader”

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 chrunos 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
28K
Saved
3
Actions
131
Category
Photos and videos
Version
2.0
Language
EN

Download videos and music from multiple sources including YouTube, Facebook, Instagram, Soundcloud, Spotify, Tidal, etc. Check all supported platforms from here.

What's New

Version 2.0

Fix music download. stable YouTube downloads. Faster.

Version History
2.0 Feb 6, 2025

Fix music download. stable YouTube downloads. Faster.

1.1 Apr 16, 2024

minor fix

1.0 Mar 22, 2024

First release

What it does

131 actions
  1. Set Variable
    input
  2. Comment
    Created by Cody Chrunos My website: chrunos.com Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
  3. Comment
    Version 1.3 Supported Video platforms: Bilibili, Instagram, OK Video, Pinterest, Reddit, Rutube, Streamable, Tiktok, Tumblr, Twitch , Twitter, Vimeo, Vine, VK, and YouTube. Supported Music Platforms: Spotify, Soundcloud, Tidal, Deezer, and YouTube M…
  4. Dictionary
  5. Get Contents of URL
    https://raw.githubusercontent.com/CodyChrunos/Shortcuts/main/chrunosmultidownloader.json
  6. Set Variable
    update
  7. Get Dictionary Value
  8. Text
  9. If
  10. Text
  11. Choose from Menu
    …
  12. Choose from Menu
    Update Now
  13. Open URLs
  14. Stop This Shortcut
  15. Choose from Menu
    Skip Update
  16. If
  17. Choose from Menu
    Download Music or Video?
  18. Choose from Menu
    Video [MP4]
  19. List
  20. Choose from List
  21. If
  22. Choose from Menu
    Video Quality Above 720P is for Premium Member Only
  23. Choose from Menu
    Get premium
  24. Open URLs
  25. Choose from Menu
    Join Telegram Group
  26. Open URLs
  27. Stop This Shortcut
  28. If
  29. Set Variable
    quality
  30. Get Contents of URL
    …
  31. Get Dictionary from Input
  32. Text
  33. If
  34. Get Dictionary Value
  35. Repeat with Each
  36. Get Dictionary Value
  37. Add to Variable
  38. If
  39. Get Dictionary Value
  40. Set Variable
    downloadUrls
  41. If
  42. Repeat with Each
  43. Get Contents of URL
    …
  44. Save to Photo Album
  45. If
  46. Match Text
  47. If
  48. Get Contents of URL
    …
  49. Get Dictionary Value
  50. Get Contents of URL
    …
  51. Save to Photo Album
  52. Set Variable
    Remain
  53. If
  54. Choose from Menu
    Sorry, Failed to Download the Video.
  55. Choose from Menu
    Report Error on Telegram
  56. Open URLs
  57. Choose from Menu
    Show Error Details
  58. Show Alert
    …
  59. Choose from Menu
    Get Other Multi-Source Downloader Shortcuts
  60. Open URLs
  61. Choose from Menu
    Exit
  62. Stop This Shortcut
  63. Choose from Menu
    Audio [MP3]
  64. Get URLs from Input
  65. Match Text
  66. If
  67. Get Contents of URL
    https://api.song.link/v1-alpha.1/links?url=…
  68. Get Dictionary Value
  69. Get Dictionary Value
  70. If
  71. Get Dictionary Value
  72. Set Variable
    input
  73. If
  74. Choose from Menu
    Sorry, Failed to Download the file.
  75. Choose from Menu
    Report Error on Telegram
  76. Open URLs
  77. Choose from Menu
    Get Other Music Downloader Shortcuts
  78. Open URLs
  79. Choose from Menu
    Exit
  80. Stop This Shortcut
  81. If
  82. Set Variable
    input
  83. Quick Look
  84. URL
  85. Set Variable
    encodedURL
  86. Get Contents of URL
    …
  87. Get Dictionary from Input
  88. Get Dictionary Value
  89. Set Variable
    Stream
  90. If
  91. Match Text
  92. Set Variable
    match
  93. If
  94. Show Notification
    Sorry, failed to download! Report
  95. Stop This Shortcut
  96. Get Group from Matched Text
  97. Set Variable
    sId
  98. Text
  99. Text
  100. Get Contents of URL
    …
  101. Get Dictionary from Input
  102. Get Dictionary Value
  103. Get Dictionary Value
  104. Get Item from List
  105. Get Dictionary Value
  106. Get Contents of URL
    …
  107. Get Details of Files
  108. If
  109. Encode Media
  110. If
  111. Get Variable
  112. If
  113. Get Contents of URL
    …
  114. Get Details of Files
  115. Match Text
  116. If
  117. Save File
  118. If
  119. Set Name
  120. Save File
  121. Choose from Menu
    … requests left for today. What's Next?
  122. Choose from Menu
    Download Music or Video in Higher Quality? Get our Premium Shortcuts
  123. URL
    https://chrunos.com/premium-shortcuts/
  124. Open URLs
  125. Choose from Menu
    Check My Full Shortcuts Collection
  126. Open URLs
  127. Choose from Menu
    Get Chrunos Downloader (yt-dlp) version (Supports more sites)
  128. Open URLs
  129. Choose from Menu
    Donate
  130. Open URLs
  131. Choose from Menu
    Exit

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 blue
#define glyph musicNote

@input = ShortcutInput
/*
Created by Cody Chrunos
My website: chrunos.com
Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
*/
/*
Version 1.3
Supported Video platforms: Bilibili, Instagram, OK Video, Pinterest, Reddit, Rutube, Streamable, Tiktok, Tumblr, Twitch , Twitter, Vimeo, Vine, VK, and YouTube.
Supported Music Platforms: Spotify, Soundcloud, Tidal, Deezer, and YouTube Music, Pandora, Amazon Music.
*/
const Version = {
	"Name": "Chrunos Multi Downloader",
	"api": "https://co.wuk.sh/api/json",
	"version": "2.5"
}
downloadURL("https://raw.githubusercontent.com/CodyChrunos/Shortcuts/main/chrunosmultidownloader.json")
@update
const Text = "{}"

if Text != Version['version'] {
	menu  {
	item "Update Now":
		openURL(@update)
		stop()
	item "Skip Update":
	}
} else {
}

menu "Download Music or Video?" {
item "Video [MP4]":
	const List = list("720", "480", "1080", "1440", "2160")
	const ChosenItem = chooseFromList(List, "Choose Video Quality")
	if ChosenItem contains "1" {
		menu "Video Quality Above 720P is for Premium Member Only" {
		item "Get premium":
			openURL("https://chrunos.com/premium-shortcuts/")
		item "Join Telegram Group":
			openURL("https://t.me/chrunoss")
		}
		stop()
	} else {
		@quality = ChosenItem
	}
	const ContentsOfURL = jsonRequest(@update['api'], "POST", {
		"url": "{@input}",
		"videoQuality": "{@quality}"
	}, {
		"Accept": "application/json",
		"Content-Type": "application/json"
	})
	const Dictionary = getDictionary(ContentsOfURL)
	const Text1 = "{Dictionary}"
	if Text1 contains "picker" {
		const DictionaryValue = getValue(Dictionary, "picker")
		for _ in DictionaryValue {
			@downloadUrls += @RepeatItem['url']
		}
	} else {
		@downloadUrls = Dictionary['url']
	}
	if @downloadUrls {
		for _ in @downloadUrls {
			const ContentsOfURL1 = downloadURL(@RepeatItem)
			savePhoto(ContentsOfURL1)
		}
	} else {
		const Matches = containsText(ShortcutInput, "youtu.+")
		if Matches {
			const ContentsOfURL2 = jsonRequest(@update['max'], "POST", {
				"url": "{ShortcutInput}"
			}, {
				"Content-Type": "application/json"
			})
			const ContentsOfURL3 = downloadURL()
			savePhoto(ContentsOfURL3)
			@Remain = ContentsOfURL2['requests_remaining']
		} else {
			menu "Sorry, Failed to Download the Video." {
			item "Report Error on Telegram":
				openURL("https://t.me/+fd82OOpm6zNjNDhl")
			item "Show Error Details":
				alert("Error!", Dictionary['text'])
			item "Get Other Multi-Source Downloader Shortcuts":
				openURL("https://chrunos.com/ultimate-downloader-shortcuts/")
			item "Exit":
				stop()
			}
		}
	}
item " Audio [MP3]":
	getURLs(ShortcutInput)
	const Matches1 = containsText(, "apple\.|tidal\.|deezer\.|spotify\.|napster\.|pandora\.|amazon\.", false)
	if Matches1 {
		const ContentsOfURL4 = downloadURL("https://api.song.link/v1-alpha.1/links?url={}")
		const DictionaryValue1 = getValue(ContentsOfURL4, "linksByPlatform")
		const DictionaryValue2 = getValue(DictionaryValue1, "youtube")
		if DictionaryValue2 {
			@input = DictionaryValue2['url']
		} else {
			menu "Sorry, Failed to Download the file." {
			item "Report Error on Telegram":
				openURL("https://t.me/+fd82OOpm6zNjNDhl")
			item "Get Other Music Downloader Shortcuts":
				openURL("https://chrunos.com/free-download-music-on-iphone/")
			item "Exit":
				stop()
			}
		}
	} else {
		@input = ShortcutInput
		quicklook(@input)
	}
	url(ShortcutInput)
	@encodedURL = ShortcutInput
	const ContentsOfURL5 = jsonRequest(@update['api'], "POST", {
		"audioFormat": "mp3",
		"downloadMode": "audio",
		"filenameStyle": "pretty",
		"url": "{@input}"
	}, {
		"Accept": "application/json",
		"Content-Type": "application/json"
	})
	const Dictionary1 = getDictionary(ContentsOfURL5)
	@Stream = Dictionary1['url']
	if !@Stream {
		containsText(@input, "youtu(?:.*\/v\/|.*v\=|\.be\/|.*?embed\/|.*?shorts\/)([A-Za-z0-9_\-]{11})")
		@match
		if !@match {
			showNotification("Sorry, failed to download! Report", @match)
			stop()
		}
		getMatchGroup(@match, 0)
		@sId
		const Text2 = "{'context':{'client':{'clientName':'IOS','clientVersion':'19.14.3','deviceModel':'iPhone15,4'}},'videoId':'{@sId}'}"
		const ContentsOfURL6 = fileRequest(, "POST", Text2, {
			"X-Goog-Visitor-Id": "CgtMWlVXOTFCcE5Edyj9p4i9BjIKCgJVUxIEGgAgZA%3D%3D",
			"X-Origin": "https://www.youtube.com",
			"x-goog-authuser": "0"
		})
		const Dictionary2 = getDictionary(ContentsOfURL6)
		const DictionaryValue3 = getValue(Dictionary2, "streamingData")
		const DictionaryValue4 = getValue(DictionaryValue3, "adaptiveFormats")
		const ItemFromList = getRandomItem(DictionaryValue4)
		const ContentsOfURL7 = downloadURL(, {})
		const FileExtension = getFileDetail(nil, "File Extension")
		if FileExtension == "mp4" {
			encodeVideo(ContentsOfURL7)
		} else {
			// TODO: Get Variable not supported: Assign variable here to 'ContentsOfURL7'.
		}
	} else {
		const Filename = downloadURL(@Stream)
	}
	getFileDetail(nil, "Name")
	const Matches2 = containsText(, "(\b\w+\b ){1,5}- (\b\w+\b ){1,5}")
	if !Matches2 {
		saveFilePrompt(IfResult)
	} else {
		const RenamedItem = setName(IfResult, Matches2)
		saveFilePrompt(RenamedItem)
	}
}

menu "{@Remain} requests left for today. What's Next?" {
item "Download Music or Video in Higher Quality? Get our Premium Shortcuts":
	const URL = url("https://chrunos.com/premium-shortcuts/")
	openURL(URL)
item "Check My Full Shortcuts Collection":
	openURL("https://chrunos.com/top-siri-shortcuts/")
item "Get Chrunos Downloader (yt-dlp) version (Supports more sites)":
	openURL("https://chrunos.com/ultimate-downloader-shortcuts/#yt-dlp+shortcut")
item "Donate":
	openURL("https://chrunos.com/donate/")
item "Exit":
}
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 chrunos

See All

You Might Also Like

See All
Advertisement