- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
给定 Bandcamp 上专辑的链接,我如何生成代码以嵌入相应的 Bandcamp 播放器? Bandcamp 提供的嵌入代码似乎包含不透明的专辑 ID,我无法以编程方式获取。
最佳答案
Bandcamp 专辑页面的 HTML 源代码在 <script>
部分中包含一个 <head>
标记,该标记具有一个 JSON 对象,其中包含构建嵌入式 Web 播放器的所有必要信息。
例如,https://muvaofearth.bandcamp.com/album/high 包含以下内容:
<script type="application/ld+json">
{"byArtist":{"@type":"MusicGroup","name":"muva of Earth","@id":"https://muvaofearth.bandcamp.com"},"albumReleaseType":"SingleRelease","numTracks":1,"name":"High","@type":"MusicAlbum","copyrightNotice":"All Rights Reserved","keywords":["Alternative","Neo-Soul","afro","alternative","nu-jazz","soul","London"],"publisher":{"event":[{"startDate":"06 Aug 2022 00:00:00 GMT","location":{"name":"Foyer, Queen Elizabeth Hall","@type":"MusicVenue","address":"London, UK"},"@type":"MusicEvent","name":"muva of Earth","url":"https://www.songkick.com/concerts/40422319-pink-siifu-at-foyer-queen-elizabeth-hall?utm_source=1471&utm_medium=partner"},{"startDate":"13 Aug 2022 00:00:00 GMT","location":{"name":"Crystal Palace Bowl","@type":"MusicVenue","address":"Bromley, UK"},"@type":"MusicEvent","name":"muva of Earth","url":"https://www.songkick.com/concerts/40264294-kamasi-washington-at-crystal-palace-bowl?utm_source=1471&utm_medium=partner"},{"startDate":"17 Nov 2022 00:00:00 GMT","location":{"name":"The Lower Third","@type":"MusicVenue","address":"London, UK"},"@type":"MusicEvent","name":"muva of Earth","url":"https://www.songkick.com/concerts/40563917-muva-of-earth-at-lower-third?utm_source=1471&utm_medium=partner"}],"genre":"https://bandcamp.com/tag/alternative","@type":"MusicGroup","name":"muva of Earth","foundingLocation":{"@type":"Place","name":"London, UK"},"@id":"https://muvaofearth.bandcamp.com","image":"https://f4.bcbits.com/img/0029361084_10.jpg","additionalProperty":[{"value":3580433718,"name":"band_id","@type":"PropertyValue"},{"value":"GBP","name":"currency","@type":"PropertyValue"},{"value":true,"name":"has_any_downloads","@type":"PropertyValue"},{"value":true,"name":"has_download_codes","@type":"PropertyValue"},{"value":4096,"name":"image_height","@type":"PropertyValue"},{"value":29361084,"name":"image_id","@type":"PropertyValue"},{"value":3072,"name":"image_width","@type":"PropertyValue"}],"subjectOf":[{"@type":"WebPage","name":"music","url":"https://muvaofearth.bandcamp.com/music","additionalProperty":[{"value":"m","name":"nav_type","@type":"PropertyValue"}]},{"@type":"WebPage","name":"community","url":"https://muvaofearth.bandcamp.com/community","additionalProperty":[{"value":"c","name":"nav_type","@type":"PropertyValue"}]}],"description":"muva of Earth is an alternative jazz singer and ASCENDING SOULSTRESS from tribe ‘Crown of Ọṣun’ in Yorubaland, Nigeria. \nBorn and raised in London, today the ever-evolving being is inspired by Sun Ra, Sade and Fela Kuti. By connecting to her roots, muva of Earth’s music explores the complexities of identity, the self and human connections over a bed of afrofuturistic rhythms and atmospheric horns","mainEntityOfPage":[{"@type":"WebPage","name":"Instagram","url":"https://www.instagram.com/muvaofearth/"}]},"@id":"https://muvaofearth.bandcamp.com/album/high","@context":"https://schema.org","additionalProperty":[{"value":3292814127,"name":"art_id","@type":"PropertyValue"},{"value":1,"name":"featured_track_num","@type":"PropertyValue"},{"value":"all_rights_reserved","name":"license_name","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/a3292814127_10.jpg","track":{"itemListElement":[{"position":1,"@type":"ListItem","item":{"copyrightNotice":"All Rights Reserved","name":"High","@type":"MusicRecording","@id":"https://muvaofearth.bandcamp.com/track/high","additionalProperty":[{"value":1973219776,"name":"track_id","@type":"PropertyValue"},{"value":"all_rights_reserved","name":"license_name","@type":"PropertyValue"}],"duration":"P00H02M56S"}}],"@type":"ItemList","numberOfItems":1},"albumRelease":[{"musicReleaseFormat":"DigitalFormat","@type":["MusicRelease","Product"],"name":"High","offers":{"price":0.0,"priceSpecification":{"minPrice":0.0},"priceCurrency":"GBP","@type":"Offer","url":"https://muvaofearth.bandcamp.com/album/high#a3879992644-buy","additionalProperty":[{"value":1000.0,"name":"max_price","@type":"PropertyValue"}],"availability":"OnlineOnly"},"@id":"https://muvaofearth.bandcamp.com/album/high","image":["https://f4.bcbits.com/img/a3292814127_10.jpg"],"additionalProperty":[{"value":3879992644,"name":"item_id","@type":"PropertyValue"},{"value":"a","name":"item_type","@type":"PropertyValue"},{"value":4286003490,"name":"selling_band_id","@type":"PropertyValue"},{"value":"Digital","name":"type_name","@type":"PropertyValue"},{"value":3292814127,"name":"art_id","@type":"PropertyValue"}],"description":"Includes high-quality download in MP3, FLAC and more. Paying supporters also get unlimited streaming via the free Bandcamp app.","recordLabel":{"@type":"MusicGroup","name":"Brownswood Recordings","@id":"https://brownswoodrecordings.bandcamp.com","additionalProperty":[{"value":"/music?from=btl","name":"url_suffix","@type":"PropertyValue"}]},"identifier":"5060180325619"},{"@type":"MusicRelease","@id":"https://muvaofearth.bandcamp.com/track/high"}],"description":"Brownswood Recordings are happy to present our newest family member, muva of Earth, an alternative jazz singer and ASCENDING SOULSTRESS from South East London. Thought-provoking debut single ‘High’ encapsulates a human’s ability to shape, transform and play with their own point of view. For example, reframing nervousness into excitement and making the most out of a negative situation, resulting in a value-creating experience that demonstrates the power of manifestation. ‘High’ by muva of Earth is released on digital format only on Wednesday 27th July 2022 via Brownswood Recordings. \r\n\r\nInspired by the breakdown of a relationship, the track opens with a euphoric harmony, the ethereal vocals are grounded by the chugging Hip Hop drum beat, inviting the listener into muva of Earth’s Afro-spiritual world. The lyrics carry a poignant message, “Thirsting for knowledge, thirsting for thought’ touches upon the purpose of human life on a constant quest for stimulation. “Wondering why people divide” is a reflexive moment pondering existential questions like, why is there so much turmoil in life? The vocals build up to a powerful crescendo elevating the affirmations developed throughout the song, representing an empowering realisation of life as part of a Divine whole to be appreciated and celebrated. \r\n\r\nGrowing up in both London & Kent under the influence of Amy Winehouse and Beyoncé. Moving back to London in her teenage years marks an important moment for muva of Earth as she had the freedom to immerse herself into her music, from studying at college to gracing stages around London with her soulful croons. Today, the ever-evolving being is deeply inspired by Sun Ra, Sade, Alice Coltrane and Fela Kuti. By connecting to her Yoruba roots, muva of Earth’s music explores the complexities of identity, the self and human connections over a bed of afrofuturistic rhythms and atmospheric horns.\r\n\r\nListening to muva of Earth is like planting your feet in rich warm soil; blending spiritual mantras and conscious lyricism, her music is truly transformative.\r\n\r\n‘High’ by muva of Earth is available across all digital streaming platforms on Wednesday July 27th 2022","creditText":"Vocals & Harp performed by muva of Earth \r\nKeyboards, Guitar, Percussion and Programming by Stephen Wesley Holmes\r\nSaxophone by Jaz Lee","dateModified":"28 Jul 2022 11:33:02 GMT","datePublished":"27 Jul 2022 00:00:00 GMT","sponsor":[{"name":"Steve Harrington","@type":"Person","url":"https://bandcamp.com/steveharrington","additionalProperty":[{"value":6141626,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0006141626_50.jpg"},{"name":"detroitlyons1969","@type":"Person","url":"https://bandcamp.com/detroitlyons1969","additionalProperty":[{"value":28555487,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0028555487_50.jpg"},{"name":"SBL Anderson","@type":"Person","url":"https://bandcamp.com/sbl","additionalProperty":[{"value":4524324,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0004524324_50.jpg"},{"name":"mustafa popal","@type":"Person","url":"https://bandcamp.com/mustafapopal","additionalProperty":[{"value":1121612,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0001121612_50.jpg"},{"name":"mxwix","@type":"Person","url":"https://bandcamp.com/ash_hanners","additionalProperty":[{"value":27522757,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0027522757_50.jpg"},{"name":"SHACHO","@type":"Person","url":"https://bandcamp.com/shacho","additionalProperty":[{"value":4216957,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0004216957_50.jpg"},{"name":"lifeboogie","@type":"Person","url":"https://bandcamp.com/lifeboogie","additionalProperty":[{"value":8896602,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0008896602_50.jpg"},{"name":"essarai","@type":"Person","url":"https://bandcamp.com/essarai","additionalProperty":[{"value":3289423,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0003289423_50.jpg"},{"name":"barndog","@type":"Person","url":"https://bandcamp.com/barndog18","additionalProperty":[{"value":27608387,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0027608387_50.jpg"},{"name":"Barry Tucker","@type":"Person","url":"https://bandcamp.com/barrytucker","additionalProperty":[{"value":22231639,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0022231639_50.jpg"},{"name":"Mike Allin","@type":"Person","url":"https://bandcamp.com/mikeallin","additionalProperty":[{"value":24391202,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0024391202_50.jpg"},{"name":"djmeatraffle","@type":"Person","url":"https://bandcamp.com/djmeatraffle","additionalProperty":[{"value":19491106,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0019491106_50.jpg"},{"name":"parjugs","@type":"Person","url":"https://bandcamp.com/parjugs","additionalProperty":[{"value":27516607,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0027516607_50.jpg"},{"name":"naya","@type":"Person","url":"https://bandcamp.com/nayaya","additionalProperty":[{"value":21384901,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0021384901_50.jpg"},{"name":"Hirotaka I'shigaki","@type":"Person","url":"https://bandcamp.com/hirotakaishigaki","additionalProperty":[{"value":5873807,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0005873807_50.jpg"},{"name":"Osunlade","@type":"Person","url":"https://bandcamp.com/osunlade","additionalProperty":[{"value":25094079,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0025094079_50.jpg"},{"name":"cone_the_weird","@type":"Person","url":"https://bandcamp.com/cone_the_weird","additionalProperty":[{"value":14084902,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0014084902_50.jpg"},{"name":"fawces","@type":"Person","url":"https://bandcamp.com/fawces","additionalProperty":[{"value":27693682,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0027693682_50.jpg"},{"name":"Emma Warren","@type":"Person","url":"https://bandcamp.com/emmalwarren","additionalProperty":[{"value":8808049,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0008808049_50.jpg"},{"name":"Kirill Linne","@type":"Person","url":"https://bandcamp.com/linnekirill","additionalProperty":[{"value":21967238,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0021967238_50.jpg"},{"name":"Matthew Slaymaker","@type":"Person","url":"https://bandcamp.com/mattslaymaker","additionalProperty":[{"value":29067867,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0029067867_50.jpg"},{"name":"Carlos Niño Music","@type":"Person","url":"https://bandcamp.com/carlosnino","additionalProperty":[{"value":16650805,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0016650805_50.jpg"},{"name":"Graham Naylor","@type":"Person","url":"https://bandcamp.com/grahamnaylor","additionalProperty":[{"value":4674976,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0004674976_50.jpg"},{"name":"rob ","@type":"Person","url":"https://bandcamp.com/robertgebhard","additionalProperty":[{"value":14401976,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0014401976_50.jpg"},{"name":"thecontinental63","@type":"Person","url":"https://bandcamp.com/thecontinental63","additionalProperty":[{"value":24330960,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0024330960_50.jpg"},{"name":"Aly Gillani","@type":"Person","url":"https://bandcamp.com/alygillani","additionalProperty":[{"value":14569548,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0014569548_50.jpg"},{"name":"craigthomas1","@type":"Person","url":"https://bandcamp.com/craigthomas1","additionalProperty":[{"value":9013630,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0009013630_50.jpg"},{"name":"jjayb","@type":"Person","url":"https://bandcamp.com/jjayb","additionalProperty":[{"value":24156945,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0024156945_50.jpg"},{"name":"New Analog","@type":"Person","url":"https://bandcamp.com/newanalog","additionalProperty":[{"value":28320188,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0028320188_50.jpg"},{"name":"Sadeedo","@type":"Person","url":"https://bandcamp.com/sadeedo","additionalProperty":[{"value":14858237,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0014858237_50.jpg"},{"name":"SoulandJazz","@type":"Person","url":"https://bandcamp.com/marcelvaillant","additionalProperty":[{"value":25086431,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0025086431_50.jpg"},{"name":"ssss","@type":"Person","url":"https://bandcamp.com/samuelmcpherson","additionalProperty":[{"value":29361314,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0029361314_50.jpg"},{"name":"DeLaRoos","@type":"Person","url":"https://bandcamp.com/delaroos","additionalProperty":[{"value":16474284,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0016474284_50.jpg"},{"name":"Tom Turnbull","@type":"Person","url":"https://bandcamp.com/tomturnbull101","additionalProperty":[{"value":10871014,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0010871014_50.jpg"},{"name":"davidgreene1","@type":"Person","url":"https://bandcamp.com/davidgreene1","additionalProperty":[{"value":27367718,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0027367718_50.jpg"},{"name":"gry nicolas","@type":"Person","url":"https://bandcamp.com/grynicolas","additionalProperty":[{"value":8723957,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0008723957_50.jpg"},{"name":"franciscoldn","@type":"Person","url":"https://bandcamp.com/franciscoldn","additionalProperty":[{"value":13492971,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0013492971_50.jpg"},{"name":"david brooks","@type":"Person","url":"https://bandcamp.com/dbrooks46","additionalProperty":[{"value":15934939,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0015934939_50.jpg"},{"name":"Stefan","@type":"Person","url":"https://bandcamp.com/sportivo","additionalProperty":[{"value":17334916,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0017334916_50.jpg"},{"name":"nore01","@type":"Person","url":"https://bandcamp.com/nore01","additionalProperty":[{"value":26186692,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0026186692_50.jpg"},{"name":"Adrian Fox-Pearson","@type":"Person","url":"https://bandcamp.com/adrianfox-pearson","additionalProperty":[{"value":8419619,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0008419619_50.jpg"},{"name":"andychiminea","@type":"Person","url":"https://bandcamp.com/andychiminea","additionalProperty":[{"value":25593828,"name":"image_id","@type":"PropertyValue"}],"image":"https://f4.bcbits.com/img/0025593828_50.jpg"}]}
</script>
您具体需要的是以下键:
@id
,即https://muvaofearth.bandcamp.com
albumRelease -> additionalProperty -> value
所在对象的name = "item_id"
,即3879992644
关于javascript - 如何在给定专辑的情况下生成 Bandcamp 播放器嵌入代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42334198/
我尝试理解[c代码 -> 汇编]代码 void node::Check( data & _data1, vector& _data2) { -> push ebp -> mov ebp,esp ->
我需要在当前表单(代码)的上下文中运行文本文件中的代码。其中一项要求是让代码创建新控件并将其添加到当前窗体。 例如,在Form1.cs中: using System.Windows.Forms; ..
我有此 C++ 代码并将其转换为 C# (.net Framework 4) 代码。有没有人给我一些关于 malloc、free 和 sprintf 方法的提示? int monate = ee; d
我的网络服务器代码有问题 #include #include #include #include #include #include #include int
给定以下 html 代码,将列表中的第三个元素(即“美丽”一词)以斜体显示的 CSS 代码是什么?当然,我可以给这个元素一个 id 或一个 class,但 html 代码必须保持不变。谢谢
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。 关闭 7 年前。
我试图制作一个宏来避免重复代码和注释。 我试过这个: #define GrowOnPage(any Page, any Component) Component.Width := Page.Surfa
我正在尝试将我的旧 C++ 代码“翻译”成头条新闻所暗示的 C# 代码。问题是我是 C# 中的新手,并不是所有的东西都像 C++ 中那样。在 C++ 中这些解决方案运行良好,但在 C# 中只是不能。我
在 Windows 10 上工作,R 语言的格式化程序似乎没有在 Visual Studio Code 中完成它的工作。我试过R support for Visual Studio Code和 R-T
我正在处理一些报告(计数),我必须获取不同参数的计数。非常简单但乏味。 一个参数的示例查询: qCountsEmployee = ( "select count(*) from %s wher
最近几天我尝试从 d00m 调试网络错误。我开始用尽想法/线索,我希望其他 SO 用户拥有可能有用的宝贵经验。我希望能够提供所有相关信息,但我个人无法控制服务器环境。 整个事情始于用户注意到我们应用程
我有一个 app.js 文件,其中包含如下 dojo amd 模式代码: require(["dojo/dom", ..], function(dom){ dom.byId('someId').i
我对“-gencode”语句中的“code=sm_X”选项有点困惑。 一个例子:NVCC 编译器选项有什么作用 -gencode arch=compute_13,code=sm_13 嵌入库中? 只有
我为我的表格使用 X-editable 框架。 但是我有一些问题。 $(document).ready(function() { $('.access').editable({
我一直在通过本教程学习 flask/python http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-wo
我想将 Vim 和 EMACS 用于 CNC、G 代码和 M 代码。 Vim 或 EMACS 是否有任何语法或模式来处理这种类型的代码? 最佳答案 一些快速搜索使我找到了 this vim 和 thi
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?更新问题,使其成为 on-topic对于堆栈溢出。 7年前关闭。 Improve this
这个问题在这里已经有了答案: Enabling markdown highlighting in Vim (5 个回答) 6年前关闭。 当我在 Vim 中编辑包含 Markdown 代码的 READM
我正在 Swift3 iOS 中开发视频应用程序。基本上我必须将视频 Assets 和音频与淡入淡出效果合并为一个并将其保存到 iPhone 画廊。为此,我使用以下方法: private func d
pipeline { agent any stages { stage('Build') { steps { e
我是一名优秀的程序员,十分优秀!