Update more marketing materials

This commit is contained in:
Jonathan Cremin 2017-10-24 12:59:58 +01:00
parent 874afddb6d
commit 8d46a6df42
5 changed files with 36 additions and 32 deletions

View file

@ -16,7 +16,7 @@
</div>
<footer class="footer">
<div class="container has-text-right">
<a href='https://twitter.com/MatchAudio'>Tweet</a> or <a href='https://gitlab.com/kudos/match.audio'>Fork</a>. A work in progress by <a href='http://crem.in'>this guy</a>.
<a href='https://twitter.com/combinefm'>Tweet</a> or <a href='https://gitlab.com/kudos/combine.fm'>Fork</a>. A work in progress by <a href='http://crem.in'>this guy</a>.
</div>
</footer>
</div>

View file

@ -6,7 +6,7 @@
Combine.fm makes sharing from music services better. What happens when you share your favourite song on Spotify with a friend, but they don't use Spotify?
</p>
<p>
We match album and track links from Youtube, Spotify, Deezer, Google Music, Xbox Music, and iTunes and give you back one link with matches we find on all of them.
We match album and track links from Youtube, Spotify, Google Music, Apple Musicm, Groove Music and Deezer and give you back one link with matches we find on all of them.
</p>
</div>
<div class="recently-shared">

View file

@ -30,7 +30,7 @@ export default function* () {
if (service.id === share.service) {
continue; // eslint-disable-line no-continue
}
const job = queue.create('search', {share: share, service: service}).save((err) => {
const job = queue.create('search', { share: share, service: service }).save((err) => {
if (!err) console.log(job.id);
});
}

View file

@ -4,13 +4,13 @@
<title>Combine.fm &bull; <%=head.title%></title>
<link rel="stylesheet" href="/dist/<%=manifest['style/main.css']%>" />
<meta name='description' content='Combine.fm matches album and track links from Youtube, Rdio, Spotify, Deezer, Google Music, Xbox Music, Beats Music, and iTunes and give you back one link with matches we find on all of them.' />
<meta name='description' content='Combine.fm matches album and track links from Youtube, Spotify, Google Music, Apple Musicm, Groove Music and Deezer and give you back one link with matches we find on all of them.' />
<meta name='viewport' content='width=device-width, initial-scale=1' />
<meta name='theme-color' content='#FE4365' />
<meta name='twitter:card' content='<%=typeof share == 'undefined' ? 'summary': 'summary_large_image'%>' />
<meta name='twitter:site' content='@MatchAudio' />
<meta name='twitter:site' content='@Combinefm' />
<meta name='twitter:title' property='og:title' content='Match Audio &bull; <%=head.title%>' />
<meta name='twitter:description' property='og:description' content='Combine.fm matches album and track links from Youtube, Rdio, Spotify, Deezer, Google Music, Xbox Music, Beats Music, and iTunes and give you back one link with matches we find on all of them.' />
<meta name='twitter:description' property='og:description' content='Combine.fm matches album and track links from Youtube, Spotify, Google Music, Apple Musicm, Groove Music and Deezer and give you back one link with matches we find on all of them.' />
<meta name='twitter:image:src' property='og:image' content='<%=head.image%>' />
<meta property='og:url' content='<%=head.shareUrl%>' />
<link rel='shortcut icon' href='/assets/images/favicon.png' />

View file

@ -16,34 +16,38 @@ function search(data, done) {
const service = services.find(item => data.service.id === item.id);
console.log(service);
co(function* gen() { // eslint-disable-line no-loop-func
const match = yield service.search(share);
try {
const match = yield service.search(share);
if (match.id) {
models.match.create({
trackId: share.type === 'track' ? share.id : null,
albumId: share.type === 'album' ? share.id : null,
externalId: match.id.toString(),
service: match.service,
name: match.name,
streamUrl: match.streamUrl,
purchaseUrl: match.purchaseUrl,
artworkSmall: match.artwork.small,
artworkLarge: match.artwork.large,
});
} else {
models.match.create({
trackId: share.type === 'track' ? share.id : null,
albumId: share.type === 'album' ? share.id : null,
externalId: null,
service: match.service,
name: null,
streamUrl: null,
purchaseUrl: null,
artworkSmall: null,
artworkLarge: null,
});
if (match.id) {
models.match.create({
trackId: share.type === 'track' ? share.id : null,
albumId: share.type === 'album' ? share.id : null,
externalId: match.id.toString(),
service: match.service,
name: match.name,
streamUrl: match.streamUrl,
purchaseUrl: match.purchaseUrl,
artworkSmall: match.artwork.small,
artworkLarge: match.artwork.large,
});
} else {
models.match.create({
trackId: share.type === 'track' ? share.id : null,
albumId: share.type === 'album' ? share.id : null,
externalId: null,
service: match.service,
name: null,
streamUrl: null,
purchaseUrl: null,
artworkSmall: null,
artworkLarge: null,
});
}
return done();
} catch (err) {
return done(err);
}
return done();
}).catch((err) => {
console.log(err);
raven.captureException(err);