SoundCloud shutting down in 24 hours!

Started by gavin, Aug 10, 2017, in Music Add to Reading List

  1. gavin
    Posts: 3,731
    Likes: 7,674
    Joined: Nov 4, 2015

    gavin I go fishing, alot.. https://catchpedia.com

    Aug 10, 2017
    Hence why I lack empathy to the whole situation.
     
    May 1, 2025
  2. KLD3816
    Posts: 4,291
    Likes: 8,792
    Joined: Dec 22, 2014

    KLD3816 Love yourz.

    Aug 10, 2017
    So much for Chance saving that s---.
     
    #22
    2
    Ordinary Joel and Sqrt Sqrt like this.
    2
    Ordinary Joel and Sqrt Sqrt like this.
    May 1, 2025
  3. gavin
    Posts: 3,731
    Likes: 7,674
    Joined: Nov 4, 2015

    gavin I go fishing, alot.. https://catchpedia.com

    Aug 10, 2017
    Hey guys check out my blog, it's f---ing dope.
    http://www.trapadan.com
     
    May 1, 2025
  4. Boos
    Posts: 11,402
    Likes: 19,130
    Joined: Feb 15, 2011

    Boos Nova Nation

    Aug 10, 2017
    Blog era was GOAT
     
    #24
    2
    Ordinary Joel and Sqrt Sqrt like this.
    2
    Ordinary Joel and Sqrt Sqrt like this.
    May 1, 2025
  5. Deadpool
    Posts: 40,384
    Likes: 102,183
    Joined: Dec 23, 2014

    Deadpool the end

    Aug 10, 2017
    He will soon feel the wrath of all SoundCloud fans

    [​IMG]
     
    May 1, 2025
  6. Boos
    Posts: 11,402
    Likes: 19,130
    Joined: Feb 15, 2011

    Boos Nova Nation

    Aug 10, 2017
    A ton of dope music will be lost though. Definitely gonna regret not getting out of bed to grab my laptop so I can download some s---, if it actually goes down
     
    #26
    2
    Ordinary Joel and Sqrt Sqrt like this.
    2
    Ordinary Joel and Sqrt Sqrt like this.
    May 1, 2025
  7. gavin
    Posts: 3,731
    Likes: 7,674
    Joined: Nov 4, 2015

    gavin I go fishing, alot.. https://catchpedia.com

    Aug 10, 2017
    I'm working on making a tool that will automatically download all of a users tracks right now, zip em and serve the download to you.
     
    May 1, 2025
  8. Boos
    Posts: 11,402
    Likes: 19,130
    Joined: Feb 15, 2011

    Boos Nova Nation

    Aug 10, 2017
    d---, that sounds fresh as s---. Mention me if you get that up.
     
    #28
    2
    Ordinary Joel and Sqrt Sqrt like this.
    2
    Ordinary Joel and Sqrt Sqrt like this.
    May 1, 2025
  9. aquaberryares
    Posts: 7,473
    Likes: 23,607
    Joined: Dec 23, 2014

    aquaberryares one time I made sex

    Aug 10, 2017
    Wouldn't have happened if sumone without a trash voice woulda saved it instead
     
    May 1, 2025
  10. Flacko
    Posts: 21,156
    Likes: 34,841
    Joined: Dec 1, 2014
    Location: LDN

    Flacko Too Blessed To Be Humble

    Aug 10, 2017
    audiomack boutta be feasting
     
    May 1, 2025
  11. gavin
    Posts: 3,731
    Likes: 7,674
    Joined: Nov 4, 2015

    gavin I go fishing, alot.. https://catchpedia.com

    Aug 10, 2017
     
    #31
    3
    Ordinary Joel, Trackz and Sqrt Sqrt like this.
    3
    Ordinary Joel, Trackz and Sqrt Sqrt like this.
    May 1, 2025
  12. relapse 2
    Posts: 5,631
    Likes: 5,338
    Joined: Jul 25, 2016

    Aug 10, 2017
    are u kidding me i just upped my dj set last night and im listening to some dope mixes welp time o rip what i can of soundcloud then
    :emoji_slight_frown:
     
    #32
    2
    Ordinary Joel and Sqrt Sqrt like this.
    2
    Ordinary Joel and Sqrt Sqrt like this.
    May 1, 2025
  13. TheTrueGeneral
    Posts: 8,194
    Likes: 16,959
    Joined: Jan 13, 2017

    TheTrueGeneral no complaints

    Aug 10, 2017
    [​IMG]
    ded
     
    May 1, 2025
  14. gavin
    Posts: 3,731
    Likes: 7,674
    Joined: Nov 4, 2015

    gavin I go fishing, alot.. https://catchpedia.com

    Aug 10, 2017
    Making progress, have download tracks + zipping working.
    Need to figure out why it's only downloading like 20 tracks if a user has 100 though..
     
    #34
    2
    Boos and Ordinary Joel like this.
    2
    Boos and Ordinary Joel like this.
    May 1, 2025
  15. Bourbon Ben
    Posts: 39,239
    Likes: 93,898
    Joined: Jan 23, 2016

    Bourbon Ben Mad pooper

    Aug 10, 2017
    [​IMG]
     
    #35
    1
    Ordinary Joel likes this.
    1
    Ordinary Joel likes this.
    May 1, 2025
  16. Pussy Monster 666
    Posts: 335
    Likes: 934
    Joined: Sep 25, 2016
    Location: p----

    Pussy Monster 666 I regret changing my username for a shitty meme

    Aug 10, 2017
    best news i've heard in a while
     
    #36
    2
    Bojack and Ordinary Joel like this.
    2
    Bojack and Ordinary Joel like this.
    May 1, 2025
  17. Proto
    Posts: 6,620
    Likes: 12,968
    Joined: Feb 15, 2011

    Proto drippin so pretty

    Aug 10, 2017
    what a shame it would be, since most soundcloud artists make better music than the popular mainstream artists
     
    #37
    1
    Ordinary Joel likes this.
    1
    Ordinary Joel likes this.
    May 1, 2025
  18. Soldier
    Posts: 29,047
    Likes: 55,349
    Joined: Mar 26, 2011

    Soldier big cuntry's alias

    Aug 10, 2017
    If this is true, lol @ Chance lame a--- claiming he saved SoundCloud
     
    #38
    1
    Ordinary Joel likes this.
    1
    Ordinary Joel likes this.
    May 1, 2025
  19. sheldon
    Posts: 9,422
    Likes: 21,120
    Joined: Jan 13, 2017

    Aug 10, 2017
    fml
     
    #39
    1
    Ordinary Joel likes this.
    1
    Ordinary Joel likes this.
    May 1, 2025
  20. gavin
    Posts: 3,731
    Likes: 7,674
    Joined: Nov 4, 2015

    gavin I go fishing, alot.. https://catchpedia.com

    Aug 10, 2017
    d--- SoundCloud made it to where you can't parse all contents of a users profile anymore..
    Regardless, I'm sure someone will view this and find it helpful but for now I'm calling it quits.

    PHP:
    <?php
    set_time_limit
    (0);
    ini_set('max_execution_time'0);
    $userid $_GET['id'];
    $profile 'https://api.soundcloud.com/users/'.$userid.'?client_id=';
    $profile_json file_get_contents($profile);
    $data json_decode($profile_json);
    $useraccount $data->id;

    $track 'https://api.soundcloud.com/users/'.$useraccount.'/tracks?client_id=';
    $track_json file_get_contents($track);
    $trackfo json_decode($track_json);

    $i 0;
    if (!
    file_exists('/path/sc/'.$userid.'')) {
        
    mkdir('/path/sc/'.$userid.''0777true);
    }
    define('DIRECTORY''/path/sc/'.$userid.'');
    foreach (
    $trackfo as $song) {
        
    $i++;
        
    $song_id $song->id;
        
    $title $song->title;
        
    $tracklocation file_get_contents('https://api.soundcloud.com/tracks/'.$song_id.'/stream?&client_id=');
        
    file_put_contents(DIRECTORY '/'.$title.'.mp3'$tracklocation);
    }

        
    $dir '/path/sc/'.$userid.'';
        
    $zip_file ''.$userid.'.zip';

        
    $rootPath realpath($dir);
        
    $zip = new ZipArchive();
        
    $zip->open($zip_fileZipArchive::CREATE ZipArchive::OVERWRITE);
        
    $files = new RecursiveIteratorIterator(
            new 
    RecursiveDirectoryIterator($rootPath),
            
    RecursiveIteratorIterator::LEAVES_ONLY
        
    );

        foreach (
    $files as $name => $file)
        {
            if (!
    $file->isDir())
        {
            
    $filePath $file->getRealPath();
            
    $relativePath substr($filePathstrlen($rootPath) + 1);
            
    $zip->addFile($filePath$relativePath);
        }
    }

    // Zip archive will be created only after closing object
    $zip->close();
    header('Content-Type: application/zip');
    header('Content-Disposition: attachment; filename='.basename($zip_file));
    header('Content-Length: ' filesize($zip_file));
    readfile($zip_file);
    unlink($zip_file);
    ?>
    I can't figure out what they're doing or maybe it's something I'm doing incorrectly but I can't imagine it is because the zip completely downloads with all of the songs from a users profile.

    [​IMG]

    However it is missing like 5 tracks, and because of that it returns an error in the zip process.
     
    #40
    3
    Boos, Deadpool and Ordinary Joel like this.
    3
    Boos, Deadpool and Ordinary Joel like this.
    May 1, 2025