mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 16:14:28 -04:00
make chrome binary and configs directly runnable and make extractor use external bin
This commit is contained in:
parent
a572db307b
commit
ac53fdf677
7 changed files with 316 additions and 83 deletions
|
@ -2,12 +2,15 @@ import hashlib
|
|||
import mimetypes
|
||||
import os
|
||||
|
||||
import subprocess
|
||||
from typing import ClassVar
|
||||
from datetime import timedelta
|
||||
from zipfile import Path
|
||||
|
||||
from django.utils import timezone
|
||||
|
||||
from archivebox.misc.hashing import get_dir_info
|
||||
|
||||
from core.models import ArchiveResult
|
||||
|
||||
import abx
|
||||
|
@ -205,9 +208,7 @@ class Extractor:
|
|||
|
||||
def after_extract(self, error: Exception | None=None):
|
||||
status, retry_at = self.determine_status()
|
||||
|
||||
self.archiveresult.outputs = []
|
||||
|
||||
|
||||
|
||||
self.archiveresult.error = f'{type(error).__name__}: {error}' if error else None
|
||||
self.archiveresult.status = self.archiveresult.StatusChoices.FAILED if error else self.archiveresult.StatusChoices.SUCCEEDED
|
||||
|
@ -216,4 +217,4 @@ class Extractor:
|
|||
self.archiveresult.output = self.archiveresult.outputs[0].path
|
||||
self.archiveresult.save()
|
||||
self.archiveresult.write_indexes()
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue