projects
/
web.Reddit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70c6ab9
)
Pman/Reddit/DataObjects/Reddit_livefeed.php
author
Alan Knowles
<alan@roojs.com>
Mon, 8 Dec 2014 08:42:49 +0000
(16:42 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 8 Dec 2014 08:42:49 +0000
(16:42 +0800)
Pman/Reddit/DataObjects/Reddit_livefeed.php
patch
|
blob
|
history
diff --git
a/Pman/Reddit/DataObjects/Reddit_livefeed.php
b/Pman/Reddit/DataObjects/Reddit_livefeed.php
index
72379e5
..
1ff1ddd
100644
(file)
--- a/
Pman/Reddit/DataObjects/Reddit_livefeed.php
+++ b/
Pman/Reddit/DataObjects/Reddit_livefeed.php
@@
-116,7
+116,22
@@
data =>
function fetchEmbed()
{
-
+ /*
+ $r = json_decode($this->embeds);
+ // output to
+ foreach($r as $i=>$em) {
+ //$file = /home/reddit/ date('Y/m/d', strtotime($this->created_dt . " - 8 HOURS")) . "/" . $this->uid . '.' . $i . ".pdf"
+ if (file_exist)($file) {
+ continue
+ }
+ $dir = dirname($file);
+ if (!file_exist($dir)) {
+ mkdir($dir,660, true);
+ }
+ $url = http://redit.......
+ $cmd = "/usr/bin/wkhtmltopdf $url $file";
+ }
+ */