qdown 1.0.4__py3-none-any.whl → 1.0.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
qdown/gdown.py CHANGED
@@ -125,6 +125,25 @@ class QDown:
125
125
 
126
126
  except httpx.RequestError as e:
127
127
  print(f"エラー: リクエストに失敗しました - {e}", file=sys.stderr)
128
+ # Add this to the except httpx.RequestError block
129
+ if "Name or service not known" in str(e):
130
+ print("WSLで実行しているとき、このDNSエラーに遭遇した場合は以下をお試しください")
131
+ print("If you are running this in WSL, please try setting up DNS as follows:", file=sys.stderr)
132
+ print("STEP 1: Disable the automatic DNS configuration in WSL2", file=sys.stderr)
133
+ print("In WSL bash, run the following to prevent automatic generation of resolv.conf:", file=sys.stderr)
134
+ print('sudo sh -c \'cat > /etc/wsl.conf << EOF', file=sys.stderr)
135
+ print('[user]', file=sys.stderr)
136
+ print('default=mlu', file=sys.stderr)
137
+ print('[network]', file=sys.stderr)
138
+ print('generateResolvConf = false', file=sys.stderr)
139
+ print('EOF\'', file=sys.stderr)
140
+ print("STEP 2: Restart WSL from Windows", file=sys.stderr)
141
+ print('wsl --shutdown', file=sys.stderr)
142
+ print("STEP 3: After restarting WSL, run the following in the shell:", file=sys.stderr)
143
+ print('sudo sh -c \'cat > /etc/resolv.conf << EOF', file=sys.stderr)
144
+ print('nameserver 8.8.8.8', file=sys.stderr)
145
+ print('nameserver 8.8.4.4', file=sys.stderr)
146
+ print('EOF\'', file=sys.stderr)
128
147
  return None
129
148
  except Exception as e:
130
149
  print(f"エラー: {e}", file=sys.stderr)
qdown/qdown.py CHANGED
@@ -250,11 +250,30 @@ class QDown:
250
250
 
251
251
  except httpx.RequestError as e:
252
252
  print(f"エラー: リクエストに失敗しました - {e}", file=sys.stderr)
253
+ if "Name or service not known" in str(e):
254
+ print("WSLで実行しているとき、このDNSエラーに遭遇した場合は以下をお試しください")
255
+ print("If you are running this in WSL, please try setting up DNS as follows:", file=sys.stderr)
256
+ print("STEP 1: Disable the automatic DNS configuration in WSL2", file=sys.stderr)
257
+ print("In WSL bash, run the following to prevent automatic generation of resolv.conf:", file=sys.stderr)
258
+ print('sudo sh -c \'cat > /etc/wsl.conf << EOF', file=sys.stderr)
259
+ print('[user]', file=sys.stderr)
260
+ print('default=mlu', file=sys.stderr)
261
+ print('[network]', file=sys.stderr)
262
+ print('generateResolvConf = false', file=sys.stderr)
263
+ print('EOF\'', file=sys.stderr)
264
+ print("STEP 2: Restart WSL from Windows", file=sys.stderr)
265
+ print('wsl --shutdown', file=sys.stderr)
266
+ print("STEP 3: After restarting WSL, run the following in the shell:", file=sys.stderr)
267
+ print('sudo sh -c \'cat > /etc/resolv.conf << EOF', file=sys.stderr)
268
+ print('nameserver 8.8.8.8', file=sys.stderr)
269
+ print('nameserver 8.8.4.4', file=sys.stderr)
270
+ print('EOF\'', file=sys.stderr)
253
271
  return None
254
272
  except Exception as e:
255
273
  print(f"エラー: {e}", file=sys.stderr)
256
274
  return None
257
275
 
276
+
258
277
  def main():
259
278
  parser = argparse.ArgumentParser(
260
279
  description="qdown - IDベースファイルダウンロードツール",
@@ -289,4 +308,4 @@ def main():
289
308
 
290
309
 
291
310
  if __name__ == "__main__":
292
- main()
311
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qdown
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: Client for QualitegDrive
5
5
  Home-page: https://github.com/qualiteg/qdown
6
6
  Author: Qualiteg Inc.
@@ -0,0 +1,10 @@
1
+ qdown/__init__.py,sha256=rNxBW4Zo6nfWYN2JnLwJVpyGEX3RtBjoE7QlSy0FcxU,2975
2
+ qdown/gdown.py,sha256=s1KuO9MzIVqHBCqISVoHTq2mI7taM7_FBbBMu_uxDQA,7920
3
+ qdown/qdown.py,sha256=56XTR3CqhlLPvb1T3xGCX5eG5ouL-2yUo2c1m4xhyrY,13867
4
+ z_examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ z_examples/example.py,sha256=3FQoW22Frgyx5ulb7JOgwgcEBd8K3FI_BuFZP2E54ck,137
6
+ qdown-1.0.5.dist-info/METADATA,sha256=9YN1UyAxHJcJ125W206Ocrh0pMpMV0VFosiCg_NPVGY,1515
7
+ qdown-1.0.5.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
8
+ qdown-1.0.5.dist-info/entry_points.txt,sha256=4uunDwX_8iGbNA0DKwggOftuKUXvoHxGzvXUd2SW9LM,43
9
+ qdown-1.0.5.dist-info/top_level.txt,sha256=eVEHrbec1mx2PWv03GzKwFTbdvQqFOAps3GuveF2Ap8,17
10
+ qdown-1.0.5.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- qdown/__init__.py,sha256=rNxBW4Zo6nfWYN2JnLwJVpyGEX3RtBjoE7QlSy0FcxU,2975
2
- qdown/gdown.py,sha256=3MpnwlBpEFGi1rdAMzixdBETtw8q5xItaHU1QmtPrEo,6421
3
- qdown/qdown.py,sha256=KeU9DN9LdDQwhoPZfDVDz51TlFnjWYUxUpJz8-DtBKI,12432
4
- z_examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- z_examples/example.py,sha256=3FQoW22Frgyx5ulb7JOgwgcEBd8K3FI_BuFZP2E54ck,137
6
- qdown-1.0.4.dist-info/METADATA,sha256=CVbfXYkssfEtEkbmRxs2Z-zmgUDAPsdd9DmbIZvm4cM,1515
7
- qdown-1.0.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
8
- qdown-1.0.4.dist-info/entry_points.txt,sha256=4uunDwX_8iGbNA0DKwggOftuKUXvoHxGzvXUd2SW9LM,43
9
- qdown-1.0.4.dist-info/top_level.txt,sha256=eVEHrbec1mx2PWv03GzKwFTbdvQqFOAps3GuveF2Ap8,17
10
- qdown-1.0.4.dist-info/RECORD,,
File without changes