Internet Media Player 4

    Everyone loves the social network VKontakte, but the best feature for most is access to a huge database of media information, like music and video. Recently, more than a dozen services and programs have appeared that make it easier to find media content and download it to disk. But in each of them there was some small flaw, because of which I had to look for an alternative version. As a result, I had 3-4 service programs in my use for searching and downloading music files from VK. In life, there is such a principle, something does not suit you - do it better, and now, when it comes to studying the VK API, I decided to try to do what would suit me in one set.


    Background


    It all started with the usual VK IFrame application, so it so happened that I put the emphasis on HTML instead of Flash, and okay, AIR adjusted everything. The API mastered quickly, wrote a program (if anyone is interested ), but the result did not even reach analogues on the same VK.
    Luckily, I learned about Adobe AIR, which allows you to write desktop applications using Web technologies. This meant closer integration with the computer (for example, for the correct naming of downloaded files). The web version port on AIR went quickly and without problems, but I had to torment myself with the transition from VK API to VK Desktop API. For many analogues (AIR applications for Vkontakte search), the operation algorithms consist in sending a request to regular pages (search.php) followed by parsing the page, I decided to try the Desktop API in action, and using the debugging tools made it work as it should. If anyone is interested in the development process, I will describe it later.

    Music







    In the music section, there is a search that provides the ability to search for an artist in the following services:
    • LastFM Top 50 - a list of 50 popular songs by the artist according to Last FM
    • LastFM Top Albums - a list of popular artist albums according to Last FM (when you click on an album, the list of tracks in it is loaded)
    • LastFM Similar Artists - a list of similar artists by genre with Last FM (when you click on an artist, Top 50 of its tracks are loaded)
    • Discogs Releases - a list of artist releases on media with Discogs (when you click on a release, a list of tracks from it is loaded)
    • Discogs Label Releases - list of label releases (when clicked, the list of tracks is loaded)


    Live-search works with Last FM in the search line, when choosing an artist in the Live Search line, Top 50 of its tracks are loaded. If the artist was not found during the search, the first search result for this query on Last FM is selected.

    After loading the tracks, when you click on it, an intelli search in the contact occurs, choosing the most popular option from the last hundred, with the same popularity, the longest one is selected. After loading a track into the cache, information about the track (size, bit rate) becomes available. In the drop-down menu (right-click) you can select the following options:
    • Download - Download the track to a folder on the local drive (cached tracks download instantly, if several tracks are put in a row in a row, they are added to the queue)
    • Change - Change the source (in fact, the same track is now searched by sorting by duration - descending. Thus, there are various remixes on the track (search decrement - 4 seconds)
    • Remove - Remove a track from the list.

    Further menu items serve as links to the relevant search options (by artist).

    Another function of the program is the top of Russian radio, later foreign radio stations will be added.

    Video





    At the moment, video search is available for 3 services:
    • YouTube - 48 tracks are loaded at a time, to download the next, you need to click the button below.
    • RuTube - Loads 20 tracks at a time (may be unstable, due to the moronic API that this service provides (document.write, script.src, etc.)
    • Vkontakte - provides a search by the last loaded ones (search either only in the title - left results are discarded, or in the description too - more results), or by duration (in this case, the search goes through all available tracks in the API of which - the first 1000 (but in fact smaller).


    Settings


    The settings tab allows you to configure the folder for downloading music files and contains a link to the VK account registration page.

    Plans


    There are plans to make it possible to download videos, rip a music track out of a video, playlists, work with local files and much more.

    Download


    The AIR as Adobe (it is necessary to run the program)

    Dropbox
    Rapidshare (10 times)
    Sendfile
    Webdev4us (may fall)


    Conclusion


    The author of this development kolor

    Also popular now: