VKAudioFS gives you a possibility to mount your audio records as a simple directory is OSX or Linux and use your favourite audio player with them.
IMPOTANT: you are allowed to use this file system only for listening your music in applications. Copying mounted files to another directory violates paragraph 12 of API user agreement published at http://vk.com/dev/rules and may lead to the termination of your account and to the Russian military invasion in your country.
Please note the filesystem does not handle remote playlist updates. You have to remount FS manually on adding or removing files from your audio list on VK.
Current limitation is 6000 audio files per account.
- Install prerequisites:
- OSX: get and install http://osxfuse.github.io/ and brew install pkg-config glib json-c
- Debian / Ubuntu: sudo apt-get install build-essential git pkg-config fuse libcurl4-openssl-dev libfuse-dev libglib2.0-dev libjson0-dev
- Optionally you can change VK_APP_ID in include/config.h to match your application id. You can generate new standalone app here: http://vk.com/editapp?act=create.
- Clone repository: git clone https://github.com/mindcollapse/vkaudiofs.git
- Build and install: cd vkaudiofs && make && make install
At first you need to obtain OAuth token and security ID. Go and get some authentication URL by executing vkaudiofs --oath.
Open the link and confirm the permissions request. This will redirect you to blank.html URL. See example below.
https://api.vk.com/blank.html#access_token=LONG_TOKEN_BLABLABLA&expires_in=0&user_id=USER_NUMERIC_ID
Copy LONG_TOKEN_BLABLABLA and USER_NUMERIC_ID parts.
You are a stone's throw from the end:
- Create mount point: mkdir ~/Music/VK
- Mount your records: vkaudiofs ~/Music/VK --access_token LONG_TOKEN_BLABLABLA --user_id USER_NUMERIC_ID
- Wait few minutes while it updates sizes for files in your playlist using HTTP HEAD request. We cache all results, so next time this should take less then a second.