ShareShortcuts

Download Twitter & YouTube

Download from Twitter and YouTube with Quality

yas8p
Fork “Download Twitter & YouTube”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så yas8p får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
62K
Gemt
3
Handlinger
45
Kategori
Foto og video
Version
1.0
Sprog
EN

Download from Twitter and YouTube with Quality .

YouTube

Twitter

Nyheder

Version 1.0

First release

Versionshistorik
1.0 25. okt. 2020

First release

Hvad den gør

45 handlinger
  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...

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#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)
}
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra yas8p

Se alle

Du vil måske også kunne lide

Se alle
Annonce