ShareShortcuts

Download Twitter & YouTube

Download from Twitter and YouTube with Quality

yas8p
Dupliquer « Download Twitter & YouTube »

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 yas8p 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
62K
Enregistré
3
Actions
45
Catégorie
Photos and videos
Version
1.0
Langue
EN

Download from Twitter and YouTube with Quality .

YouTube

Twitter

Nouveautés

Version 1.0

First release

Historique des versions
1.0 25 oct. 2020

First release

Ce qu’il fait

45 actions
  1. Text
  2. If
  3. Set Variable
    Url
  4. If
  5. Set Variable
    Url
  6. If
  7. Get Contents of URL
    https://downloadtwittervideo.appspot.com
  8. Get URLs from Input
  9. Match Text
  10. Choose from List
  11. Replace Text
  12. Match Text
  13. Text
  14. If
  15. If
  16. Match Text
  17. Dictionary
  18. Repeat with Each
  19. Get Contents of URL
    …
  20. Make HTML from Rich Text
  21. Get URLs from Input
  22. Match Text
  23. Match Text
  24. Match Text
  25. Replace Text
  26. Dictionary
  27. Choose from List
  28. If
  29. Show Notification
    You should copy link from YouTube or Twitter...
  30. Stop This Shortcut
  31. If
  32. Get Contents of URL
    …
  33. Match Text
  34. If
  35. Set Name
  36. Quick Look
  37. Choose from Menu
  38. Choose from Menu
    Save in photos
  39. Save to Photo Album
  40. Choose from Menu
    Save in file
  41. Save File
  42. If
  43. Show Notification
    Something's wrong...
  44. If
  45. Show Notification
    Something's wrong...

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 darkgray
#define glyph downloadArrow


if ShortcutInput {
	@Url = "twitter.Yas8p.com"
} else {
	@Url
}

if @Url contains "twitter" {
	formRequest("https://downloadtwittervideo.appspot.com", "POST", {
		"url": "{@Url}"
	})
	getURLs()
	const TwD = containsText(['Name'], ".*mp4|mp4.*")
	chooseFromList(TwD, "")
	replaceText(" |mp4|,", "", true)
	const VideoTwitter = containsText(, ".*{}.*")
} else {
	if @Url contains "yout" {
		const Id = containsText(@Url, "(?<=(\=|\/))([\w\-]{11})")
		const Dictionary = {
			"d": "www.320youtube.com/v5/watch?v={Id}",
			"g": "www.yt-download.org/api/widget/mp3/{Id}",
			"v": "www.yt-download.org/api/widget/videos/{Id}"
		}
		for _ in Dictionary['Values'] {
			const ContentsOfURL = downloadURL(@RepeatItem)
			makeHTML(ContentsOfURL)
		}
		getURLs(YT)
		containsText(, "[\w\.\/:_]*.(ytapivmp3.*)")
		containsText(, ".*/mp4/.*")
		containsText(, "https://www.yt-download.org/download/{Id}/mp3/320/.*")
		const Name = replaceText("| 320YouTube", "", ['Name'], false)
		const Dictionary1 = {
			"mp3 1": "{}",
			"mp3 2": "{}",
			"mp4 med": "{}"
		}
		chooseFromList(Dictionary1, Name)
	} else {
		showNotification("You should copy link from YouTube or Twitter...", "Twitter:Yas8p", false)
		stop()
	}
}

if url contains "http" {
	const File = downloadURL(url)
	const Matches = containsText(File['File Extension'], "mp4|mp3")
	if Matches {
		const Video = setName(File, Name)
		quicklook(Video)
		menu "" {
		item "Save in photos":
			savePhoto(Video)
		item "Save in file":
			saveFilePrompt(Video)
		}
	} else {
		showNotification("Something's wrong...", "Twitter:Yas8p", false)
	}
} else {
	showNotification("Something's wrong...", "Twitter:yas8p", false)
}
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é

Plus de yas8p

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité