update poster service
This commit is contained in:
parent
6198a0732c
commit
cf8e33ec65
6 changed files with 36 additions and 14 deletions
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
$id = $_GET['id'];
|
||||
$data = json_decode(file_get_contents("http://rlx:luxor@0xdb.org/$id/posterData.json"), true);
|
||||
$data = json_decode(file_get_contents("http://0xdb.org/$id/posterData.json"), true);
|
||||
$director = utf8_decode($data['director']);
|
||||
$title = utf8_decode($data['title']);
|
||||
$url = "http://rlx:luxor@0xdb.org/$id/posterStill.png";
|
||||
$url = "http://0xdb.org/$id/posterStill.png";
|
||||
|
||||
$md5 = md5("$director/$title");
|
||||
$rPoster = round(hexdec(substr($md5, 0, 2)) / 2);
|
||||
|
|
@ -125,4 +125,4 @@ function formatString($string, $width) {
|
|||
return explode("\n", wordwrap($string, $width));
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue