[WordPress] 外掛分享: Latest Spotify Activity

首頁外掛目錄 › Latest Spotify Activity
20+
安裝啟用
★★★★★
5/5 分(2 則評價)
5196 天前
最後更新
問題解決
WordPress 3.0+ v0.1.2 上架:2011-12-25

內容簡介

這個簡單的小工具可以在您的網站上顯示您在 Spotify 上的活動。使用 Spotify 內建的「Last.fm Scrobble」功能。

設置完成後,您在 Spotify 應用上播放的歌曲將立即在您的網站上顯示,供您的用戶查看!每行顯示歌曲的藝術家、歌曲標題和播放時間。如果歌曲仍在播放,它將顯示「目前播放中」,而不是顯示自播放以來的時間。
 

易於設置

此外掛程式不需要在播放音樂的設備上安裝額外的軟件。在 WordPress 上啟用它並輸入您的 Last.fm 用戶名後,您播放的任何內容都會通過小工具顯示。
 

輕量級!

儘管此插件的大小約為 5 KB,但前端只使用了約 2 KB 來顯示您最近的活動。其餘的代碼用於註冊插件,創建/處理小工具選項。翻譯?這是一個非常小的腳本,甚至不會影響您的加載時間。
 

此插件使用 Spotify 的「Last.fm Scrobbling」

由於 Spotify 目前沒有用於查看最新活動的 API,因此此插件使用 Spotify 的「Last.fm Scrobbling」功能作為解決方法。這意味著需要一個 Last.fm 帳戶才能正常工作。如果您還沒有 Last.fm 帳戶,請不用擔心,因為只需要約 15 秒鐘即可創建一個免費帳戶!
 

示範

查看使用者看到的小工具示範,此處或在「屏幕截圖」選項卡中。也可以在「屏幕截圖」選項卡中查看小工具的設置。

說明

如果您還沒有 Last.fm 帳戶,註冊一個。
在 Spotify 應用的首選項中,啟用最新的 Last.fm Scrobbing 並輸入您的 Last.fm 登錄信息。
在 WordPress 的管理界面上,在「外觀」>「小工具」區域中,將「最新的 Spotify 活動」小工具拖放到所需的側邊欄位置。
在「最新的 Spotify 活動」小工具設置中,輸入您的 Last.fm 用戶名稱並選擇要顯示的歌曲數量。別忘了按下保存按鈕!
完成!現在返回聆聽音樂吧!

支援

有疑問嗎?有錯誤嗎?有建議嗎?電子郵件至 [email protected] 或在 Twitter 上發推文 @justindocanto,我會盡快回复您。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Latest Spotify Activity」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A simple widget that displays your Spotify activity on your site. Powered by Spotify’s built-in ‘Last.fm Scrobble’ functionality.

Once setup, the songs you play on your Spotify app are instantly viewable on your site for your users to see! Each line displays the song’s artist, song title & how long it’s been since you started listening to it. If a song is still playing it will display “Currently Playing” instead of displaying the time since it was played.
 
Easy to Setup
This plugin requires no extra software to be installed on the device you’re playing music from. Once you activate it on WordPress and enter your Last.fm username, anything you play will be displayed via the widget.
 
It’s Lightweight!
Although this plugin is ~5kb in size, only ~2kb is used on the front-end to display your recent activity. The remaining code is used to register the plugin & create/process the widget options. Translation? This is a very small script and won’t even dent your load time.
 
This plugin uses Spotify’s ‘Last.fm Scrobbling’
Because Spotify does not currently have an API to see your latest activity, this plugin uses Spotify’s “Last.fm Scrobbling” feature as a workaround. This means a Last.fm account is required for it to work. If you don’t have a Last.fm account, have no fear, as creating one takes approx. 15 seconds and it’s free!
 
Demo
See a demo of what the widget look’s like to users, here or on the ‘Screenshots’ tab. See what the widget’s settings look like, on the ‘Screenshots’ tab as well.
Instructions

If you don’t have one already, Sign-up for a Last.fm account.
In your Spotify app’s preferences, enable last.fm scrobbling & enter your last.fm login info
In your WordPress admin area, under “Appearance” > “Widgets” area, drag & drop the “Latest Spotify Activity” widget to the desired sidebar location
In the “Lastest Spotify Activity” widget settings, enter your last.fm user name and choose how many songs to display. Don’t forget to press save!
You’re done! Get back to listening to music!

Support
Questions? Bugs? Suggestions? E-mail [email protected] or tweet @justindocanto and I’ll get back to you as soon as possible.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon