{"action":"opened","issue":{"url":"https://api.github.com/repos/dylang/node-rss/issues/39","labels_url":"https://api.github.com/repos/dylang/node-rss/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/dylang/node-rss/issues/39/comments","events_url":"https://api.github.com/repos/dylang/node-rss/issues/39/events","html_url":"https://github.com/dylang/node-rss/issues/39","id":53814945,"number":39,"title":"confusing documentation: first time running app fails","user":{"login":"coleGillespie","id":745064,"avatar_url":"https://avatars.githubusercontent.com/u/745064?v=3","gravatar_id":"","url":"https://api.github.com/users/coleGillespie","html_url":"https://github.com/coleGillespie","followers_url":"https://api.github.com/users/coleGillespie/followers","following_url":"https://api.github.com/users/coleGillespie/following{/other_user}","gists_url":"https://api.github.com/users/coleGillespie/gists{/gist_id}","starred_url":"https://api.github.com/users/coleGillespie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coleGillespie/subscriptions","organizations_url":"https://api.github.com/users/coleGillespie/orgs","repos_url":"https://api.github.com/users/coleGillespie/repos","events_url":"https://api.github.com/users/coleGillespie/events{/privacy}","received_events_url":"https://api.github.com/users/coleGillespie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-08T23:24:16Z","updated_at":"2015-01-08T23:24:16Z","closed_at":null,"body":"maybe you can help me understand how to fix this\r\n\r\n![screen shot 2015-01-08 at 6 22 36 pm](https://cloud.githubusercontent.com/assets/745064/5672908/612a2456-9763-11e4-988f-69b95dd3e7f1.png)\r\n\r\nrunning app.js:\r\n\r\n```javascript\r\nvar RSS = require('rss');\r\n\r\n/* lets create an rss feed */\r\nvar feed = new RSS({\r\n    title: 'title',\r\n    description: 'description',\r\n    feed_url: 'http://example.com/rss.xml',\r\n    site_url: 'http://example.com',\r\n    image_url: 'http://example.com/icon.png',\r\n    docs: 'http://example.com/rss/docs.html',\r\n    managingEditor: 'Dylan Greene',\r\n    webMaster: 'Dylan Greene',\r\n    copyright: '2013 Dylan Greene',\r\n    language: 'en',\r\n    categories: ['Category 1','Category 2','Category 3'],\r\n    pubDate: 'May 20, 2012 04:00:00 GMT',\r\n    ttl: '60',\r\n    customNamespaces: {\r\n      'itunes': 'http://www.itunes.com/dtds/podcast-1.0.dtd'\r\n    },\r\n    custom: [\r\n      {'itunes:subtitle': 'A show about everything'},\r\n      {'itunes:author': 'John Doe'},\r\n      {'itunes:summary': 'All About Everything is a show about everything. Each week we dive into any subject known to man and talk about it as much as we can. Look for our podcast in the Podcasts app or in the iTunes Store'},\r\n      {'itunes:owner': [\r\n        {'itunes:name': 'John Doe'},\r\n        {'itunes:email': 'john.doe@example.com'}\r\n      ]},\r\n      {'itunes:image': {\r\n        _attr: {\r\n          href: 'http://example.com/podcasts/everything/AllAboutEverything.jpg'\r\n        }\r\n      }},\r\n      {'itunes:category': [\r\n        {_attr: {\r\n          text: 'Technology'\r\n        }},\r\n        {'itunes:category': {\r\n          _attr: {\r\n            text: 'Gadgets'\r\n          }\r\n        }}\r\n      ]}\r\n    ]\r\n});\r\n\r\n/* loop over data and add to feed */\r\nfeed.item({\r\n    title:  'item title',\r\n    description: 'use this for the content. It can include html.',\r\n    url: 'http://example.com/article4?this&that', // link to the item\r\n    guid: '1123', // optional - defaults to url\r\n    categories: ['Category 1','Category 2','Category 3','Category 4'], // optional - array of item categories\r\n    author: 'Guest Author', // optional - defaults to feed author property\r\n    date: 'May 27, 2012', // any format that js Date can parse.\r\n    lat: 33.417974, //optional latitude field for GeoRSS\r\n    long: -111.933231, //optional longitude field for GeoRSS\r\n    enclosure: {url:'...', file:'path-to-file'}, // optional enclosure\r\n    custom: [\r\n      {'itunes:author': 'John Doe'},\r\n      {'itunes:subtitle': 'A short primer on table spices'},\r\n      {'itunes:image': {\r\n        _attr: {\r\n          href: 'http://example.com/podcasts/everything/AllAboutEverything/Episode1.jpg'\r\n        }\r\n      }},\r\n      {'itunes:duration': '7:04'}\r\n    ]\r\n});\r\n\r\n// cache the xml to send to clients\r\nvar xml = feed.xml();\r\n```"}}