How to create a VKontakte playlist. Basic operations - attaching a playlist to a group or post, deleting, downloading

How to create a VKontakte playlist?

Log in to your page, then go to the Music section.

'Chapter
Button to create a playlist

A window will open where you need to fill in the basic settings. We add a cover for our playlist, indicate its name and description.

Basic settings for a new playlist
Basic settings for a new playlist

Now you need to add the desired songs to this list. We click on the “Add audio recordings” item. Let's go to the page with a list of our compositions. We find the one we need and mark it by placing a marker in front of it.

You can also use the search tool to find the song you're looking for if it's not in your collection.

This procedure is shown below.

When all the settings are completed and all the songs are added, we save this playlist. And now it is available to us on the “Playlists” tab.

You can also edit it here. We move the mouse cursor and in the menu that appears, click on the “Edit” icon.

Editing a playlist
Editing a playlist

We'll go to the familiar window where you can make edits, add or remove some compositions.

Making edits to a playlist
Making edits to a playlist

This is how it is done through the application on the phone

You can work with your playlists right in the application on your phone. Go to the main menu, then open the “Music” section.

'Chapter
Music section in the application

In the “Playlists” block, click on the “Show all” link.

View all playlists from your phone
View all playlists from your phone

There will be a link to “Create a playlist.”

Link to create a playlist in the application
Link to create a playlist in the application

Then the process is similar - specify the name and description, add songs and save the collection

Creating a playlist in the application
Creating a playlist in the application

If you need to make edits, on the page with all playlists, open the menu for the desired one and click “Edit”.

Switch to edit mode
Switch to edit mode

Official application

But this is only one of several ways out of this situation. How to make a playlist in VK on your phone? You can use the official application for VKontakte.

In order to cope with such a task you will need:

  1. Log in to the VK application for mobile devices.
  2. Wait until you are connected to your account. This usually happens automatically.
  3. Tap on the inscription “My Music”.
  4. Click on the hyperlink that says “Show All”.
  5. Click on the control labeled “Create playlist”.
  6. Fill out the form that appears on the display of your mobile device.

It is done. Fast, simple and very convenient. True, this technique is not very popular. It is much easier to achieve your goal with the help of the first guide you study.

Window for creating a playlist in VK

Publishing a playlist

This functionality is available not only for your personal page.

Adding a playlist to a group

Owners and administrators of VKontakte communities can also create music selections for their subscribers.

First of all, you need to activate this function.

Go to the desired group and go to the “Management” section.

'Chapter
"Management" section in the group

Now go to the “Sections” tab. Here we find the “Audio Recordings” item and set its status to “Open”.

Activating audio recordings in the group
Activating audio recordings in the group

Save the settings and return to the main page of the community. Now the “Add audio recordings” item has appeared in the right menu block. Click on it.

Let's move on to adding music to the group
Let's move on to adding music to the group

Here, click on the “Add Playlist” button.

Adding a playlist to a group
Adding a playlist to a group

Then the whole procedure is similar to the one we discussed above.

Attached to post

Go to your wall and start creating a new post. At the bottom of the form, click on the “Audio Recording” icon.

Attaching music to a post
Attaching music to a post

A list of our audio recordings will open. You need to click on the “Select from other playlists” item, and then click on the name of the one you want. It will open automatically. To publish it, click “Attach playlist”.

Then we post the post.

How to edit a song on VK

In a VK playlist, you can edit each song individually.

To do this, you need to select the desired track (hover your mouse over it), editing buttons will appear next to it

Where,

  • “pencil” icon - edit title, description, genre, cover and enable/disable search for music in VK
  • “ellipsis” icon—deleting from a playlist, moving or copying to another playlist

Deleting, copying or moving a track in playlists is done by adding/removing a checkmark next to the name of the desired playlists

In the photo, the same track was added to 2 playlists at once by adding a “bird”

! In the same way, you can add a track from someone else’s account to your playlists.

VKPLS - Generating a streaming audio playlist from vk.com


I would like to share with the readers of Habrahabr a small web service (script) that I wrote for myself.

