1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

Fixed excessive rescans due to faulty time calculation, improved ISBN regexes (which can be improved further still)

This commit is contained in:
frankdelange 2014-12-21 23:22:44 +01:00
parent 5e385a7756
commit 84b7c25638
4 changed files with 81 additions and 55 deletions

View file

@ -119,7 +119,7 @@ class Meta
* @return array of metadata
*/
public static function get($id) {
if (!($meta = self::load($id)) || (isset($meta['rescan']) && time() > $meta['rescan'])) {
if (!($meta = self::load($id)) || (isset($meta['rescan']) && time() > strtotime($meta['rescan']))) {
if(isset($meta['rescan'])) {
$meta['rescan'] = null;
}