From c4dd258f2a49f5d72aadd75e92918f75f1a528f2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 21 Jun 2018 18:34:57 +0200 Subject: Added most watched chart --- assets/php/getNetflixJson.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 assets/php/getNetflixJson.php (limited to 'assets/php/getNetflixJson.php') diff --git a/assets/php/getNetflixJson.php b/assets/php/getNetflixJson.php new file mode 100755 index 0000000..fbbecac --- /dev/null +++ b/assets/php/getNetflixJson.php @@ -0,0 +1,28 @@ + 0) { + $LastPage = FALSE; + $NetflixJson .= json_encode(json_decode($Result, TRUE)["viewedItems"]) . ","; + } else { + $LastPage = TRUE; + $NetflixJson = substr($NetflixJson, 0, -1); + } + + curl_close($ch); + $CurPage++; +} + +print_r($NetflixJson . "]"); \ No newline at end of file -- cgit v1.2.3