With the advent of social networks and their widespread use, users spend quite a lot of time online. Everyone loves music, but personally I can’t live without it. It so happened that I store my entire music collection in my VKontakte profile. Since I’m always up to date with new products, I don’t waste my time searching and downloading, and the ability to access my music from almost any gadget anywhere where there is Internet gives maximum convenience. I am very glad that those wooden days are gone when good internet was a luxury. There is no longer a need to store such information on your hard drive. I throw everything that is not confidential into the cloud.

I do most of my work on the computer, which means I need music like oxygen to concentrate on the tasks at hand. You turn on your favorite album in 5.1 and create. But there is one thing: to listen to music on VK.com, I have to go online, and if you go online, you will certainly receive a bunch of messages and get drawn into unwanted conversations. I am a kind and sympathetic person, so I cannot ignore my friends with their constant problems. But I need to concentrate on work, and all my music is where something always distracts me. I adore Linux, but I have never come across any normal plugins for music players or the players themselves for listening to music from VK.com. Then I decided that I needed to do something about this and in a couple of hours I created a small PHP script, which I called vkpls (it’s not hard to guess what I meant).

The essence of the script is to obtain direct links to audio recordings and generate a streaming playlist, the algorithm is outrageously simple, I tied it to VK.API:

To begin with, I created a Standalone application in the “For Developers” section and got rights to access audio recordings for it. After that, I needed to go through authorization to create an ACCESS_TOKEN, because... access to information about audio recordings (audio.get method in vk.api) is not possible via a simple POST or GET request.

Now I could, using old PHP tools, send a request with the parameters I was interested in without restrictions, and in response receive the information I was interested in in JSON format. The audio.get function returns a list of user or community audio recordings with all additional information. Bingo, this is exactly what I needed.

So, for example, in response to a request like this:

https://api.vk.com/method/audio.get?user_id=YOUR_ID&v=5.28&access_token=YOUR_ACCESS_TOKEN we receive an array in JSON format with the following information:
Response to audio.get in JSON
response: { count: 505, items: [{ id: '34', photo: 'https://cs7009.vk....2/rj4RvYLCobY.jpg', name: 'Tatyana Plutalova', name_gen: 'Tatyana' }, { id: 232745053, owner_id: 34, artist: 'Ambassadeurs', title: 'Sparks', duration: 274, url: 'https://cs6164.vk....lGEJhqRK8d5OQZngI', lyrics_id: 120266970, genre_id: 18 }, { id: 232733966, owner_id: 34, artist : 'Aloe Blacc', title: 'Can You Do This', duration: 176, url: 'https://cs6157.vk….erOa0DvsyOCYTPO1w', genre_id: 2 }, { id: 232735496, owner_id: 34, artist: 'Aloe Blacc', title: 'Wake Me Up', duration: 224, url: 'https://cs6109.vk....FzHJU55ixz8Av8ujc', lyrics_id: 119056069, genre_id: 2 }] } Look - the keys we are interested in are artist, title , duration, url are present for each audio recording. Using the json_decode function, I converted the resulting array into a format understandable for PHP. All I have left to achieve the result is to generate a playlist file.

M3U playlist structure:

#EXTM3U #EXTINF:
duration,artist — title url

There was nothing easier to write all the received data to a file using a foreach loop and save it in m3u. Hurray, everything worked out, now I can listen to music in any music player without the need for VKontakte authorization.

Summary

I decided to share my idea and make it accessible to people like me.
Using the CSS framework Maxmertkit (presented by one of the Habrahabr users here) I created a small page for ease of use of the script. It is available for everyone via the following link - VKPLS. There you can read the instructions or watch the video. It should be noted that there is one but. Due to the fact that links to audio recordings on Vkontakte servers change every 0.5 to 3 days, I recommend updating your playlist more often.

That's all, thanks for your attention.

mobile version

Some people are interested in how to make a playlist on VK via a mobile device. Let's assume that the user does not have an official application for the social network. What then?

The thing is that there is no way to cope with the task using the mobile version of VK. For this undertaking, the user will need to use the full version of the VKontakte website.

Some resort to third-party programs to create VK playlists. This is not the best solution - among them there are regularly scammers who scam people out of money and steal pages.

Rating
( 2 ratings, average 4 out of 5 )
Did you like the article? Share with friends:
For any suggestions regarding the site: [email protected]
Для любых предложений по сайту: [email protected]