SoundCloud有些stream_url用404响应

时间:2014-07-21 15:21:30

标签: soundcloud

对于越来越多的曲目,当我尝试从服务器获取streamUrl时,我收到404 Not found错误。以下是跟踪元数据的示例:

{
    "artwork_url" = "https://i1.sndcdn.com/artworks-000085702287-cv13f5-large.jpg?e76cf77";
    "attachments_uri" = "https://api.soundcloud.com/tracks/159486887/attachments";
    "comment_count" = 4;
    commentable = 1;
    "created_at" = "2014/07/20 09:44:24 +0000";
    description = "As premiered by Friction on BBC Radio 1 & 1Xtra.\n\nIt\U2019s time for some no nonsense drum & bass on MTA Records, courtesy of Mob Tactics with \U2018The Answer\U2019 EP. The duo seem to be a name on people\U2019s lips more and more of late. Already renowned for their own inimitable style of techy \U2013 yet very funky, dance-floor orientated drum & bass, the duo appear to be going from strength-to-strength with each release, and \U2018The Answer\U2019 EP takes them in to a musical world which they have not yet explored.\n\n\U2018The Answer\U2019 EP is set to turn some heads, with the tracks already firm staples in the sets of Chase & Status, Andy C & Friction to name but a few, and the demand for them on the DJ circuit is rapidly gaining momentum. \U2018The Answer\U2019 EP will be released as a Beatport exclusive 28th July.\n\nMob Tactics:\nhttp://facebook.com/MobTacticsMusic\nhttp://soundcloud.com/mob-tactics\nhttp://twitter.com/Mob_Tactics";
    "download_count" = 0;
    downloadable = 0;
    duration = 248002;
    "embeddable_by" = all;
    "favoritings_count" = 43;
    genre = "Drum & Bass";
    id = 159486887;
    kind = track;
    license = "all-rights-reserved";
    "original_content_size" = 12521587;
    "original_format" = mp3;
    permalink = "mob-tactics-mirror-mirror-1";
    "permalink_url" = "http://soundcloud.com/mtarecords/mob-tactics-mirror-mirror-1";
    "playback_count" = 398;
    sharing = public;
    state = finished;
    "stream_url" = "https://api.soundcloud.com/tracks/159486887/stream";
    streamable = 1;
    "tag_list" = "";
    title = "Mob Tactics - Mirror Mirror";
    uri = "https://api.soundcloud.com/tracks/159486887";
    user =     {
        "avatar_url" = "https://i1.sndcdn.com/avatars-000070023934-p6ghqx-large.jpg?e76cf77";
        id = 260041;
        kind = user;
        permalink = mtarecords;
        "permalink_url" = "http://soundcloud.com/mtarecords";
        uri = "https://api.soundcloud.com/users/260041";
        username = "MTA Records";
    };
    "user_favorite" = 0;
    "user_id" = 260041;
    "user_playback_count" = 1;
    "waveform_url" = "https://w1.sndcdn.com/h0xcO78NsIsL_m.png";
}

但是当我尝试在这个方法的帮助下获取流时调用:

id obj = [SCRequest performMethod:SCRequestMethodGET
                       onResource:track.stream_url
                  usingParameters:nil
                      withAccount:[SCSoundCloud account]
           sendingProgressHandler:^(unsigned long long bytesSend, unsigned long long bytesTotal) {
               NSLog(@"%llu", bytesTotal / bytesSend);
           }
                  responseHandler:^(NSURLResponse *response, NSData *responseData, NSError *error) {
                      if (error) {
                          NSLog(@"%@ ->\n    %@", url, error.description);
                      } else {
                          NSSound *player = [[NSSound alloc] initWithData:responseData];
                          [delegate apiController:[APIController sharedController] didFinishWithPlayer:player];
                      }
                  }
          ];

我总是收到这个错误:

https://api.soundcloud.com/tracks/159486887/stream ->
    Error Domain=NXOAuth2HTTPErrorDomain Code=404 "HTTP Error: 404" UserInfo=0x61800027a5c0 {NSLocalizedDescription=HTTP Error: 404}

令人遗憾的是,我无法收听一半的曲目,即使它们被标记为:streamable = 1;

0 个答案:

没有答案