From eaa9a73812d4483cdf82d08f5d334d143d609ccd Mon Sep 17 00:00:00 2001 From: patrickkfkan Date: Mon, 15 Feb 2021 20:57:10 +0800 Subject: [PATCH] getReleasesByTag(): add featured track position --- examples/getReleasesByTag_output.txt | 384 ++++++++++++++------------- lib/parser.js | 3 +- 2 files changed, 208 insertions(+), 179 deletions(-) diff --git a/examples/getReleasesByTag_output.txt b/examples/getReleasesByTag_output.txt index 630a235..7b3aac7 100644 --- a/examples/getReleasesByTag_output.txt +++ b/examples/getReleasesByTag_output.txt @@ -1,207 +1,235 @@ { items: [ { type: 'album', - name: 'Deep Like My Side', - url: 'https://yasharam.bandcamp.com/album/deep-like-my-side', - imageUrl: 'https://f4.bcbits.com/img/a1566777509_2.jpg', + name: 'Honk Part I: A Spaceman\'s Journey', + url: 'https://chonultimareborn.bandcamp.com/album/honk-part-i-a-spacemans-journey', + imageUrl: 'https://f4.bcbits.com/img/a3979752032_2.jpg', genre: 'ambient', - artist: { name: 'Yashar AM', url: 'https://yasharam.bandcamp.com' }, + artist: + { name: 'Chon Ultima', + url: 'https://chonultimareborn.bandcamp.com' }, featuredTrack: - { name: 'I Dont Tell To Her/Him', - streamUrl: 'https://t4.bcbits.com/stream/f1e54272e8642112bee427a18665972f/mp3-128/1494281343?p=0&ts=1613471183&t=fdac0c8c2efc15a3dfe9ee88c1cf3055e756b87b&token=1613471183_dee5b6809da736c5f5efd937d05024a99247c3ea' } }, + { name: 'Intro (Welcome To Hell)', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/78aebc677c5653720c763d936e8f7fd4/mp3-128/2641893501?p=0&ts=1613480193&t=b9dd349f67b3fd1d6283d17dc3d6f8de802fed81&token=1613480193_f8ce80fa9dbecbd1be32d8c742e3fdd203e6ef79' } }, { type: 'album', - name: 'Steel Sky', - url: 'https://dryeyes.bandcamp.com/album/steel-sky', - imageUrl: 'https://f4.bcbits.com/img/a4190860065_2.jpg', - genre: 'experimental', - artist: { name: 'Dry Eyes', url: 'https://dryeyes.bandcamp.com' }, - featuredTrack: - { name: 'Steel Sky', - streamUrl: 'https://t4.bcbits.com/stream/95947052b9ff44734f0da62051afed62/mp3-128/2914403443?p=0&ts=1613471183&t=ba80a3bf8143308e1df642c86e87ce6437fb28ca&token=1613471183_4145d1b1a7e9006cbc32c5f7f14ba20e3e87d7c6' } }, - { type: 'album', - name: 'Wavelabs', - url: 'https://lihjx.bandcamp.com/album/wavelabs', - imageUrl: 'https://f4.bcbits.com/img/a1449720309_2.jpg', - genre: 'experimental', - artist: { name: 'LihjX', url: 'https://lihjx.bandcamp.com' }, - featuredTrack: - { name: 'B.O.C. Transmissions', - streamUrl: 'https://t4.bcbits.com/stream/4b6b119420cdd3e2e1dbf38734477f3b/mp3-128/1306482052?p=0&ts=1613471183&t=c8a2d23dd13edf0447cfbebd9c54dfb44f1b0605&token=1613471183_8d63605a94b4d4a8a639f91460ec4ad2b745eaaf' } }, - { type: 'album', - name: 'Loose Ends', - url: 'https://subculturerecords.bandcamp.com/album/loose-ends', - imageUrl: 'https://f4.bcbits.com/img/a31742624_2.jpg', + name: 'Pneumogaastriq - Vagüsnervstimulaçion 3" CD-R', + url: 'https://eglantinerecords.bandcamp.com/album/pneumogaastriq-vag-snervstimula-ion-3-cd-r', + imageUrl: 'https://f4.bcbits.com/img/a1649527721_2.jpg', genre: 'electronic', artist: - { name: 'Piston Damp', + { name: 'Eglantinerecords', + url: 'https://eglantinerecords.bandcamp.com' }, + featuredTrack: + { name: 'Zandvhoortt', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/20fc5f9ef39df59bc2a2da94121edd18/mp3-128/12335702?p=0&ts=1613480193&t=8688318ad023a3a8794f985a12630b8d941d7d78&token=1613480193_bd5156a4d8c9a1c27dbda789d024f97b6fbef1a7' } }, + { type: 'album', + name: 'IRMxTP Part XIV - Red Room (The Evil in These Woods)', + url: 'https://indierockmag.bandcamp.com/album/irmxtp-part-xiv-red-room-the-evil-in-these-woods', + imageUrl: 'https://f4.bcbits.com/img/a1807757364_2.jpg', + genre: 'alternative', + artist: + { name: 'Various Artists', + url: 'https://indierockmag.bandcamp.com' }, + featuredTrack: + { name: '2kilos &More - TP-da-lp-fg-in-tb-l1', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/242f062d60f4464fa69ae4ba3bd60f92/mp3-128/3714457297?p=0&ts=1613480193&t=f8afb3698848dd27038519a809c04869626d2169&token=1613480193_cf9bbd855b4f3d8b191a24c478d06143eee2e981' } }, + { type: 'album', + name: 'Deleting death', + url: 'https://starryeyedalien.bandcamp.com/album/deleting-death', + imageUrl: 'https://f4.bcbits.com/img/a2043941226_2.jpg', + genre: 'ambient', + artist: + { name: 'StarryEyedAlien', + url: 'https://starryeyedalien.bandcamp.com' }, + featuredTrack: + { name: 'Deleting death', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/f36f9fc7bc26e691f705e508d1d9b6db/mp3-128/3970312658?p=0&ts=1613480193&t=fdeb8ad2ea9d46695e45ec2a5956728124602e98&token=1613480193_9d25646c99d6b6d177af2b8754b516a47a0143b1' } }, + { type: 'album', + name: 'Disasters In The Sun', + url: 'https://comfortlevel7.bandcamp.com/album/disasters-in-the-sun', + imageUrl: 'https://f4.bcbits.com/img/a726624657_2.jpg', + genre: 'electronic', + artist: + { name: 'comfortLevel7', + url: 'https://comfortlevel7.bandcamp.com' }, + featuredTrack: + { name: 'Slices', + position: 6, + streamUrl: 'https://t4.bcbits.com/stream/61fe812f20715fc8458c36be8d9c5d68/mp3-128/4015846545?p=0&ts=1613480193&t=293ec1b4ac7c75f18a87a6dc1cadb4506f27f95a&token=1613480193_ea819fc484e2beaa1dfa7c8cae1bee5fc7818173' } }, + { type: 'album', + name: 'The Last Breath of Civilisation', + url: 'https://rdomain.bandcamp.com/album/the-last-breath-of-civilisation', + imageUrl: 'https://f4.bcbits.com/img/a2117057587_2.jpg', + genre: 'ambient', + artist: { name: 'r.domain', url: 'https://rdomain.bandcamp.com' }, + featuredTrack: + { name: 'First Breath', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/2a67dceb885344fbc2d982b6e4346424/mp3-128/1332155878?p=0&ts=1613480193&t=104df39d993c9303942606b52a7069c019657489&token=1613480193_c131464f50e8db431d7b3068b07507da4f13cbe2' } }, + { type: 'album', + name: 'Leftover Pizza', + url: 'https://zurazawa.bandcamp.com/album/leftover-pizza', + imageUrl: 'https://f4.bcbits.com/img/a1794117482_2.jpg', + genre: 'soundtrack', + artist: { name: 'ZuraZawa', url: 'https://zurazawa.bandcamp.com' }, + featuredTrack: + { name: 'sleepless', + position: 9, + streamUrl: 'https://t4.bcbits.com/stream/1c10068b249148e26cac44399c1d4eb0/mp3-128/1189604852?p=0&ts=1613480193&t=29b354b0f63dc50e7a274be97cb2f3f3b1f56505&token=1613480193_79f1698dae2281ab96996e434ef460bb0e5d6c84' } }, + { type: 'album', + name: 'The hollow Earth', + url: 'https://garvalf.bandcamp.com/album/the-hollow-earth', + imageUrl: 'https://f4.bcbits.com/img/a3720275972_2.jpg', + genre: 'electronic', + artist: { name: 'garvalf', url: 'https://garvalf.bandcamp.com' }, + featuredTrack: + { name: 'Elpiedesyr sta vivildesta Elpier (The forbidden book of the Librarian)', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/3ba4076853ab4cabe183d49af3400fdf/mp3-128/1141572856?p=0&ts=1613480193&t=2364efe7585fabe2c641ee03bdac205d79c28490&token=1613480193_feb813811718142c5f084dd4d37e05d230eab56f' } }, + { type: 'album', + name: 'Reflections', + url: 'https://chiheihatakeyama.bandcamp.com/album/reflections', + imageUrl: 'https://f4.bcbits.com/img/a2511033634_2.jpg', + genre: 'ambient', + artist: + { name: 'NOGAWA kazune', + url: 'https://chiheihatakeyama.bandcamp.com' }, + featuredTrack: + { name: 'Escape', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/b3b702950ac4e9def0b423d75d8b3e14/mp3-128/3900976032?p=0&ts=1613480193&t=9e61c3453cbea5788aca2830a833a22611f6aad8&token=1613480193_078eb7cfd89b61b0950a5e433f329b24f7b2af1d' } }, + { type: 'album', + name: 'Motor Man (Remastered)', + url: 'https://subculturerecords.bandcamp.com/album/motor-man-remastered', + imageUrl: 'https://f4.bcbits.com/img/a622141166_2.jpg', + genre: 'electronic', + artist: + { name: 'Carlos Perón', url: 'https://subculturerecords.bandcamp.com' }, featuredTrack: - { name: 'Loose Ends', - streamUrl: 'https://t4.bcbits.com/stream/3abd561db48a70f82c18445293ba76b7/mp3-128/4177569166?p=0&ts=1613471183&t=30c24b8d53cb18ee148c019b0b007db0b1cb9e9f&token=1613471183_7526a19206f0fc8725c3bfc8adef393e6e0f0e33' } }, + { name: 'Motorman (Single Version)', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/fe465fd62ce5208f7ad2ab07e910cfb9/mp3-128/481891516?p=0&ts=1613480193&t=90dedba6f252084d1da59c3920e79e3fe94d3c94&token=1613480193_e7527555974397be567e5be3360ca5a4f7848584' } }, { type: 'album', - name: 'Left Behind', - url: 'https://wardove.bandcamp.com/album/left-behind', - imageUrl: 'https://f4.bcbits.com/img/a1467280380_2.jpg', - genre: 'electronic', - artist: { name: 'DJ Wardove', url: 'https://wardove.bandcamp.com' }, - featuredTrack: - { name: 'Wild Doves', - streamUrl: 'https://t4.bcbits.com/stream/05760ab34531b1419e564a14af86e3fc/mp3-128/518128632?p=0&ts=1613471183&t=7e4e7f1c544c8f32681a2bc914cde8727d4eaf7a&token=1613471183_5653041a82a1fdc581df7b9319f40cfbea12c240' } }, - { type: 'album', - name: 'acouasm', - url: 'https://algorhythms-co-uk.bandcamp.com/album/acouasm', - imageUrl: 'https://f4.bcbits.com/img/a2642836549_2.jpg', - genre: 'experimental', - artist: { name: 'algo', url: 'https://algorhythms-co-uk.bandcamp.com' }, - featuredTrack: - { name: 'CNX', - streamUrl: 'https://t4.bcbits.com/stream/b858b5773573ac1c378e3fef99c105b9/mp3-128/677954387?p=0&ts=1613471183&t=8880fe5d170818108c913a8fd23fd226c5bee7de&token=1613471183_d15c7b71b81afa36a3e1763e347119483972e3c4' } }, - { type: 'album', - name: 'SKY BOY - Remember [Statics 9]', - url: 'https://staticsmusic.bandcamp.com/album/sky-boy-remember-statics-9', - imageUrl: 'https://f4.bcbits.com/img/a665632189_2.jpg', - genre: 'electronic', - artist: { name: 'SKY BOY', url: 'https://staticsmusic.bandcamp.com' }, - featuredTrack: - { name: 'SKY BOY - Remember [Statics 9]', - streamUrl: 'https://t4.bcbits.com/stream/f1fec39bb84cdfee18abf474a771a3d8/mp3-128/168865234?p=0&ts=1613471183&t=0c20cb7f01e3f748730c7915a97948271d62c7d6&token=1613471183_b7fb2404ee4c859c4f2b77fef2910081af68039d' } }, - { type: 'album', - name: '0013', - url: 'https://dystopiasymphonia.bandcamp.com/album/0013', - imageUrl: 'https://f4.bcbits.com/img/a3002401502_2.jpg', - genre: 'electronic', - artist: - { name: 'Dystopia Symphonia', - url: 'https://dystopiasymphonia.bandcamp.com' }, - featuredTrack: - { name: 'This Is What Is Coming', - streamUrl: 'https://t4.bcbits.com/stream/6d85724f193bc588deaedecf0366c3ce/mp3-128/1847089218?p=0&ts=1613471183&t=33c92ac1dd3316bc825b3fe2ffc0ea8590bedd0f&token=1613471183_5721997464b20d3b77be8ed9853f331846d7712e' } }, - { type: 'album', - name: 'Cold Mountain', - url: 'https://oneambient4.bandcamp.com/album/cold-mountain', - imageUrl: 'https://f4.bcbits.com/img/a3680767099_2.jpg', + name: 'M I N D S C O P E', + url: 'https://noght.bandcamp.com/album/m-i-n-d-s-c-o-p-e', + imageUrl: 'https://f4.bcbits.com/img/a3750194349_2.jpg', genre: 'ambient', artist: - { name: 'David Gordon, aka OneAmbient4', - url: 'https://oneambient4.bandcamp.com' }, + { name: 'NoGht × KAKUMEI SHOJO', + url: 'https://noght.bandcamp.com' }, featuredTrack: - { name: 'Frozen', - streamUrl: 'https://t4.bcbits.com/stream/24727e1e3f4e3daf051cdeaccc3d4196/mp3-128/3301227742?p=0&ts=1613471183&t=777a4488a6d9daf05e8e6eb4d573e5b9355ecd22&token=1613471183_7a54d52492af2f52142c1afb6ad4b2f4c44ecc28' } }, + { name: 'All Gone / すべて消えてしまった', + position: 3, + streamUrl: 'https://t4.bcbits.com/stream/6a2a14e024c6d6bbef2cdf4ddd96aac7/mp3-128/1645795934?p=0&ts=1613480193&t=6747161f3aa087322d81d294ee7ca240f80b35df&token=1613480193_29bd7f12d78d3b7137b3b235b297b88fb8be20d5' } }, { type: 'album', - name: 'Erotikon', - url: 'https://deutschnepal.bandcamp.com/album/erotikon', - imageUrl: 'https://f4.bcbits.com/img/a3476983383_2.jpg', + name: 'Riverland II EP', + url: 'https://victimasdelspleen.bandcamp.com/album/riverland-ii-ep', + imageUrl: 'https://f4.bcbits.com/img/a3805420485_2.jpg', + genre: 'electronic', + artist: + { name: 'Victimas Del Spleen', + url: 'https://victimasdelspleen.bandcamp.com' }, + featuredTrack: + { name: 'Yaguaron', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/804a9eca4ae7ccf1d9ca2c8e0cfcc4b9/mp3-128/344944139?p=0&ts=1613480193&t=d25e26e9fd8e7020ec0e9ff9e8bb34249f504826&token=1613480193_7ff9112389b1b645b86253f5da2fcc4aa7926102' } }, + { type: 'album', + name: 'Dead Planet for a New Generation', + url: 'https://thegreenlander.bandcamp.com/album/dead-planet-for-a-new-generation', + imageUrl: 'https://f4.bcbits.com/img/a1127402752_2.jpg', + genre: 'electronic', + artist: + { name: 'The Greenlander', + url: 'https://thegreenlander.bandcamp.com' }, + featuredTrack: + { name: 'Song for the Unborn Among Us', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/427e65e439e18364246dc0f0bfed868a/mp3-128/1633011959?p=0&ts=1613480193&t=b0386402e029cdb252cfa292f993956ffaadf34a&token=1613480193_bca9c48459ee9deeb09890ad5972621fe80771e6' } }, + { type: 'album', + name: 'Radical Acceptance', + url: 'https://etchasketch.bandcamp.com/album/radical-acceptance', + imageUrl: 'https://f4.bcbits.com/img/a3446714216_2.jpg', + genre: 'electronic', + artist: { name: 'etchasketch', url: 'https://etchasketch.bandcamp.com' }, + featuredTrack: + { name: '27', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/3d2ce444ae17f3e81a82c8f0e74e62c9/mp3-128/322195038?p=0&ts=1613480193&t=041304822c0b5c3f4012884b49e17755579e5c85&token=1613480193_609a6bceb990097148e2f7f4bb305d723d39d4ff' } }, + { type: 'album', + name: 'Spirit Monk', + url: 'https://childrenofosiris.bandcamp.com/album/spirit-monk', + imageUrl: 'https://f4.bcbits.com/img/a261452571_2.jpg', + genre: 'electronic', + artist: + { name: 'Children Of Osiris', + url: 'https://childrenofosiris.bandcamp.com' }, + featuredTrack: + { name: 'Pictographic Nexus', + position: 6, + streamUrl: 'https://t4.bcbits.com/stream/74e19962224eec1b98dd091b3fefc09a/mp3-128/4263411312?p=0&ts=1613480193&t=9e21b315fd695321da859159b699778c0c1ed859&token=1613480193_03466f20bda19fc46245ec40d43dec0f63aede57' } }, + { type: 'album', + name: 'Radio Jamming', + url: 'https://lodevalm.bandcamp.com/album/radio-jamming', + imageUrl: 'https://f4.bcbits.com/img/a1508089565_2.jpg', + genre: 'electronic', + artist: { name: 'Lo Dev Alm', url: 'https://lodevalm.bandcamp.com' }, + featuredTrack: + { name: 'Uno Zero Uno Nove Nove', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/e82e1b872232503f19fdfff9c8a3c714/mp3-128/1258138999?p=0&ts=1613480193&t=b9164cbb5f8173671c5473d591a6af2c04f0734d&token=1613480193_d48e20b64e3cead801b785123c8bd13339131ebc' } }, + { type: 'album', + name: 'Live at Providence', + url: 'https://shoresoflatency.bandcamp.com/album/live-at-providence', + imageUrl: 'https://f4.bcbits.com/img/a2130394335_2.jpg', genre: 'experimental', artist: - { name: 'Deutsch Nepal', - url: 'https://deutschnepal.bandcamp.com' }, + { name: 'SHORES OF LATENCY', + url: 'https://shoresoflatency.bandcamp.com' }, featuredTrack: - { name: 'Heartbomb', - streamUrl: 'https://t4.bcbits.com/stream/2dc60b33e0ab7e45695f9f032d3a9528/mp3-128/3402533368?p=0&ts=1613471183&t=ad80e245ce3163be6eecd2e98de1815e4c4cf3c6&token=1613471183_335afdd008c84bb4fc81ddb07c64803146cb7896' } }, + { name: 'Live at Providence', + position: 1, + streamUrl: 'https://t4.bcbits.com/stream/1330fd604c456dab93bfff6296ad6b30/mp3-128/2188157125?p=0&ts=1613480193&t=6d3c4f910a858a14dded42fa0513a23408330460&token=1613480193_31eb46eb2cd24eb0a096946296edcd4465a32b7b' } }, { type: 'album', - name: 'Invasive Species', - url: 'https://identityknown.bandcamp.com/album/invasive-species', - imageUrl: 'https://f4.bcbits.com/img/a2557828338_2.jpg', - genre: 'ambient', - artist: - { name: 'Identity Known', - url: 'https://identityknown.bandcamp.com' }, - featuredTrack: - { name: 'As it wakes', - streamUrl: 'https://t4.bcbits.com/stream/b7bae21595959c6d3e05e776de4390e5/mp3-128/947704421?p=0&ts=1613471183&t=77764798f21a9dd57b0c149fe6fc2c7d5a775743&token=1613471183_9fb10fa60a78ca0774063601b367333e635b7c31' } }, - { type: 'album', - name: '来 て', - url: 'https://revolutiongirl.bandcamp.com/album/--29', - imageUrl: 'https://f4.bcbits.com/img/a1255187499_2.jpg', - genre: 'ambient', - artist: { name: '革 命 少 女', url: 'https://revolutiongirl.bandcamp.com' }, - featuredTrack: - { name: '夜歩くアクティビティー', - streamUrl: 'https://t4.bcbits.com/stream/e761c78cedaac7ce6abdc3e2db46c92f/mp3-128/2568868346?p=0&ts=1613471183&t=1060bcc6abdec73605f2c0e666af0dcf91a73437&token=1613471183_95449acac84baaee8ff2f1223869b0d97fb0a91b' } }, - { type: 'album', - name: 'Moments We Spent Together | Marigold Fields', - url: 'https://pitp.bandcamp.com/album/moments-we-spent-together-marigold-fields', - imageUrl: 'https://f4.bcbits.com/img/a298764323_2.jpg', - genre: 'ambient', - artist: { name: 'Endless Melancholy', url: 'https://pitp.bandcamp.com' }, - featuredTrack: - { name: 'Moments We Spent Together', - streamUrl: 'https://t4.bcbits.com/stream/8d58d77f0a5209a66d4761540a7de080/mp3-128/2858968173?p=0&ts=1613471183&t=dd892b0ba831121e415a22467c44023f349029f5&token=1613471183_9e67df9978d2004493553cd1f7ed045d48d35b13' } }, - { type: 'album', - name: 'the ways of fate', - url: 'https://magnetismeobscur.bandcamp.com/album/the-ways-of-fate', - imageUrl: 'https://f4.bcbits.com/img/a3299271599_2.jpg', + name: 'EXYS - I', + url: 'https://exitsystem.bandcamp.com/album/exys-i', + imageUrl: 'https://f4.bcbits.com/img/a674687844_2.jpg', genre: 'electronic', artist: - { name: 'magnetisme obscur', - url: 'https://magnetismeobscur.bandcamp.com' }, + { name: 'Various Artists', + url: 'https://exitsystem.bandcamp.com' }, featuredTrack: - { name: 'lenom', - streamUrl: 'https://t4.bcbits.com/stream/e33e5aaa60953e69cc18d056bedbd6b7/mp3-128/2719332497?p=0&ts=1613471183&t=aed87682eabc1df68eaa01929dfbd381b01e6e24&token=1613471183_fb04f8a4f2e5fc6e515ec0fcc3130f57c9c6d500' } }, + { name: 'Fate of the Universe', + position: 3, + streamUrl: 'https://t4.bcbits.com/stream/98a090b789812a1be4dc66eb94f15c50/mp3-128/2555948572?p=0&ts=1613480193&t=546b2af15e7b1a818a504b5d23c4a340dcfa96d9&token=1613480193_4744d63ee4020831ed0cdf40e1d07688b356c135' } }, { type: 'album', - name: 'Renaissance of Malady', - url: 'https://bleedingkumari.bandcamp.com/album/renaissance-of-malady', - imageUrl: 'https://f4.bcbits.com/img/a703289618_2.jpg', - genre: 'experimental', + name: 'Depths', + url: 'https://jankoekepan.bandcamp.com/album/depths', + imageUrl: 'https://f4.bcbits.com/img/a4159256539_2.jpg', + genre: 'ambient', artist: - { name: 'Bleeding Kumari', - url: 'https://bleedingkumari.bandcamp.com' }, + { name: 'Jan Koekepan', + url: 'https://jankoekepan.bandcamp.com' }, featuredTrack: - { name: 'The Bent Pyramid', - streamUrl: 'https://t4.bcbits.com/stream/66ba5e61639f376ba0f2a57eecb3908d/mp3-128/2499644387?p=0&ts=1613471183&t=493d9c4e03491067ed39d72a84a5dc255287d967&token=1613471183_443e5f37130858a4b4646a0bd3f81182a4b98f82' } }, + { name: 'Twilight', + position: 4, + streamUrl: 'https://t4.bcbits.com/stream/b7e25de87771f36d44f592f2087ee3bc/mp3-128/2602265547?p=0&ts=1613480193&t=544b9b02587b617ba0bf408de7aa4c646c2ead08&token=1613480193_96455f1e26e67f5c28d784d37f0ba0bb284c31f8' } }, { type: 'album', - name: 'Buried I', - url: 'https://mercyry.bandcamp.com/album/buried-i', - imageUrl: 'https://f4.bcbits.com/img/a1209083801_2.jpg', + name: 'A Drop In Time', + url: 'https://icntrl.bandcamp.com/album/a-drop-in-time', + imageUrl: 'https://f4.bcbits.com/img/a3417591729_2.jpg', genre: 'electronic', - artist: { name: 'Mercyry', url: 'https://mercyry.bandcamp.com' }, + artist: { name: 'MATYRIA', url: 'https://icntrl.bandcamp.com' }, featuredTrack: - { name: 'Dissipation', - streamUrl: 'https://t4.bcbits.com/stream/8628fddc2d752418a73e0eea21ec1c22/mp3-128/1593388761?p=0&ts=1613471183&t=e2953792420070effb38e4b749c4ff6a8cbf2e33&token=1613471183_6b45b33ff4c47364111b9397095f0072804578bd' } }, - { type: 'album', - name: 'The Unraveling Mind', - url: 'https://downloadmusic.mortiis.com/album/the-unraveling-mind', - imageUrl: 'https://f4.bcbits.com/img/a2125585247_2.jpg', - genre: 'metal', - artist: { name: 'Mortiis', url: 'https://downloadmusic.mortiis.com' }, - featuredTrack: - { name: 'Virosus - Silentium', - streamUrl: 'https://t4.bcbits.com/stream/ffffac27df791d768213b2dab325a15a/mp3-128/1110628764?p=0&ts=1613471183&t=c3217468704eecf5f0b0f107d24e31496fa94300&token=1613471183_1576d5b13c2806455bd22b546cae5bae55582660' } }, - { type: 'album', - name: 'Electronic Methods', - url: 'https://matthewvandenbrook.bandcamp.com/album/electronic-methods', - imageUrl: 'https://f4.bcbits.com/img/a1048848480_2.jpg', - genre: 'electronic', - artist: - { name: 'Matthew VandenBrook', - url: 'https://matthewvandenbrook.bandcamp.com' }, - featuredTrack: - { name: 'Electronic Methods', - streamUrl: 'https://t4.bcbits.com/stream/6c331ba8bade13255fbabb2d08810ec5/mp3-128/3283087023?p=0&ts=1613471183&t=0d8fee87814b8fadb9e1436dce97b7fb32f9c14c&token=1613471183_4caf81ce81b0ad89809457666e5c69dbb5be7dd4' } }, - { type: 'album', - name: 'Ahera / Ulappa', - url: 'https://onsetaudio.bandcamp.com/album/ahera-ulappa', - imageUrl: 'https://f4.bcbits.com/img/a313449412_2.jpg', - genre: '', - artist: - { name: 'Joonas Aleksi', - url: 'https://onsetaudio.bandcamp.com' }, - featuredTrack: - { name: 'Ahera', - streamUrl: 'https://t4.bcbits.com/stream/343e9ded767d04d38df1508ffa245ee8/mp3-128/1571163167?p=0&ts=1613471183&t=0a8579701b3c0c28d1436d56ca410c296a09b6ee&token=1613471183_67e9901738e188f529e83438a2ef519f3050aa7c' } }, - { type: 'album', - name: 'The Faintest Flickering Light: Electronic Experiments, Volume 1', - url: 'https://hebluesrecords.bandcamp.com/album/the-faintest-flickering-light-electronic-experiments-volume-1', - imageUrl: 'https://f4.bcbits.com/img/a179261036_2.jpg', - genre: 'jazz', - artist: - { name: 'Misha Siegfried & His Band', - url: 'https://hebluesrecords.bandcamp.com' }, - featuredTrack: - { name: 'Moody_AF', - streamUrl: 'https://t4.bcbits.com/stream/a4c3ebe9a773f2fc60d7e9a7a1353b79/mp3-128/2984581408?p=0&ts=1613471183&t=52d075f0c5d9e5edbe186191f1e10dfa494fcf40&token=1613471183_3bd94f78f479065de061f729c510a584b312d817' } } ], + { name: 'Inner Psy', + position: 2, + streamUrl: 'https://t4.bcbits.com/stream/b7a10ac3c6dbe56450620d1a0d9144a8/mp3-128/152304412?p=0&ts=1613480193&t=6de443cfb4e0d2fb69241065352f44feff808791&token=1613480193_71bd88ead2b7c134449b050549d069c2d443c758' } } ], hasMore: true, filters: - { format: 'all', - sort: 'random', - location: 0, - tags: [ 'dark-ambient', 'electronica' ] } } + { sort: 'random', + format: 'all', + tags: [ 'dark-ambient', 'electronica' ], + location: 0 } } diff --git a/lib/parser.js b/lib/parser.js index 59917df..c84fd9b 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -1171,7 +1171,7 @@ function parseReleasesByTag(json, opts) { name: item.artist, url: item.band_url }, - featuredTrack: '' + featuredTrack: null }; if (item.item_type === 'a') { mediaItem.type = 'album'; @@ -1185,6 +1185,7 @@ function parseReleasesByTag(json, opts) { if (item.featured_track_title) { mediaItem.featuredTrack = { name: item.featured_track_title, + position: item.featured_track_number, streamUrl: (item.audio_url ? item.audio_url['mp3-128'] : null) || null }; }