ShareShortcuts
Dupliquer « P⤓Download »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que pritam7010 soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
51K
Enregistré
6
Actions
54
Catégorie
Photos and videos
Version
1.5
Langue
EN

Aperçu

Download YouTube Videos (1080p), Thumbnails (High quality), mp3 and Instagram profile picture (Private, Public, Verified) and many more coming soon…

Nouveautés

Version 1.5

Fixed an issue where youtube shorts video unable to download

Historique des versions
1.5 20 juil. 2021

Fixed an issue where youtube shorts video unable to download

1.4 18 juil. 2021

YouTube 1080p and Instagram profile picture added

1.3 17 juil. 2021

Improvement

1.2 15 juil. 2021

Fixes

1.1 15 juil. 2021

Added YouTube video download

1.0 14 juil. 2021

First release

Ce qu’il fait

54 actions
  1. Comment
    Twitter: @pritamdeoghar10   (☝◞‸◟)☞ 𝙿𝚛𝚘𝚝𝚎𝚌𝚝𝚎𝚍 𝚋𝚢 𝙲𝚘𝚙𝚢𝚛𝚒𝚐𝚑𝚝
  2. Expand URL
  3. Match Text
  4. If
  5. Get Group from Matched Text
  6. If
  7. Get Group from Matched Text
  8. Replace Text
  9. Replace Text
  10. Set Variable
    VideoID
  11. Dictionary
  12. Get Contents of URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  13. Get Dictionary Value
  14. Text
  15. If
  16. Open URLs
  17. Stop This Shortcut
  18. If
  19. Make HTML from Rich Text
  20. Match Text
  21. Match Text
  22. Replace Text
  23. Replace Text
  24. If
  25. Repeat with Each
  26. Get Contents of URL
    …
  27. Make HTML from Rich Text
  28. Match Text
  29. Match Text
  30. Get Item from List
  31. Match Text
  32. Get Item from List
  33. Match Text
  34. Dictionary
  35. Choose from List
  36. Get Dictionary Value
  37. Text
  38. If
  39. Get URLs from Input
  40. If
  41. Replace Text
  42. Replace Text
  43. Replace Text
  44. Replace Text
  45. Replace Text
  46. Replace Text
  47. If
  48. Get Contents of URL
    …
  49. Match Text
  50. If
  51. Save to Photo Album
  52. If
  53. Quick Look
  54. Text

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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)
	}
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Ça pourrait aussi te plaire

Tout afficher
Publicité