Skip to content

Commit

Permalink
Update device.js
Browse files Browse the repository at this point in the history
parseString is deprecated
  • Loading branch information
chalkers committed Sep 14, 2014
1 parent 3b70f50 commit 29ae123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/airplay/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var Device = function(id, info, opt_readyCallback) {
// TODO: support passwords

self.client_.get('/server-info', function(res) {
plist.parseString(res.body, function(err, obj) {
plist.parse(res.body, function(err, obj) {
var el = obj[0];
self.serverInfo_ = {
deviceId: el.deviceid,
Expand Down Expand Up @@ -96,7 +96,7 @@ Device.prototype.default = function(callback) {
Device.prototype.status = function(callback) {
this.client_.get('/playback-info', function(res) {
if (res) {
plist.parseString(res.body, function(err, obj) {
plist.parse(res.body, function(err, obj) {
var el = obj[0];
var result = {
duration: el.duration,
Expand Down

0 comments on commit 29ae123

Please sign in to comment.