Skip to content

Commit

Permalink
Add not supported extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 committed Aug 1, 2023
1 parent ce4e892 commit 3036be0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packagedb/find_source_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ def get_data_from_url(
try:
if not url:
return
if url.startswith("https://github.com/assets"):
return
not_supported_extensions = [
".pdf",
".zip",
".woff2",
".jar",
".js",
".png",
".css",
".svg",
".jpg",
]
for extension in not_supported_extensions:
if url.endswith(extension):
return
if url in non_reachable_urls:
return
if url in CACHE:
Expand Down

0 comments on commit 3036be0

Please sign in to comment.