yorkxin / kbl-generator Goto Github PK
View Code? Open in Web Editor NEWKKBOX Playlist (KBL) Generator
License: MIT License
KKBOX Playlist (KBL) Generator
License: MIT License
字串欄位如果有 <
、 >
、 &
等沒有 escape 的文字,餵給 Nokogiri 會 parse error。
試過用 CDATA 包起來,但這樣的話匯進 KKBOX 會出現那些 CDATA 文字。
幾個解法:
是在這裡:
<playlist>
<playlist_id>1</playlist_id>
<playlist_name>Playlist</playlist_name><!-- 這裡 -->
</playlist>
可能的做法是從 genkbl.rb 的 command line args 丟進來。
所謂異常是,後播的會查詢它的歌手資訊,並且蓋掉某些前面播過的。
可能跟「從來沒在 KKBOX 裡播過這首歌」這個問題有關。
取得所有 Artist ID ,但這不存在網頁上所以比較難抓,只知道可以從匯出的 playlist 抓到。
那麼就有暴力解:
kkbox://play_song_xxxxxxx
這樣也可以解決「只知道 Song ID 不知道 Album ID」的問題。
不過應該是需要一個 KBL parser (XML parser) 來讓「從 KBL 檔抽出 Artist / Album ID」這件事自動化。
另外 Step 3 是沒辦法自動化的。
做夢夢到 sqlite3 db 裡面有曾經播過的曲目資料,所以可以直接對它下 query 來取出 meta data。
那樣的話流程變成
到這裡突然發現這招是 mac only,我就嚇醒了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.