Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -257,7 +257,7 @@ class PaperDownloader:
|
|
257 |
os.rename(filepath,filepath_unique)
|
258 |
downloaded_files.append(filepath_unique)
|
259 |
else:
|
260 |
-
failed_dois.append(doi)
|
261 |
|
262 |
|
263 |
if downloaded_files:
|
@@ -315,11 +315,10 @@ class PaperDownloader:
|
|
315 |
downloaded_files.append(filepath)
|
316 |
logger.info(f"Successfully downloaded: {filename}")
|
317 |
else:
|
318 |
-
|
319 |
-
logger.warning(f"Could not download: {doi}")
|
320 |
|
321 |
except Exception as e:
|
322 |
-
failed_dois.append(doi)
|
323 |
logger.error(f"Error processing {doi}: {e}")
|
324 |
|
325 |
# Create ZIP of downloaded papers
|
|
|
257 |
os.rename(filepath,filepath_unique)
|
258 |
downloaded_files.append(filepath_unique)
|
259 |
else:
|
260 |
+
failed_dois.append(f"{doi} (https://doi.org/{doi})")
|
261 |
|
262 |
|
263 |
if downloaded_files:
|
|
|
315 |
downloaded_files.append(filepath)
|
316 |
logger.info(f"Successfully downloaded: {filename}")
|
317 |
else:
|
318 |
+
failed_dois.append(f"{doi} (https://doi.org/{doi})")
|
|
|
319 |
|
320 |
except Exception as e:
|
321 |
+
failed_dois.append(f"{doi} (https://doi.org/{doi})")
|
322 |
logger.error(f"Error processing {doi}: {e}")
|
323 |
|
324 |
# Create ZIP of downloaded papers
|