ShareShortcuts

YouTube Download Pro

Fix downloading and make it easy to use and download

pola
Fork “YouTube Download Pro”

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 pola 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
52K
Saved
3
Actions
40
Category
API
Version
1.2
Language
EN

Fix downloading and make it easy to use and download. copy the link and share into the shortcut and download video and audio from YouTube 😎

What's New

Version 1.2

Fixed bugs and making faster than previous version

Version History
1.2 Dec 15, 2023

Fixed bugs and making faster than previous version

1.1 Nov 13, 2023

Fix downloading and make it easy to download

1.0 Oct 21, 2023

First release

What it does

40 actions
  1. Comment
    Download YouTube video in MP4 & MP3 format Videos saved into your camera roll and audio files saved in your files app Created by: @Pola219
  2. Dictionary
  3. Get Contents of URL
    https://updatekit.mikebeas.com/v1
  4. Get Dictionary Value
  5. If
  6. Choose from Menu
    New version available. What's new: … - Choose UPDATE to download last version.
  7. Choose from Menu
    UPDATE
  8. URL
  9. Stop This Shortcut
  10. Choose from Menu
    SKIP
  11. Nothing
  12. Text
  13. Get URLs from Input
  14. Set Variable
    url
  15. Get Variable
  16. If
  17. Show Result
  18. URL
    https://9convert.com/api/ajaxSearch/index
  19. Get Contents of URL
    …
  20. Set Variable
    Vid
  21. Set Variable
    mp4
  22. Repeat with Each
  23. If
  24. Text
  25. Add to Variable
  26. Get Dictionary Value
  27. Get Item from List
  28. Text
  29. Add to Variable
  30. Choose from List
  31. Split Text
  32. Get Item from List
  33. URL
    https://9convert.com/api/ajaxConvert/convert
  34. Get Contents of URL
    …
  35. Get Contents of URL
    …
  36. If
  37. Replace Text
  38. Save File
  39. If
  40. 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 green
#define glyph videoIcon

/*
Download YouTube video in MP4 & MP3 format

Videos saved into your camera roll and audio files saved in your files app

Created by: @Pola219
*/
const UPDATE = jsonRequest("https://updatekit.mikebeas.com/v1", "POST", {
	"shortcut": {
		"id": "17122",
		"module": "routinehub",
		"version": "1.3"
	}
})
const Response = getValue(UPDATE, "update")

if Response ==  {
	menu "New version available. \nWhat's new: \n{UPDATE['payload.notes']} - Choose UPDATE to download last version." {
	item "UPDATE":
		url(UPDATE['payload.download'])
		stop()
	item "SKIP":
	}
}
getURLs(ShortcutInput)
@url
// TODO: Get Variable not supported: Assign variable here to '@url'.

if @url contains "youtu" {
	show("Start downloading and converting the video. Are you ready?\n\nTap Done ✅  and download.")
	url("https://9convert.com/api/ajaxSearch/index")
	const res = formRequest(, "POST", {
		"URL": "{@url}",
		"id": "{@url}",
		"locale": "en",
		"query": "{@url}",
		"url": "{@url}",
		"vt": "home"
	}, {
		"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
		"Referer": "https://9convert.com/en382",
		"Sec-Fetch-Diest": "empty",
		"Sec-Fetch-Mode": "cors",
		"Sec-Fetch-Site": "same-origin",
		"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1",
		"X-Requested-With": "XMLHttpRequest"
	})
	@Vid = res['vid']
	@mp4 = res['links.mp4']
	for _ in @mp4 {
		if @RepeatItem !contains "\"q\":\"auto\"" {
			@Resolutions += "{@RepeatItem['q']} - ({@RepeatItem['size']})\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n@@@@@\n{@RepeatItem['k']}"
		}
	}
	const DictionaryValue = getValues(res['links.mp3'])
	getRandomItem(DictionaryValue)
	@Resolutions += "Audio - ({['size']})\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n@@@@@\n{['k']}"
	const ChosenItem = chooseFromList(@Resolutions, "Select video quality to download")
	const SplitText = splitText(ChosenItem, "@@@@@")
	const K = getLastItem(SplitText)
	url("https://9convert.com/api/ajaxConvert/convert")
	formRequest(, "POST", {
		"k": "{K}",
		"vid": "{@Vid}"
	}, {
		"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
		"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1"
	})
	const Filename = downloadURL(['dlink'])
	if ChosenItem contains "Audio" {
		const audioname = replaceText("9convert.com - ", "", Filename)
		saveFile("YT MUSIC/{audioname}.mp3", Filename)
	} else {
		savePhoto(Filename)
	}
}
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 pola

See All

You Might Also Like

See All
Advertisement