2024-03-18 10:34:43 +00:00
package music
2024-03-18 20:19:04 +00:00
import (
"fmt"
"time"
)
var ari = Artist {
2024-03-20 03:17:34 +00:00
Id : "arimelody" ,
2024-03-18 20:19:04 +00:00
Name : "ari melody" ,
Website : "https://arimelody.me" ,
}
2024-03-20 03:17:34 +00:00
var mellodoot = Artist {
Id : "mellodoot" ,
Name : "mellodoot" ,
Website : "https://mellodoot.com" ,
}
2024-03-18 20:19:04 +00:00
var zaire = Artist {
2024-03-20 03:17:34 +00:00
Id : "zaire" ,
2024-03-18 20:19:04 +00:00
Name : "zaire" ,
Website : "https://supitszaire.com" ,
}
var mae = Artist {
2024-03-20 03:17:34 +00:00
Id : "maetaylor" ,
2024-03-18 20:19:04 +00:00
Name : "mae taylor" ,
Website : "https://mae.wtf" ,
}
var loudar = Artist {
2024-03-20 03:17:34 +00:00
Id : "loudar" ,
2024-03-18 20:19:04 +00:00
Name : "Loudar" ,
Website : "https://alex.targoninc.com" ,
}
2024-03-20 03:17:34 +00:00
var red = Artist {
Id : "smoljorb" ,
Name : "smoljorb" ,
}
2024-03-18 20:19:04 +00:00
func make_date_work ( date string ) time . Time {
res , err := time . Parse ( "2-Jan-2006" , date )
if err != nil {
fmt . Printf ( "somehow we failed to parse %s! falling back to epoch :]\n" , date )
return time . Unix ( 0 , 0 )
}
return res
}
2024-03-18 10:34:43 +00:00
var placeholders = [ ] Album {
{
Id : "test" ,
Title : "test album" ,
2024-03-20 03:17:34 +00:00
// Type: "album",
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "18-Mar-2024" ) ,
2024-03-18 10:34:43 +00:00
Buyname : "go get it!!" ,
Buylink : "https://arimelody.me/" ,
Links : [ ] AlbumLink {
AlbumLink {
Name : "youtube" ,
Url : "https://youtu.be/dQw4w9WgXcQ" ,
} ,
} ,
2024-03-20 03:17:34 +00:00
Description :
` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas viverra ligula interdum, tempor metus venenatis, tempus est. Praesent semper vulputate nulla, a venenatis libero elementum id. Proin maximus aliquet accumsan. Integer eu orci congue, ultrices leo sed, maximus risus. Integer laoreet non urna non accumsan. Cras ut sollicitudin justo. Vivamus eu orci tempus, aliquet est rhoncus, tempus neque. Aliquam tempor sit amet nibh sed tempus. Nulla vitae bibendum purus. Sed in mi enim. Nam pharetra enim lorem, vel tristique diam malesuada a. Duis dignissim nunc mi, id semper ex tincidunt a. Sed laoreet consequat lacus a consectetur. Nulla est diam, tempus eget lacus ullamcorper, tincidunt faucibus ex. Duis consectetur felis sit amet ante fermentum interdum. Sed pulvinar laoreet tellus. ` ,
2024-03-18 15:04:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-18 20:19:04 +00:00
Artist : & ari ,
2024-03-18 15:04:04 +00:00
Role : "having the swag" ,
} ,
AlbumCredit {
2024-03-18 20:19:04 +00:00
Artist : & zaire ,
2024-03-18 15:04:04 +00:00
Role : "having the swag" ,
} ,
AlbumCredit {
2024-03-18 20:19:04 +00:00
Artist : & mae ,
2024-03-18 15:04:04 +00:00
Role : "having the swag" ,
} ,
AlbumCredit {
2024-03-18 20:19:04 +00:00
Artist : & loudar ,
2024-03-18 15:04:04 +00:00
Role : "having the swag" ,
} ,
} ,
Lyrics :
` ( call me when you fall asleep )
( all in , let me ride the wave )
( okay ! )
call me
when you fall asleep
( fall asleep , call on me )
( oh babe , why don ' cha )
yeah , it ' s how you feel
when the stars come out
( you ' re never gonna get it )
( while you ' ve lost yourself in a rut )
all in
let me ride the wave
( i ' m so stressed )
( i need to fly out of this place )
yeah , ' cause we can drift
' til the break of dawn
( i think i ' ll be okay )
( if i can sleep today )
( switch it up ! )
slumber party at 2 AM
could think of nothing more perfect
than a moonlight jam
yeah , i ' ve got no sleep
but I ' m free today
yeah you could even say
that i ' m free2play
you ain ' t here by my side
and i try to get by
with my head out the window
get a listen of this
the whispers of the trees
the crickets do be chirpin '
i guess that ' s how it goes
( call me when you fall asleep )
( all in , let me ride the wave )
( let ' s go ! )
call me
when you fall asleep
( fall asleep , call on me )
( oh babe , why don ' cha )
yeah , it ' s how you feel
when the stars come out
( you ' re never gonna get it )
( while you ' ve lost yourself in a rut )
all in
let me ride the wave
( i ' m so stressed )
( i need to fly out of this place )
yeah , ' cause we can drift
' til the break of dawn
( i think i ' ll be okay )
( if i can sleep today )
yeah ... woo !
( BASS )
oh man ...
i ' m just sitting here
feeling the breeze
hanging out
listening to the crickets
and the trees in the breeze
living my best life ` ,
2024-03-18 10:34:43 +00:00
} ,
2024-03-18 23:09:54 +00:00
// {
// Id: "free2play",
// Title: "free2play",
// Type: "upcoming",
// ReleaseDate: make_date_work("17-Mar-2024"),
// Buyname: "pre-order",
// Buylink: "https://arimelody.me/",
// Description: "hello from your local SPACEGIRL! 💫",
// Credits: []AlbumCredit{
// AlbumCredit{
// Artist: &ari,
// Role: "vocals",
// },
// AlbumCredit{
// Artist: &ari,
// Role: "production",
// },
// AlbumCredit{
// Artist: &ari,
// Role: "artwork",
// },
// },
// },
2024-03-18 10:34:43 +00:00
{
Id : "dream" ,
Title : "Dream" ,
Type : "single" ,
2024-03-20 03:56:51 +00:00
ReleaseDate : make_date_work ( "11-Nov-2022" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_Dream.webp" ,
Buylink : "https://arimelody.bandcamp.com/track/dream" ,
Links : [ ] AlbumLink {
AlbumLink {
Name : "spotify" ,
Url : "https://open.spotify.com/album/5talRpqzjExP1w6j5LFIAh" ,
} ,
AlbumLink {
Name : "apple music" ,
Url : "https://music.apple.com/ie/album/dream-single/1650037132" ,
} ,
AlbumLink {
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/dream2022" ,
} ,
AlbumLink {
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=nfFgtMuYAx8" ,
} ,
} ,
Description : "living the dream 🌌 ✨" ,
2024-03-18 15:04:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 15:04:04 +00:00
Role : "vocals" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 15:04:04 +00:00
Role : "production" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 15:04:04 +00:00
Role : "artwork" ,
} ,
} ,
Lyrics :
` the truth is what you make of it
in the end , what you spend , is the end of it
when you ' re lost in the life
the life that you created on your own
i ' m becoming one
with the soul that i see in the mirror
blending one and whole
this time , i ' m real
i ' m living the dream
i ' m living my best life
running out of time
i gotta make this right
whenever you rise
whenever you come down
fall away from the light
and then fall into our arms
the truth is what you make of it
in the end , what you spend , is the end of it
when you ' re lost in the life
the life that you created on your own
i ' m becoming one
with the soul that i see in the mirror
blending one and whole
this time , i ' m real ` ,
2024-03-18 10:34:43 +00:00
} ,
{
Id : "gomyway" ,
Title : "Go My Way" ,
Type : "single" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "24-Jan-2021" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_Go_My_Way.webp" ,
Buylink : "https://arimelody.bandcamp.com/track/go-my-way" ,
Links : [ ] AlbumLink {
AlbumLink {
Name : "spotify" ,
Url : "https://open.spotify.com/album/35WNtxK12IDHCUoXHDePGE" ,
} ,
AlbumLink {
Name : "apple music" ,
Url : "https://music.apple.com/ie/album/go-my-way-single/1547145699" ,
} ,
AlbumLink {
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/go-my-way" ,
} ,
AlbumLink {
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=CNptNQdLkl0" ,
} ,
} ,
Description : "hey! go my way! 💥 ✨" ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "vocals" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "artwork" ,
} ,
} ,
2024-03-18 10:34:43 +00:00
} ,
{
Id : "rowboat" ,
Title : "Rowboat" ,
Type : "single" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "12-Mar-2020" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_Rowboat.webp" ,
Buylink : "https://arimelody.bandcamp.com/track/rowboat" ,
Links : [ ] AlbumLink {
{
Name : "spotify" ,
Url : "https://open.spotify.com/album/7jyqJFVKaENCPm58v5O44Y" ,
} ,
{
Name : "apple music" ,
Url : "https://music.apple.com/ie/album/rowboat-single/1502608714" ,
} ,
{
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/rowboat" ,
} ,
{
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=uOQyILDTzME" ,
} ,
} ,
Description : "let's take a trip. i've got a goddamn boat ⛵️" ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "vocals" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "artwork" ,
} ,
} ,
2024-03-18 10:34:43 +00:00
} ,
{
Id : "helloworld" ,
Title : "Hello World" ,
Type : "single" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "25-Dec-2019" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_Hello_World.webp" ,
Buylink : "https://arimelody.bandcamp.com/track/hello-world" ,
Links : [ ] AlbumLink {
{
Name : "spotify" ,
Url : "https://open.spotify.com/album/3LbElPXD4dsDumttGBuYxx" ,
} ,
{
Name : "apple music" ,
Url : "https://music.apple.com/ie/album/hello-world-single/1491880155" ,
} ,
{
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/helloworld" ,
} ,
{
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=CQhlRsl0Mjk" ,
} ,
} ,
Description : "we'll dawn a new frontier! 👾" ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "vocals" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "artwork" ,
} ,
} ,
2024-03-18 10:34:43 +00:00
} ,
{
Id : "sine" ,
Title : "Sine" ,
Type : "single" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "07-Dec-2019" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/zaire_-_Sine_ft._mellodoot.webp" ,
Links : [ ] AlbumLink {
{
Name : "spotify" ,
Url : "https://open.spotify.com/album/4WPuaJtTV7z86KubD9Rnmk" ,
} ,
{
Name : "apple music" ,
Url : "https://music.apple.com/us/album/sine-feat-mellodoot/1489163020" ,
} ,
{
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=z1H1s6VRnyY" ,
} ,
} ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
Artist : & zaire ,
Role : "production" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
} ,
2024-03-18 10:34:43 +00:00
} ,
{
Id : "10" ,
Title : "10" ,
Type : "single" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "29-Sep-2019" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_10.webp" ,
Buylink : "https://arimelody.bandcamp.com/track/10" ,
Links : [ ] AlbumLink {
{
Name : "spotify" ,
Url : "https://open.spotify.com/album/2x4gbACfDm99unaXpLXyj0" ,
} ,
{
Name : "apple music" ,
Url : "https://music.apple.com/ie/album/ten-single/1483193041" ,
} ,
{
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/ten" ,
} ,
{
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=C7WP5L2BK4U" ,
} ,
} ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "artwork" ,
} ,
} ,
2024-03-18 10:34:43 +00:00
} ,
{
Id : "mad" ,
Title : "MAD" ,
Type : "single" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "03-Nov-2018" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_MAD.webp" ,
Buylink : "https://arimelody.bandcamp.com/track/mad" ,
Links : [ ] AlbumLink {
{
Name : "spotify" ,
Url : "https://open.spotify.com/album/59nFXw1WNoRhXou7lXqBZd" ,
} ,
{
Name : "apple music" ,
Url : "https://music.apple.com/ie/album/mad/1441233120" ,
} ,
{
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/mad" ,
} ,
{
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=OB-Pk6p6mfQ" ,
} ,
} ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "vocals" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "artwork" ,
} ,
} ,
2024-03-18 10:34:43 +00:00
} ,
{
Id : "welcomingparty" ,
Title : "Welcoming Party" ,
Type : "album" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "01-Nov-2018" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_Welcoming_Party.webp" ,
Buylink : "https://arimelody.bandcamp.com/album/welcoming-party" ,
Links : [ ] AlbumLink {
{
Name : "spotify" ,
Url : "https://open.spotify.com/album/3EPa4HZpkISQVRAks64LfR" ,
} ,
{
Name : "apple music" ,
Url : "https://music.apple.com/ie/album/welcoming-party-ep/1441161424" ,
} ,
{
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/sets/welcoming-party" ,
} ,
{
Name : "youtube" ,
Url : "https://www.youtube.com/playlist?list=PLBG_QJeOHrB5EeniiXBIlHpoQbD6CUJca" ,
} ,
} ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "artwork" ,
} ,
} ,
2024-03-18 10:34:43 +00:00
// "tracks": [
// {
// "title": "Paradigm"
// },
// {
// "title": "Mitrio"
// },
// {
// "title": "Level One"
// },
// {
// "title": "Cubes"
// },
// {
// "title": "Aria"
// }
// ]
} ,
{
Id : "howtheyknow2018" ,
Title : "How They Know (2018)" ,
Type : "single" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "27-Feb-2018" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_How_They_Know_2018.webp" ,
2024-03-18 20:19:04 +00:00
Buyname : "free download" ,
2024-03-18 10:34:43 +00:00
Buylink : "https://arimelody.bandcamp.com/track/how-they-know-2018-remastered" ,
Links : [ ] AlbumLink {
{
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/how-they-know-2018" ,
} ,
{
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=mbAgSwCzyMw" ,
} ,
} ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
2024-03-20 03:17:34 +00:00
AlbumCredit {
Artist : & red ,
Role : "artwork" ,
Meta : true ,
} ,
2024-03-18 20:19:04 +00:00
} ,
2024-03-18 10:34:43 +00:00
} ,
{
Id : "howtheyknow" ,
Title : "How They Know" ,
Type : "single" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "29-Nov-2017" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_How_They_Know.webp" ,
2024-03-18 20:19:04 +00:00
Buyname : "free download" ,
2024-03-18 10:34:43 +00:00
Buylink : "https://arimelody.bandcamp.com/track/how-they-know" ,
Links : [ ] AlbumLink {
{
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/how-they-know" ,
} ,
{
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=q6lzKuG1Emo" ,
} ,
} ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
2024-03-20 03:17:34 +00:00
AlbumCredit {
Artist : & red ,
Role : "artwork" ,
Meta : true ,
} ,
2024-03-18 20:19:04 +00:00
} ,
2024-03-18 10:34:43 +00:00
} ,
{
Id : "traveller" ,
Title : "Traveller" ,
Type : "single" ,
2024-03-18 20:19:04 +00:00
ReleaseDate : make_date_work ( "24-Sep-2017" ) ,
2024-03-18 10:34:43 +00:00
Artwork : "https://mellodoot.com/img/music_artwork/mellodoot_-_Traveller.webp" ,
2024-03-18 20:19:04 +00:00
Buyname : "free download" ,
2024-03-18 10:34:43 +00:00
Buylink : "https://arimelody.bandcamp.com/track/traveller" ,
Links : [ ] AlbumLink {
{
Name : "soundcloud" ,
Url : "https://soundcloud.com/arimelody/traveller" ,
} ,
{
Name : "youtube" ,
Url : "https://www.youtube.com/watch?v=ZTO7IQZ-yXA" ,
} ,
} ,
Description : "an 8-bit expedition! ⚔️🛡️" ,
2024-03-18 20:19:04 +00:00
Credits : [ ] AlbumCredit {
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "production" ,
} ,
AlbumCredit {
2024-03-20 03:17:34 +00:00
Artist : & mellodoot ,
2024-03-18 20:19:04 +00:00
Role : "artwork" ,
} ,
} ,
2024-03-18 10:34:43 +00:00
} ,
}
func GetAlbum ( id string ) ( Album , bool ) {
for _ , album := range placeholders {
if album . Id == id {
return album , true
}
}
return Album { } , false
}
2024-03-18 20:19:04 +00:00
func QueryAllAlbums ( ) ( [ ] Album ) {
2024-03-18 10:34:43 +00:00
return placeholders
}
2024-03-18 20:19:04 +00:00
func QueryAllArtists ( ) ( [ ] Artist ) {
2024-03-20 03:17:34 +00:00
return [ ] Artist { ari , mellodoot , zaire , mae , loudar , red }
2024-03-18 20:19:04 +00:00
}