{"action":"created","issue":{"url":"https://api.github.com/repos/tboothman/imdbphp/issues/38","labels_url":"https://api.github.com/repos/tboothman/imdbphp/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/tboothman/imdbphp/issues/38/comments","events_url":"https://api.github.com/repos/tboothman/imdbphp/issues/38/events","html_url":"https://github.com/tboothman/imdbphp/issues/38","id":114497915,"number":38,"title":"Method quotes returns nothing","user":{"login":"duck7000","id":15360048,"avatar_url":"https://avatars.githubusercontent.com/u/15360048?v=3","gravatar_id":"","url":"https://api.github.com/users/duck7000","html_url":"https://github.com/duck7000","followers_url":"https://api.github.com/users/duck7000/followers","following_url":"https://api.github.com/users/duck7000/following{/other_user}","gists_url":"https://api.github.com/users/duck7000/gists{/gist_id}","starred_url":"https://api.github.com/users/duck7000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duck7000/subscriptions","organizations_url":"https://api.github.com/users/duck7000/orgs","repos_url":"https://api.github.com/users/duck7000/repos","events_url":"https://api.github.com/users/duck7000/events{/privacy}","received_events_url":"https://api.github.com/users/duck7000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-01T22:44:21Z","updated_at":"2015-11-02T09:22:47Z","closed_at":null,"body":"This method is broken due to site changes i guess\r\n\r\npage source looks like this:\r\n\r\n```\r\n<div id=\"qt0396883\" class=\"quote soda sodavote odd\" ><div class=\"sodatext\">\r\n<p>\r\n<a href=\"/name/nm0000131/?ref_=tt_trv_qu\"\r\n><span class=\"character\">Mike Enslin</span></a>:\r\n[<span class=\"fine\">Olin gives Enslin the room key</span>]\r\nMost hotels have switched to magnetics. An actual key. That's a nice touch, it's antiquey. </p>\r\n```\r\n\r\nthe preg_match like this\r\n```\r\npreg_match_all('!class=\"quote soda (odd|even)\"\\s*><p>\\s*(.*?)\\s*</p>\\s*<div class=!ims',str_replace(\"\\n\",\" \",$this->page[\"Quotes\"]),$matches)\r\n\r\n```\r\n\r\nI tried to fix it myself but my skills with preg_match are slim.\r\nobviously the class name is wrong but that is as far as i get\r\n\r\nThanks\r\nEd"},"comment":{"url":"https://api.github.com/repos/tboothman/imdbphp/issues/comments/152966846","html_url":"https://github.com/tboothman/imdbphp/issues/38#issuecomment-152966846","issue_url":"https://api.github.com/repos/tboothman/imdbphp/issues/38","id":152966846,"user":{"login":"duck7000","id":15360048,"avatar_url":"https://avatars.githubusercontent.com/u/15360048?v=3","gravatar_id":"","url":"https://api.github.com/users/duck7000","html_url":"https://github.com/duck7000","followers_url":"https://api.github.com/users/duck7000/followers","following_url":"https://api.github.com/users/duck7000/following{/other_user}","gists_url":"https://api.github.com/users/duck7000/gists{/gist_id}","starred_url":"https://api.github.com/users/duck7000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duck7000/subscriptions","organizations_url":"https://api.github.com/users/duck7000/orgs","repos_url":"https://api.github.com/users/duck7000/repos","events_url":"https://api.github.com/users/duck7000/events{/privacy}","received_events_url":"https://api.github.com/users/duck7000/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T09:22:47Z","updated_at":"2015-11-02T09:22:47Z","body":"Thanks for the quick reply\r\n\r\nI'm sorry if i'm not detailed enough but here is the whole code\r\n\r\n```\r\n<div id=\"qt0396883\" class=\"quote soda sodavote odd\" ><div class=\"sodatext\">\r\n<p>\r\n<a href=\"/name/nm0000131/?ref_=tt_trv_qu\"\r\n><span class=\"character\">Mike Enslin</span></a>:\r\n[<span class=\"fine\">Olin gives Enslin the room key</span>]\r\nMost hotels have switched to magnetics. An actual key. That's a nice touch, it's antiquey. </p><p>\r\n<a href=\"/name/nm0000168/?ref_=tt_trv_qu\"\r\n><span class=\"character\">Gerald Olin</span></a>:\r\nWe have magnetic cards also, but electronics don't seem to work in 1408. Hope you don't have a pacemaker. </p><p>\r\n<a href=\"/name/nm0000131/?ref_=tt_trv_qu\"\r\n><span class=\"character\">Mike Enslin</span></a>:\r\n[<span class=\"fine\">into his tape recorder</span>]\r\nGeneral manager claims that the phantom in room interferes... </p><p>\r\n<a href=\"/name/nm0000168/?ref_=tt_trv_qu\"\r\n><span class=\"character\">Gerald Olin</span></a>:\r\nI have *never* used the word \"phantom.\" </p><p>\r\n<a href=\"/name/nm0000131/?ref_=tt_trv_qu\"\r\n><span class=\"character\">Mike Enslin</span></a>:\r\nOh, I'm sorry. Uh, spirit? Specter? </p><p>\r\n<a href=\"/name/nm0000168/?ref_=tt_trv_qu\"\r\n><span class=\"character\">Gerald Olin</span></a>:\r\nNo, you misunderstand. Whatever's in 1408 is nothing like that. </p><p>\r\n<a href=\"/name/nm0000131/?ref_=tt_trv_qu\"\r\n><span class=\"character\">Mike Enslin</span></a>:\r\nThen what is it? </p><p>\r\n<a href=\"/name/nm0000168/?ref_=tt_trv_qu\"\r\n><span class=\"character\">Gerald Olin</span></a>:\r\nIt's an evil fucking room. </p></div>\r\n\r\n```\r\n\r\nI will try your second solution, if that works fine i strip those p tags off in my program\r\nThanks \r\nEd"}}