{"action":"created","issue":{"url":"https://api.github.com/repos/Grandt/PHPePub/issues/36","repository_url":"https://api.github.com/repos/Grandt/PHPePub","labels_url":"https://api.github.com/repos/Grandt/PHPePub/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/Grandt/PHPePub/issues/36/comments","events_url":"https://api.github.com/repos/Grandt/PHPePub/issues/36/events","html_url":"https://github.com/Grandt/PHPePub/issues/36","id":132174160,"number":36,"title":"Two first chapters having the same id","user":{"login":"tcitworld","id":2197836,"avatar_url":"https://avatars.githubusercontent.com/u/2197836?v=3","gravatar_id":"","url":"https://api.github.com/users/tcitworld","html_url":"https://github.com/tcitworld","followers_url":"https://api.github.com/users/tcitworld/followers","following_url":"https://api.github.com/users/tcitworld/following{/other_user}","gists_url":"https://api.github.com/users/tcitworld/gists{/gist_id}","starred_url":"https://api.github.com/users/tcitworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcitworld/subscriptions","organizations_url":"https://api.github.com/users/tcitworld/orgs","repos_url":"https://api.github.com/users/tcitworld/repos","events_url":"https://api.github.com/users/tcitworld/events{/privacy}","received_events_url":"https://api.github.com/users/tcitworld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-08T15:37:03Z","updated_at":"2016-02-21T08:31:37Z","closed_at":null,"body":"Hi,\r\n\r\n[wallabag](https://github.com/wallabag/wallabag/) uses PHPePub to produce epubs from articles.\r\n\r\nWe first add a custom cover as a chapter, then we're looping around our entries to produce a chapter for each entry.\r\nHowever, it seems the produced epub has it's first two chapters with the same id (1) in the book.opf file. Therefore, our first entry isn't shown since it has the same id as our cover.\r\n\r\nA workaround is to set `$this->chapterCount` to 1, but I can't get to understand why this happens."},"comment":{"url":"https://api.github.com/repos/Grandt/PHPePub/issues/comments/186775282","html_url":"https://github.com/Grandt/PHPePub/issues/36#issuecomment-186775282","issue_url":"https://api.github.com/repos/Grandt/PHPePub/issues/36","id":186775282,"user":{"login":"Grandt","id":1094427,"avatar_url":"https://avatars.githubusercontent.com/u/1094427?v=3","gravatar_id":"","url":"https://api.github.com/users/Grandt","html_url":"https://github.com/Grandt","followers_url":"https://api.github.com/users/Grandt/followers","following_url":"https://api.github.com/users/Grandt/following{/other_user}","gists_url":"https://api.github.com/users/Grandt/gists{/gist_id}","starred_url":"https://api.github.com/users/Grandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grandt/subscriptions","organizations_url":"https://api.github.com/users/Grandt/orgs","repos_url":"https://api.github.com/users/Grandt/repos","events_url":"https://api.github.com/users/Grandt/events{/privacy}","received_events_url":"https://api.github.com/users/Grandt/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T08:31:36Z","updated_at":"2016-02-21T08:31:36Z","body":"P.S.: For a minimum impact of your current code, at least until I'm ready to release 4.0.6, you can just uncomment the `$this->chapterCount = 0;` line in the `initialize` function."}}