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:
parent
5e385a7756
commit
84b7c25638
4 changed files with 81 additions and 55 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue