tangled
alpha
login
or
join now
rocksky.app
/
rocksky
96
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
rocksky.app
spotify
atproto
lastfm
musicbrainz
scrobbling
listenbrainz
96
fork
atom
overview
issues
7
pulls
pipelines
fix typo
tsiry-sandratraina.com
2 months ago
bc2b22a8
2e8dc489
+5
-4
1 changed file
expand all
collapse all
unified
split
apps
feeds
src
algos
dubstep.ts
+5
-4
apps/feeds/src/algos/dubstep.ts
···
10
) => {
11
const { limit = 50, cursor } = params;
12
13
-
const whereConditions = [arrayContains(schema.artists.genres, ["dupstep"])];
14
15
if (cursor) {
16
const cursorDate = new Date(parseInt(cursor, 10));
···
28
29
const feed = scrobbles.map(({ scrobbles }) => ({ scrobble: scrobbles.uri }));
30
31
-
const { scrobbles: lastScrobble } =
32
-
scrobbles.length > 0 ? scrobbles.at(-1)! : { scrobbles: null };
0
33
const nextCursor = lastScrobble
34
? lastScrobble.timestamp.getTime().toString(10)
35
: undefined;
···
41
};
42
43
export const publisherDid = "did:plc:vegqomyce4ssoqs7zwqvgqty";
44
-
export const rkey = "dupstep";
45
46
export const info = {
47
handler,
···
10
) => {
11
const { limit = 50, cursor } = params;
12
13
+
const whereConditions = [arrayContains(schema.artists.genres, ["dubstep"])];
14
15
if (cursor) {
16
const cursorDate = new Date(parseInt(cursor, 10));
···
28
29
const feed = scrobbles.map(({ scrobbles }) => ({ scrobble: scrobbles.uri }));
30
31
+
const { scrobbles: lastScrobble } = scrobbles.length > 0
32
+
? scrobbles.at(-1)!
33
+
: { scrobbles: null };
34
const nextCursor = lastScrobble
35
? lastScrobble.timestamp.getTime().toString(10)
36
: undefined;
···
42
};
43
44
export const publisherDid = "did:plc:vegqomyce4ssoqs7zwqvgqty";
45
+
export const rkey = "dubstep";
46
47
export const info = {
48
handler,