ShareShortcuts

Spotify ➤ MP3

• Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut

pola
Создать форк «Spotify ➤ MP3»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы pola получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
25K
Сохранено
1
Действия
36
Категория
API
Версия
1.0
Язык
EN

• Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut. •This Shortcut can also be used on Apple Watch.

Что нового

Версия 1.0

First release

История версий
1.0 23 мар 2024 г.

First release

Что делает

Действий: 36
  1. Comment
    Created by: @Pola219 Get More Useful Shortcuts in: https://routinehub.co/user/Pola219
  2. Comment
    Version 1.4
  3. Dictionary
  4. Get Contents of URL
    https://updatekit.mikebeas.com/v1
  5. Get Dictionary Value
  6. If
  7. Choose from Menu
    New version available. What's new: … Press UPDATE to download latest version. This is an important update. Do not skip!
  8. Choose from Menu
    UPDATE
  9. Open URLs
  10. Stop This Shortcut
  11. Choose from Menu
    SKIP
  12. Nothing
  13. Comment
    • Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut. •This Shortcut can also be used on Apple Watch.
  14. If
  15. URL
  16. Expand URL
  17. Set Variable
    iniLink
  18. Split Text
  19. Get Item from List
  20. Set Variable
    Response
  21. List
  22. Get Contents of URL
    https://spotifymate.com
  23. Make HTML from Rich Text
  24. Match Text
  25. Split Text
  26. Get Item from List
  27. Get Item from List
  28. Get Contents of URL
    https://spotifymate.com/action
  29. Make HTML from Rich Text
  30. Match Text
  31. Get Item from List
  32. URL
    …
  33. Get Contents of URL
    …
  34. If
  35. Replace Text
  36. Save File

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/web'
#define color green
#define glyph musicNote

/*
Created by: @Pola219
Get More Useful Shortcuts in:
https://routinehub.co/user/Pola219
*/
// Version 1.4

const UPDATE = jsonRequest("https://updatekit.mikebeas.com/v1", "POST", {
	"shortcut": {
		"id": "17349",
		"module": "routinehub",
		"version": "1.4"
	}
})
const Response = getValue(UPDATE, "update")

if Response ==  {
	menu "New version available. \nWhat's new: \n{UPDATE['payload.notes']}\nPress UPDATE to download latest version. This is an important update. Do not skip!" {
	item "UPDATE":
		openURL(UPDATE['payload.download'])
		stop()
	item "SKIP":
	}
}
/*
• Run from Spotify 'Share Sheet' or copy the Spotify track URL and run this Shortcut.
•This Shortcut can also be used on Apple Watch.
*/

if ShortcutInput {
	const InputURL = url(ShortcutInput)
	@iniLink = expandURL(InputURL)
	const SplitText = splitText(@iniLink, ".")
	getListItem(SplitText, 2)
	@Response
	list("spotify")
	const ContentsOfURL = downloadURL("https://spotifymate.com")
	makeHTML(ContentsOfURL)
	const Matches = containsText(, "(?<=<input name=\")(.*?)(?=\" type=\"hidden\" value=\")(.*?)(?=\" \/>)")
	const SplitText1 = splitText(Matches, """)
	const Value = getListItem(SplitText1, 0)
	const Key = getListItem(SplitText1, 0)
	const ContentsOfURL1 = formRequest("https://spotifymate.com/action", "POST", {
		"url": "{@iniLink}",
		"{Key}": "{Value}"
	})
	makeHTML(ContentsOfURL1)
	const Matches1 = containsText(, "(?<= href=\")[^\"]+(?=\" class=\"abutton is-success is-fullwidth\"><span><span>Download Mp3)")
	getRandomItem(Matches1)
	url()
	const Filename = downloadURL()
	if @Response contains "spotify" {
		const Audioname = replaceText("SpotifyMate.com - ", "", Filename)
		saveFile("{Audioname}.mp3", Filename)
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от pola

См. все

Вам также может понравиться

См. все
Реклама