Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nbolender committed Sep 26, 2018
1 parent 09bd567 commit d543362
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# spotify-search-siri-shortcut
A shortcut for Apple's Siri Shortcuts that lets you initiate a Spotify search using your voice.

### Requirements
- iOS 12 with Shortcuts app installed
- Spotify app

### Limitations
- You must unlock your iOS device when triggering the shortcut. This is unavoidable.
- The resulting search in the Spotify app will have "+" characters where spaces should be. The Spotify app seems to reject the request when spaces are used. For now at least, the search works as normal.
- The shortcut only initiates a search, and cannot select a result or autoplay a track for you.

# Installing
To install this shortcut, [download the release](https://github.com/nbolender/spotify-search-siri-shortcut/releases/download/v1.0.0/SearchSpotify.shortcut) from your iOS device and choose to open it in the Shortcuts app. This will add the shortcut to your library and make it available for use.

# [:rocket: Download v1.0.0](https://github.com/nbolender/spotify-search-siri-shortcut/releases/download/v1.0.0/SearchSpotify.shortcut)
121 changes: 121 additions & 0 deletions Search Spotify.shortcut
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>WFWorkflowClientVersion</key>
<string>702</string>
<key>WFWorkflowClientRelease</key>
<string>2.0</string>
<key>WFWorkflowMinimumClientVersion</key>
<integer>411</integer>
<key>WFWorkflowIcon</key>
<dict>
<key>WFWorkflowIconStartColor</key>
<integer>4292093695</integer>
<key>WFWorkflowIconImageData</key>
<data></data>
<key>WFWorkflowIconGlyphNumber</key>
<integer>59560</integer>
</dict>
<key>WFWorkflowImportQuestions</key>
<array/>
<key>WFWorkflowTypes</key>
<array>
<string>NCWidget</string>
<string>WatchKit</string>
</array>
<key>WFWorkflowInputContentItemClasses</key>
<array>
<string>WFAppStoreAppContentItem</string>
<string>WFArticleContentItem</string>
<string>WFContactContentItem</string>
<string>WFDateContentItem</string>
<string>WFEmailAddressContentItem</string>
<string>WFGenericFileContentItem</string>
<string>WFImageContentItem</string>
<string>WFiTunesProductContentItem</string>
<string>WFLocationContentItem</string>
<string>WFDCMapsLinkContentItem</string>
<string>WFAVAssetContentItem</string>
<string>WFPDFContentItem</string>
<string>WFPhoneNumberContentItem</string>
<string>WFRichTextContentItem</string>
<string>WFSafariWebPageContentItem</string>
<string>WFStringContentItem</string>
<string>WFURLContentItem</string>
</array>
<key>WFWorkflowActions</key>
<array>
<dict>
<key>WFWorkflowActionIdentifier</key>
<string>is.workflow.actions.dictatetext</string>
<key>WFWorkflowActionParameters</key>
<dict>
<key>WFSpeechLanguage</key>
<string>en-US</string>
<key>UUID</key>
<string>816CFC55-0A70-4783-8777-73F480AE9E90</string>
</dict>
</dict>
<dict>
<key>WFWorkflowActionIdentifier</key>
<string>is.workflow.actions.urlencode</string>
<key>WFWorkflowActionParameters</key>
<dict>
<key>UUID</key>
<string>8C697F2C-6C6A-4B87-8DAE-52A5A14CA9C3</string>
</dict>
</dict>
<dict>
<key>WFWorkflowActionIdentifier</key>
<string>is.workflow.actions.gettext</string>
<key>WFWorkflowActionParameters</key>
<dict>
<key>WFTextActionText</key>
<dict>
<key>Value</key>
<dict>
<key>string</key>
<string>spotify://search/</string>
<key>attachmentsByRange</key>
<dict>
<key>{17, 1}</key>
<dict>
<key>OutputUUID</key>
<string>8C697F2C-6C6A-4B87-8DAE-52A5A14CA9C3</string>
<key>Type</key>
<string>ActionOutput</string>
<key>OutputName</key>
<string>URL Encoded Text</string>
</dict>
</dict>
</dict>
<key>WFSerializationType</key>
<string>WFTextTokenString</string>
</dict>
<key>UUID</key>
<string>7040EE49-CDA0-4776-A708-D9986CF664E0</string>
</dict>
</dict>
<dict>
<key>WFWorkflowActionIdentifier</key>
<string>is.workflow.actions.text.replace</string>
<key>WFWorkflowActionParameters</key>
<dict>
<key>WFReplaceTextFind</key>
<string>%20</string>
<key>WFReplaceTextCaseSensitive</key>
<false/>
<key>WFReplaceTextReplace</key>
<string>+</string>
</dict>
</dict>
<dict>
<key>WFWorkflowActionIdentifier</key>
<string>is.workflow.actions.openurl</string>
<key>WFWorkflowActionParameters</key>
<dict/>
</dict>
</array>
</dict>
</plist>

0 comments on commit d543362

Please sign in to comment.