1
0
Fork 0
mirror of synced 2024-06-28 11:00:35 +12:00

Merge pull request #486 from cdvv7788/wget-path

fix: Wget absolute path generating issues
This commit is contained in:
Nick Sweeting 2020-09-25 12:49:43 -04:00 committed by GitHub
commit a4b23977c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -179,7 +179,7 @@ def wget_output_path(link: Link) -> Optional[str]:
if re.search(".+\\.[Ss]?[Hh][Tt][Mm][Ll]?$", str(f), re.I | re.M)
]
if html_files:
return str(html_files[0])
return str(html_files[0].relative_to(link.link_dir))
# Move up one directory level
search_dir = search_dir.parent

View file

@ -2,7 +2,7 @@
<td title="$timestamp">$bookmarked_date</td>
<td class="title-col">
<a href="$archive_path/index.html" class="link-url"><img src="$favicon_url" class="link-favicon" decoding="async"></a>
<a href="$wget_url" title="$title">
<a href="$archive_path/$wget_url" title="$title">
<span data-title-for="$url" data-archived="$is_archived">$title</span>
<small style="float:right">$tags</small>
</a>