{"action":"created","issue":{"url":"https://api.github.com/repos/an-rahulpandey/cordova-plugin-mediapicker/issues/17","repository_url":"https://api.github.com/repos/an-rahulpandey/cordova-plugin-mediapicker","labels_url":"https://api.github.com/repos/an-rahulpandey/cordova-plugin-mediapicker/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/an-rahulpandey/cordova-plugin-mediapicker/issues/17/comments","events_url":"https://api.github.com/repos/an-rahulpandey/cordova-plugin-mediapicker/issues/17/events","html_url":"https://github.com/an-rahulpandey/cordova-plugin-mediapicker/issues/17","id":222440091,"number":17,"title":"Error Response for DRM","user":{"login":"Hendrikv1990","id":3264074,"avatar_url":"https://avatars3.githubusercontent.com/u/3264074?v=4","gravatar_id":"","url":"https://api.github.com/users/Hendrikv1990","html_url":"https://github.com/Hendrikv1990","followers_url":"https://api.github.com/users/Hendrikv1990/followers","following_url":"https://api.github.com/users/Hendrikv1990/following{/other_user}","gists_url":"https://api.github.com/users/Hendrikv1990/gists{/gist_id}","starred_url":"https://api.github.com/users/Hendrikv1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hendrikv1990/subscriptions","organizations_url":"https://api.github.com/users/Hendrikv1990/orgs","repos_url":"https://api.github.com/users/Hendrikv1990/repos","events_url":"https://api.github.com/users/Hendrikv1990/events{/privacy}","received_events_url":"https://api.github.com/users/Hendrikv1990/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-18T14:42:16Z","updated_at":"2017-09-26T11:24:11Z","closed_at":null,"author_association":"NONE","body":"When an item is not downloaded from iTunes on the Phone, the songurl returns nil. But the Error message returns \"This song is protected by Digital Rights Management (DRM) and cannot be accessed.\" which is then not accurate.\r\n\r\nAfter it's actually downloaded, the error disappears. Although left already in a confused state about the DRM error.. ( code below )\r\n\r\nIs it possible to identify the DRM in a different way or somehow adjust this if statement? Would greatly appreciate it since we would otherwise overwrite this string in our code :)\r\n\r\nThanks\r\n\r\n`if(!songurl){\r\n               plresult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@“This song is protected by Digital Rights Management (DRM) and cannot be accessed.“];\r\n               [self.commandDelegate sendPluginResult:plresult callbackId:callbackID];\r\n               break;\r\n           }`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/an-rahulpandey/cordova-plugin-mediapicker/issues/comments/332168216","html_url":"https://github.com/an-rahulpandey/cordova-plugin-mediapicker/issues/17#issuecomment-332168216","issue_url":"https://api.github.com/repos/an-rahulpandey/cordova-plugin-mediapicker/issues/17","id":332168216,"user":{"login":"Hendrikv1990","id":3264074,"avatar_url":"https://avatars3.githubusercontent.com/u/3264074?v=4","gravatar_id":"","url":"https://api.github.com/users/Hendrikv1990","html_url":"https://github.com/Hendrikv1990","followers_url":"https://api.github.com/users/Hendrikv1990/followers","following_url":"https://api.github.com/users/Hendrikv1990/following{/other_user}","gists_url":"https://api.github.com/users/Hendrikv1990/gists{/gist_id}","starred_url":"https://api.github.com/users/Hendrikv1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hendrikv1990/subscriptions","organizations_url":"https://api.github.com/users/Hendrikv1990/orgs","repos_url":"https://api.github.com/users/Hendrikv1990/repos","events_url":"https://api.github.com/users/Hendrikv1990/events{/privacy}","received_events_url":"https://api.github.com/users/Hendrikv1990/received_events","type":"User","site_admin":false},"created_at":"2017-09-26T11:24:11Z","updated_at":"2017-09-26T11:24:11Z","author_association":"NONE","body":"Ok thanks for your help.. Currently we just tell people to download the songs on their devices before using the app. But not that user friendly."}}
{"actor":{"display_login":"Hendrikv1990"}}