Skip to content
Merged
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion src/datasets/utils/streaming_download_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _extract(self, urlpath: str) -> str:

def _get_extraction_protocol(self, urlpath: str) -> Optional[str]:
path = urlpath.split("::")[0]
extension = path.split(".")[-1]
extension = path.split(".")[-1].split("?")[0] # https://foo.bar/train.json.gz?dl=1 -> gz
if extension in BASE_KNOWN_EXTENSIONS:
return None
elif path.endswith(".tar.gz") or path.endswith(".tgz"):
Expand Down