Skip to content

Commit 49f28e8

Browse files
committed
ilri/get_pdfs_dspace6.py: fix code
Seems I committed a bunch of debug and temp stuff here.
1 parent 88323d6 commit 49f28e8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ilri/get_pdfs_dspace6.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ def resolve_bitstreams(handle):
5858

5959
# Temporary so we don't have to worry about handling multiple PDFs
6060
if len(pdf_bitstream_ids) == 1:
61-
# print(f'download_bitstreams({pdf_bitstream_ids})')
62-
print(
63-
f"https://hdl.handle.net/{handle},{rest_base_url}/{rest_bitstream_endpoint}/{pdf_bitstream_ids[0]}/retrieve"
64-
)
61+
download_bitstreams(pdf_bitstream_ids)
6562

6663
return
6764

@@ -117,8 +114,7 @@ def download_bitstreams(pdf_bitstream_ids, filename=False):
117114
return
118115

119116

120-
# rest_base_url = "https://cgspace.cgiar.org/rest"
121-
rest_base_url = "https://digitalarchive.worldfishcenter.org/rest"
117+
rest_base_url = "https://cgspace.cgiar.org/rest"
122118
rest_handle_endpoint = "handle"
123119
rest_bitstream_endpoint = "bitstreams"
124120
rest_user_agent = "get_pdfs_dspace.py/0.0.2 (python / curl)"

0 commit comments

Comments
 (0)