V
V
vitrym2017-10-21 18:22:53
API
vitrym, 2017-10-21 18:22:53

How to process m3u file and recover deleted mp3 files?

There was a large library of music accumulated over many years.
Before the copies were made, all the music was gone along with the hard drive.
All that's left is an m3u file with all the music. (playlist)
Are there services or software that can parse this m3u file, and find and download mp3 by file names and sort it into folders accordingly, as it goes in m3u?
So far I see only 1 scenario - to write the parser myself. If the name is explicit "Author-Composition Name"
and the track can be found online, then download it from the same VK, or other aggregators.
file structure (suddenly someone already forgot that m3u :-))) )
#EXTM3U
Music/Soviet Union/003 V. Obodzinsky - These eyes are opposite.mp3
Music/Soviet Union/006 True friends - Blue frost.mp3
Music/Soviet Union/008 A.German - Nadezhda.mp3
Music/Soviet Union/010 V.Legkostupova - Raspberry Berry.mp3
Music/Soviet Union/011 M.Kristalinskaya - And it's snowing.mp3
...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Serezha, 2017-10-21
@vitrym

Parse m3u into json (or other format that is convenient) a list like this:

[{path: "dirname/dirname/dirname", name: "Алла Пугачева - миллион алых роз"},
{path: "dirname/dirname/dirname", name: "Стекловата - Новый год"}]

Then run through the list using the api api.xn--41a.ws search method, take the first result from the response, shove it into the get.audio method, download it to the folder from object.path.
You can do it in half an hour, on nodejs for example. Convenient lib for downloading https://www.npmjs.com/package/download , I solved a similar problem with it not so long ago.

V
vitrym, 2017-10-21
@vitrym

Oh Sergey! This is exactly what you need!!!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question