We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca0effe + 05860b2 commit c7d95b9Copy full SHA for c7d95b9
index.js
@@ -217,10 +217,17 @@ const CLEAN = exports.CLEAN = {
217
},
218
219
owner: function (object) {
220
- return {
221
- name: object[0]["itunes:name"][0],
222
- email: object[0]["itunes:email"][0]
+ let ownerObject = {}
+
+ if (object[0].hasOwnProperty("itunes:name")) {
223
+ ownerObject.name = object[0]["itunes:name"][0]
224
}
225
226
+ if (object[0].hasOwnProperty("itunes:email")) {
227
+ ownerObject.email = object[0]["itunes:email"][0]
228
+ }
229
230
+ return ownerObject
231
232
233
lastUpdated: function (string) {
0 commit comments