|
|
|
@ -145,10 +145,9 @@ class PremiumizeMe { |
|
|
|
|
|
|
|
// Pour le moment nous ne gérons que des cas avec un seul fichier retourné
|
|
|
|
$premInfos = PremiumizeMe::getLink($element->url); |
|
|
|
// TODO: only if debug
|
|
|
|
//echo 'Premimumizeme link: '.$premInfos['link'];
|
|
|
|
|
|
|
|
file_put_contents( 'test', $premInfos, FILE_APPEND); |
|
|
|
file_put_contents('test', stat(file_exists(DOWNLOADINGDIR.DIRECTORY_SEPARATOR.$premInfos['path']))); |
|
|
|
file_put_contents('test', stat(file_exists(DOWNLOADEDDIR.DIRECTORY_SEPARATOR.$premInfos['path']))); |
|
|
|
if (file_exists(DOWNLOADINGDIR.DIRECTORY_SEPARATOR.$premInfos['path']) || file_exists(DOWNLOADEDDIR.DIRECTORY_SEPARATOR.$premInfos['path'])) { |
|
|
|
$element->addEvent(['state' => 'dupp' ]); |
|
|
|
$element->updateState('dupp'); |
|
|
|
|