{"action":"created","issue":{"url":"https://api.github.com/repos/ArdiArtani/Photo-Google-Player-Script/issues/21","repository_url":"https://api.github.com/repos/ArdiArtani/Photo-Google-Player-Script","labels_url":"https://api.github.com/repos/ArdiArtani/Photo-Google-Player-Script/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ArdiArtani/Photo-Google-Player-Script/issues/21/comments","events_url":"https://api.github.com/repos/ArdiArtani/Photo-Google-Player-Script/issues/21/events","html_url":"https://github.com/ArdiArtani/Photo-Google-Player-Script/issues/21","id":347595710,"node_id":"MDU6SXNzdWUzNDc1OTU3MTA=","number":21,"title":"cache??","user":{"login":"d4lv","id":14338811,"node_id":"MDQ6VXNlcjE0MzM4ODEx","avatar_url":"https://avatars0.githubusercontent.com/u/14338811?v=4","gravatar_id":"","url":"https://api.github.com/users/d4lv","html_url":"https://github.com/d4lv","followers_url":"https://api.github.com/users/d4lv/followers","following_url":"https://api.github.com/users/d4lv/following{/other_user}","gists_url":"https://api.github.com/users/d4lv/gists{/gist_id}","starred_url":"https://api.github.com/users/d4lv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4lv/subscriptions","organizations_url":"https://api.github.com/users/d4lv/orgs","repos_url":"https://api.github.com/users/d4lv/repos","events_url":"https://api.github.com/users/d4lv/events{/privacy}","received_events_url":"https://api.github.com/users/d4lv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-08-04T07:15:15Z","updated_at":"2018-08-22T11:34:34Z","closed_at":null,"author_association":"NONE","body":"i need to put cache in this script is anyone can help me or will be update to script soon??"},"comment":{"url":"https://api.github.com/repos/ArdiArtani/Photo-Google-Player-Script/issues/comments/415002010","html_url":"https://github.com/ArdiArtani/Photo-Google-Player-Script/issues/21#issuecomment-415002010","issue_url":"https://api.github.com/repos/ArdiArtani/Photo-Google-Player-Script/issues/21","id":415002010,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTAwMjAxMA==","user":{"login":"Love656","id":32559246,"node_id":"MDQ6VXNlcjMyNTU5MjQ2","avatar_url":"https://avatars2.githubusercontent.com/u/32559246?v=4","gravatar_id":"","url":"https://api.github.com/users/Love656","html_url":"https://github.com/Love656","followers_url":"https://api.github.com/users/Love656/followers","following_url":"https://api.github.com/users/Love656/following{/other_user}","gists_url":"https://api.github.com/users/Love656/gists{/gist_id}","starred_url":"https://api.github.com/users/Love656/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Love656/subscriptions","organizations_url":"https://api.github.com/users/Love656/orgs","repos_url":"https://api.github.com/users/Love656/repos","events_url":"https://api.github.com/users/Love656/events{/privacy}","received_events_url":"https://api.github.com/users/Love656/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T11:34:34Z","updated_at":"2018-08-22T11:34:34Z","author_association":"NONE","body":"use that 👍 \r\n`\r\nset_time_limit(0);\r\nfunction curl($url) {\r\n\t$ch = curl_init();\r\n\tcurl_setopt_array($ch, array(\r\n\t\tCURLOPT_RETURNTRANSFER => true,\r\n\t\tCURLOPT_TIMEOUT => 0,\r\n\t\tCURLOPT_CONNECTTIMEOUT => 0,\r\n\t\tCURLOPT_SSL_VERIFYHOST => false,\r\n\t\tCURLOPT_SSL_VERIFYPEER => false,\r\n\t\tCURLOPT_URL => $url\r\n\t));\r\n\t$result = curl_exec($ch);\r\n\tcurl_close($ch);\r\n\treturn $result;\r\n}\r\n$url = trim(stripslashes(htmlspecialchars('https://www.rapidvideo.com/e/'.$source.'')));\r\nif (!$url) die();\r\n$code = explode('/', $url);\r\n$download_link = 'https://www.rapidvideo.com/d/' . $code[4];\r\npreg_match_all('/<a href=\"(.*)\" id=\"button-download\" class=\"(.*)\" style=\"(.*)\">/', curl($download_link), $matches);\r\nif (!$matches[1]) {\r\n\t$download_link = 'https://www.rapidvideo.com/v/' . $code[4];\r\n\tpreg_match('/<source src=\"(.*)\" type=\"(.*)\" title=\"(.*)\" data-res=\"(.*)\" \\/>/', curl($download_link), $matches);\r\n\t$video = array(\r\n\t\t'file' => $matches[1],\r\n\t\t'label' => 'Auto',\r\n\t\t'type' => $matches[2],\r\n\t\t'default' => 'true'\r\n\t);\r\n\techo json_encode($video);\r\n\treturn;\r\n}\r\n$quality = ['360', '480', '720', '1080'];\r\n$video = array();\r\nfor ($i = 0; $i < count($matches[1]); ++$i) {\r\n\t$video[$i]['file'] = $matches[1][$i];\r\n\tforeach ($quality as $each)\r\n\t\tif (strpos($video[$i][\"file\"], $each . '.mp4'))\r\n\t\t\t$video[$i][\"label\"] = $each . 'p';\r\n\t$video[$i][\"type\"] = 'video/mp4';\r\n}\r\n$video[count($video) - 1]['default'] = 'true'; \r\necho json_encode($video);`"}}
{"actor":{"display_login":"Love656"}}