ShareShortcuts

Download Twitter & YouTube

Download from Twitter and YouTube with Quality

yas8p
Fazer fork de “Download Twitter & YouTube”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que yas8p receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
62K
Salvo
3
Ações
45
Categoria
Photos and videos
Versão
1.0
Idioma
EN

Download from Twitter and YouTube with Quality .

YouTube

Twitter

Novidades

Versão 1.0

First release

Histórico de versões
1.0 25 de out de 2020

First release

O que ele faz

45 ações
  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...

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#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)
}
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de yas8p

Ver tudo

Você também pode gostar

Ver tudo
Publicidade