mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix alerts
This commit is contained in:
parent
534ead2440
commit
04c951cdd5
2 changed files with 1 additions and 4 deletions
|
@ -8,7 +8,6 @@ from typing import Optional
|
||||||
from ..index.schema import Link, ArchiveResult, ArchiveOutput, ArchiveError
|
from ..index.schema import Link, ArchiveResult, ArchiveOutput, ArchiveError
|
||||||
from ..util import (
|
from ..util import (
|
||||||
enforce_types,
|
enforce_types,
|
||||||
is_static_file,
|
|
||||||
download_url,
|
download_url,
|
||||||
htmldecode,
|
htmldecode,
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,7 +10,6 @@ from ..index.schema import Link, ArchiveResult, ArchiveOutput, ArchiveError
|
||||||
from ..system import run, chmod_file
|
from ..system import run, chmod_file
|
||||||
from ..util import (
|
from ..util import (
|
||||||
enforce_types,
|
enforce_types,
|
||||||
is_static_file,
|
|
||||||
without_scheme,
|
without_scheme,
|
||||||
without_fragment,
|
without_fragment,
|
||||||
without_query,
|
without_query,
|
||||||
|
@ -193,8 +192,7 @@ def wget_output_path(link: Link) -> Optional[str]:
|
||||||
if str(search_dir) == link.link_dir:
|
if str(search_dir) == link.link_dir:
|
||||||
break
|
break
|
||||||
|
|
||||||
# check for staticfiles
|
# check for literally any file present that isnt an empty folder
|
||||||
base_url = without_scheme(without_fragment(link.url))
|
|
||||||
domain_dir = Path(domain(link.url).replace(":", "+"))
|
domain_dir = Path(domain(link.url).replace(":", "+"))
|
||||||
files_within = list((Path(link.link_dir) / domain_dir).glob('**/*.*'))
|
files_within = list((Path(link.link_dir) / domain_dir).glob('**/*.*'))
|
||||||
if files_within:
|
if files_within:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue