ShareShortcuts

Twitter Saver V1.0

Twitter Video Downloader

reviver
Fork “Twitter Saver V1.0”

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å reviver 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
65K
Gemt
2
Handlinger
65
Kategori
API
Version
1.0
Sprog
EN

Forhåndsvisning

Twitter Video Downloader ...

Auto Save To Camera Roll

If You Want To Save

Downloaded Video

To File Application

Open Shortcut

And Delete

(Camera Roll)

From Text

Thank ...

ပုံ / ကိုရဲရင့် 😎😎😎

Nyheder

Version 1.0

First release

Versionshistorik
1.0 10. nov. 2019

First release

Hvad den gør

65 handlinger
  1. If
  2. If
  3. Get Clipboard
  4. Set Variable
    URL
  5. URL
    https://tvd.now.sh/download
  6. Get Contents of URL
    …
  7. Set Variable
    Response
  8. Get Variable
  9. If
  10. Get Dictionary Value
  11. Set Variable
    Error
  12. Show Alert
    Error
  13. Stop This Shortcut
  14. If
  15. Get Dictionary Value
  16. Get Dictionary Value
  17. Set Variable
    HighSize
  18. Get Dictionary Value
  19. Get Dictionary Value
  20. Set Variable
    MediumSize
  21. Get Dictionary Value
  22. Get Dictionary Value
  23. Set Variable
    LowSize
  24. Count
  25. If
  26. Count
  27. If
  28. Choose from Menu
  29. Choose from Menu
    Low (LowSize)
  30. Get Dictionary Value
  31. Get Dictionary Value
  32. Set Variable
    VideoURL
  33. If
  34. Choose from Menu
  35. Choose from Menu
    Medium (MediumSize)
  36. Get Dictionary Value
  37. Get Dictionary Value
  38. Set Variable
    VideoURL
  39. Choose from Menu
    Low (LowSize)
  40. Get Dictionary Value
  41. Get Dictionary Value
  42. Set Variable
    VideoURL
  43. If
  44. Choose from Menu
  45. Choose from Menu
    High (HighSize)
  46. Get Dictionary Value
  47. Get Dictionary Value
  48. Set Variable
    VideoURL
  49. Choose from Menu
    Medium (MediumSize)
  50. Get Dictionary Value
  51. Get Dictionary Value
  52. Set Variable
    VideoURL
  53. Choose from Menu
    Low (LowSize)
  54. Get Dictionary Value
  55. Get Dictionary Value
  56. Set Variable
    VideoURL
  57. URL Encode
  58. Get Contents of URL
    …
  59. Set Name
  60. Text
  61. If
  62. Save to Photo Album
  63. Show Alert
    Complete ...
  64. If
  65. Save File

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'
#include 'actions/sharing'
#define color lightblue
#define glyph textSymbol


if ShortcutInput contains ShortcutInput {
} else {
	getClipboard()
}
@URL
url("https://tvd.now.sh/download")
jsonRequest(, "POST", {
	"url": "{@URL}"
})
@Response
// TODO: Get Variable not supported: Assign variable here to '@Response'.

if @Response contains "error" {
	@Error = @Response['error']
	alert("An error occurred: {@Error}", "Error")
	stop()
} else {
}
const DictionaryValue = getValue(@Response, "high")
@HighSize = DictionaryValue['size']
const DictionaryValue1 = getValue(@Response, "medium")
@MediumSize = DictionaryValue1['size']
const DictionaryValue2 = getValue(@Response, "low")
@LowSize = DictionaryValue2['size']
const Count = count(@HighSize, "Characters")

if Count == "2" {
	const Count1 = count(@MediumSize, "Characters")
	if Count1 == "2" {
		menu nil {
		item "Low ({@LowSize})":
			const DictionaryValue3 = getValue(@Response, "low")
			@VideoURL = DictionaryValue3['downloadURL']
		}
	} else {
		menu nil {
		item "Medium ({@MediumSize})":
			const DictionaryValue4 = getValue(@Response, "medium")
			@VideoURL = DictionaryValue4['downloadURL']
		item "Low ({@LowSize})":
			const DictionaryValue5 = getValue(@Response, "low")
			@VideoURL = DictionaryValue5['downloadURL']
		}
	}
} else {
	menu nil {
	item "High ({@HighSize})":
		const DictionaryValue6 = getValue(@Response, "high")
		@VideoURL = DictionaryValue6['downloadURL']
	item "Medium ({@MediumSize})":
		const DictionaryValue7 = getValue(@Response, "medium")
		@VideoURL = DictionaryValue7['downloadURL']
	item "Low ({@LowSize})":
		const DictionaryValue8 = getValue(@Response, "low")
		@VideoURL = DictionaryValue8['downloadURL']
	}
}
urlEncode(@VideoURL)
const ContentsOfURL = downloadURL()
const RenamedItem = setName(ContentsOfURL, "Twitter Video")
const Text = "Camera Roll"

if Text == "Camera Roll" {
	savePhoto(RenamedItem, "Recents")
	alert("Download Complete & Saved to the Camera Roll ...", "Complete ...")
} else {
	saveFilePrompt(RenamedItem)
}
Å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 reviver

Se alle

Du vil måske også kunne lide

Se alle
Annonce