Skip to content

Commit

Permalink
Merge pull request #68 from maddox/fix-itunes
Browse files Browse the repository at this point in the history
Fix Apple Music Auto Fill
  • Loading branch information
maddox authored Nov 16, 2019
2 parents 67ab326 + e292d55 commit c8f88ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/CardEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class CardEditor extends React.Component {
type="search"
label="Add content by URL"
name="query"
placeholder="https://itunes.apple.com/us/album/moana-original-motion-picture-soundtrack-deluxe-edition/1168827405"
placeholder="https://music.apple.com/us/album/moana-original-motion-picture-soundtrack-deluxe-edition/1168827405"
onChange={this.handleUrl}
/>
</Form>
Expand Down
2 changes: 1 addition & 1 deletion client/src/utilities/Metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default class Metadata {
static async fetchMetadata(url) {
const sourceURL = new URL(url)

if (sourceURL.host === 'itunes.apple.com') {
if (sourceURL.host === 'music.apple.com') {
return Metadata.fromItunes(sourceURL)
} else if (sourceURL.host === 'open.spotify.com') {
return Metadata.fromSpotify(sourceURL)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "magic-cards",
"version": "1.1.4",
"version": "1.1.5",
"author": "Jon Maddox <[email protected]>",
"license": "MIT",
"bugs": {
Expand Down

0 comments on commit c8f88ca

Please sign in to comment.