Permalink
Browse files

Update to work with latest itunes

  • Loading branch information...
1 parent e0eeb89 commit 8f3c7d01c7bb89f86ac9fd25be83695789a04a4e @marcusramberg committed Apr 14, 2009
@@ -23,7 +23,9 @@
use XML::TreePP;
my $tpp = XML::TreePP->new();
my $doc=$tpp->parsefile($backupdir.$newest.'/Manifest.plist');
-my $blob=$doc->{plist}->{dict}->{data}->[2] || die('Could not parse manifest. Invalid XML data?');
+my $blob=$doc->{plist}->{dict}->{data}->[2] ||
+ $doc->{plist}->{dict}->{data}->[1]
+ || terminate('Could not parse manifest: '.$backupdir.$newest.'/Manifest.plist. Invalid XML data?');
my $plist_data=$reader->open_string(decode_base64($blob))->data;
my @apps;

0 comments on commit 8f3c7d0

Please sign in to comment.