Do you want to download songs from Apple Music without DRM protection and play them on any device? If yes, then you need to check out this shortcut.
You can choose to download songs in m4a with artwork or mp3 without artwork. Learn more ways to download songs from Apple Music.
What's New
Version 1.0
First release
What it does
50 actions-
CommentVersion: 2.1
-
CommentCreated by Cody Chrunos My website: chrunos.com Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
-
Number
-
Match Text
-
Get Item from List
-
Searchitunes
-
Properties Itunesstore
-
Set Variableartist
-
Properties Itunesstore
-
Set Variablename
-
Properties Itunesstore
-
Set VariableArtwork
-
Text
-
Set VariableQueryTerms
-
URL Encode
-
Text
-
Get Contents of URL…
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Set VariableVideoID
-
URLhttps://upull.me/
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Match Text
-
Get Group from Matched Text
-
URLhttps://upull.me/yt/api/…?sig=…
-
Get Contents of URL…
-
Get Dictionary Value
-
URLhttps://upull.me/yt/conv/…/….mp3
-
Get Contents of URL…
-
If
-
Get Contents of URL…
-
Encode Media
-
Set Name
-
Save File
-
If
-
Set Name
-
Save File
-
Choose from MenuWhat's Next?
-
Choose from MenuGet AM Downloader HQ Shortcut
-
URLhttps://chrunos.com/premium-shortcuts/
-
Open URLs
-
Choose from MenuGet More Useful Shortcuts
-
URLhttps://chrunos.com/top-siri-shortcuts/
-
Open URLs
-
Choose from MenuSupport the Author
-
URLhttps://chrunos.com/donate/
-
Open URLs
-
Choose from MenuExit
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define glyph musicNote
// Version: 2.1
/*
Created by Cody Chrunos
My website: chrunos.com
Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
*/
const Number = 1
const Matches = containsText(ShortcutInput, "(\d+){8,11}")
getListItems(Matches, 0, 0)
rawAction("is.workflow.actions.searchitunes", {
"WFAttribute": "Product ID",
"WFSearchTerm": "{}"
})
rawAction("is.workflow.actions.properties.itunesstore", {
"WFContentItemPropertyName": "Artist",
"WFInput": "ITunesProducts"
})
@artist
rawAction("is.workflow.actions.properties.itunesstore", {
"WFContentItemPropertyName": "Name",
"WFInput": "ITunesProducts"
})
@name
rawAction("is.workflow.actions.properties.itunesstore", {
"WFContentItemPropertyName": "Artwork URL",
"WFInput": "ITunesProducts"
})
@Artwork
@QueryTerms = "{}+{}\n"
urlEncode(@QueryTerms)
const ContentsOfURL = downloadURL()
const DictionaryValue = getValue(ContentsOfURL, "items")
const DictionaryValue1 = getValue(DictionaryValue, "id")
@VideoID = DictionaryValue1['videoId']
url("https://upull.me/")
const ContentsOfURL1 = downloadURL()
makeHTML(ContentsOfURL1)
const Matches1 = containsText(, "value=\"([^\"]+)\"")
getMatchGroup(Matches1, 0)
url("https://upull.me/yt/api/{@VideoID}?sig={}")
const ContentsOfURL2 = downloadURL()
url("https://upull.me/yt/conv/{}/{@VideoID}.mp3")
const ContentsOfURL4 = downloadURL()
if Number == 1 {
const ContentsOfURL3 = downloadURL(@Artwork)
const EncodedMedia = setMetadata(ContentsOfURL4, ContentsOfURL3, @name, @name)
const RenamedItem = setName(EncodedMedia, "{@name} - {@artist}")
saveFilePrompt(RenamedItem)
} else {
const RenamedItem1 = setName(ContentsOfURL4, "{@name} - {@artist}")
saveFilePrompt(RenamedItem1)
}
menu "What's Next?" {
item "Get AM Downloader HQ Shortcut":
const URL = url("https://chrunos.com/premium-shortcuts/")
openURL(URL)
item "Get More Useful Shortcuts":
const URL1 = url("https://chrunos.com/top-siri-shortcuts/")
openURL(URL1)
item "Support the Author":
const URL2 = url("https://chrunos.com/donate/")
openURL(URL2)
item "Exit":
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by chrunos
You Might Also Like
Advertisement