{"action":"created","issue":{"url":"https://api.github.com/repos/Connexions/cnx-epub/issues/40","labels_url":"https://api.github.com/repos/Connexions/cnx-epub/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/Connexions/cnx-epub/issues/40/comments","events_url":"https://api.github.com/repos/Connexions/cnx-epub/issues/40/events","html_url":"https://github.com/Connexions/cnx-epub/pull/40","id":60126984,"number":40,"title":"Fix metadata title xpath to use @data-type='document-title'","user":{"login":"pumazi","id":168470,"avatar_url":"https://avatars.githubusercontent.com/u/168470?v=3","gravatar_id":"","url":"https://api.github.com/users/pumazi","html_url":"https://github.com/pumazi","followers_url":"https://api.github.com/users/pumazi/followers","following_url":"https://api.github.com/users/pumazi/following{/other_user}","gists_url":"https://api.github.com/users/pumazi/gists{/gist_id}","starred_url":"https://api.github.com/users/pumazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pumazi/subscriptions","organizations_url":"https://api.github.com/users/pumazi/orgs","repos_url":"https://api.github.com/users/pumazi/repos","events_url":"https://api.github.com/users/pumazi/events{/privacy}","received_events_url":"https://api.github.com/users/pumazi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T16:47:09Z","updated_at":"2015-03-09T16:36:58Z","closed_at":"2015-03-06T17:25:46Z","pull_request":{"url":"https://api.github.com/repos/Connexions/cnx-epub/pulls/40","html_url":"https://github.com/Connexions/cnx-epub/pull/40","diff_url":"https://github.com/Connexions/cnx-epub/pull/40.diff","patch_url":"https://github.com/Connexions/cnx-epub/pull/40.patch"},"body":"Fixes #37"},"comment":{"url":"https://api.github.com/repos/Connexions/cnx-epub/issues/comments/77890482","html_url":"https://github.com/Connexions/cnx-epub/pull/40#issuecomment-77890482","issue_url":"https://api.github.com/repos/Connexions/cnx-epub/issues/40","id":77890482,"user":{"login":"reedstrm","id":253212,"avatar_url":"https://avatars.githubusercontent.com/u/253212?v=3","gravatar_id":"","url":"https://api.github.com/users/reedstrm","html_url":"https://github.com/reedstrm","followers_url":"https://api.github.com/users/reedstrm/followers","following_url":"https://api.github.com/users/reedstrm/following{/other_user}","gists_url":"https://api.github.com/users/reedstrm/gists{/gist_id}","starred_url":"https://api.github.com/users/reedstrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reedstrm/subscriptions","organizations_url":"https://api.github.com/users/reedstrm/orgs","repos_url":"https://api.github.com/users/reedstrm/repos","events_url":"https://api.github.com/users/reedstrm/events{/privacy}","received_events_url":"https://api.github.com/users/reedstrm/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T16:36:58Z","updated_at":"2015-03-09T16:36:58Z","body":"Merging this PR seems to have broken publishing. Getting:\r\n  File \"/opt/dev/cnx-publishing/cnxpublishing/views.py\", line 57, in publish\r\n    cursor, epub, epub_upload, is_pre_publication)\r\n  File \"/opt/dev/cnx-publishing/cnxpublishing/db.py\", line 660, in add_publication\r\n    binder = cnxepub.adapt_package(package)\r\n  File \"/opt/dev/cnx-epub/cnxepub/adapters.py\", line 47, in adapt_package\r\n    tree = parse_navigation_html_to_tree(html, navigation_item.name)\r\n  File \"/opt/dev/cnx-epub/cnxepub/html_parsers.py\", line 32, in parse_navigation_html_to_tree\r\n    'title': xpath('//*[@data-type=\"document-title\"]/text()')[0],\r\nIndexError: list index out of range\r\n"}}