Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle wget WARC-Target-URI formatting. #515

Merged
merged 1 commit into from
May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Handle wget WARC-Target-URI formatting.
- Resolves #514
- Regex replacement for getUrl
- Add test
- Add test fixture
  • Loading branch information
ruebot committed May 11, 2021
commit 2d6b2e09d0581413194df59d44559d868dbf3ceb
6 changes: 5 additions & 1 deletion src/main/scala/io/archivesunleashed/ArchiveRecord.scala
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ class ArchiveRecordImpl(r: SerializableWritable[ArchiveRecordWritable])
if (r.t.getFormat == ArchiveRecordWritable.ArchiveFormat.ARC) {
r.t.getRecord.asInstanceOf[ARCRecord].getMetaData.getUrl
} else {
r.t.getRecord.asInstanceOf[WARCRecord].getHeader.getUrl
r.t.getRecord
.asInstanceOf[WARCRecord]
.getHeader
.getUrl
.replaceAll("<|>", "")
}
}

Expand Down
Loading