warp-beacon 2.6.76__py3-none-any.whl → 2.6.77__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.
@@ -1,2 +1,2 @@
1
- __version__ = "2.6.76"
1
+ __version__ = "2.6.77"
2
2
 
@@ -431,6 +431,8 @@ class InstagramScraper(ScraperAbstract):
431
431
  return password
432
432
 
433
433
  def download_progress(self, total: int | None, bytes_transferred: int, path: Path) -> None:
434
+ if not total:
435
+ return
434
436
  percentage_of_completion = round(bytes_transferred / (total or 1) * 100)
435
437
  if percentage_of_completion >= self._download_progress_threshold:
436
438
  logging.debug("[Download] IG file '%s', %d", str(path), percentage_of_completion)
@@ -25,10 +25,11 @@ class WBClient(Client):
25
25
  filename = f"{filename}.{fname.rsplit('.', 1)[1]}" if filename else fname
26
26
  path = Path(folder or Path.cwd()) / filename
27
27
 
28
- logging.info("Downloading video from %s to %s", url, path)
28
+ logging.info("Downloading video from '%s' to '%s'", url, path)
29
29
 
30
30
  response = requests.get(url, stream=True, timeout=self.request_timeout)
31
31
  response.raise_for_status()
32
+ logging.info("Response headers: %s", response.headers)
32
33
 
33
34
  content_length = 0
34
35
  try:
@@ -66,8 +67,12 @@ class WBClient(Client):
66
67
  fname = urlparse(url).path.rsplit("/", 1)[1]
67
68
  filename = f"{filename}.{(filename, fname.rsplit('.', 1)[1]) if filename else fname}"
68
69
  path = Path(folder) / filename
70
+
71
+ logging.info("Downloading photo from '%s' to '%s'", url, path)
72
+
69
73
  response = requests.get(url, stream=True, timeout=self.request_timeout)
70
74
  response.raise_for_status()
75
+ logging.info("Response headers: %s", response.headers)
71
76
 
72
77
  content_length = 0
73
78
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: warp_beacon
3
- Version: 2.6.76
3
+ Version: 2.6.77
4
4
  Summary: Telegram bot for expanding external media links
5
5
  Home-page: https://github.com/sb0y/warp_beacon
6
6
  Author: Andrey Bagrintsev
@@ -4,7 +4,7 @@ var/warp_beacon/accounts.json,sha256=OsXdncs6h88xrF_AP6_WDCK1waGBn9SR-uYdIeK37GM
4
4
  var/warp_beacon/placeholder.gif,sha256=cE5CGJVaop4Sx21zx6j4AyoHU0ncmvQuS2o6hJfEH88,6064
5
5
  var/warp_beacon/proxies.json,sha256=VnjlQDXumOEq72ZFjbh6IqHS1TEHqn8HPYAZqWCeSIA,95
6
6
  warp_beacon/__init__.py,sha256=_rThNODmz0nDp_n4mWo_HKaNFE5jk1_7cRhHyYaencI,163
7
- warp_beacon/__version__.py,sha256=ulPCTRFQAVW-xTIbqxMznCM-z79Clye5C0eKaytTh9o,24
7
+ warp_beacon/__version__.py,sha256=LO-sp6GFaflUgrx9X2TOLNWU7hjk8t0Vx8TPlHz-ZwE,24
8
8
  warp_beacon/warp_beacon.py,sha256=ED43vNzdjDUJ_9qLCbri0bjWLWEJ69BENGj9i7G6AvM,342
9
9
  warp_beacon/yt_auth.py,sha256=GUTKqYr_tzDC-07Lx_ahWXSag8EyLxXBUnQbDBIkEmk,6022
10
10
  warp_beacon/compress/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -31,8 +31,8 @@ warp_beacon/scraper/link_resolver.py,sha256=Rc9ZuMyOo3iPywDHwjngy-WRQ2SXhJwxcg-5
31
31
  warp_beacon/scraper/utils.py,sha256=xJfCVhiLjVPoFVupE10sTzX7UpgNWbx2EeYIsoYXGDk,43
32
32
  warp_beacon/scraper/instagram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  warp_beacon/scraper/instagram/captcha.py,sha256=9UYziuqB3Tsat_ET6ex-cnZDbi6yCnsXHSpmE8MuUHk,4651
34
- warp_beacon/scraper/instagram/instagram.py,sha256=c_7E0z1m728n9hOqWR3SXbGLW61a_wxG-GZsoue64tM,17153
35
- warp_beacon/scraper/instagram/wb_instagrapi.py,sha256=1YMU6_PUa4g6usKU1EQPaWVw3c3ljxgoSh8BuhI8bsg,2911
34
+ warp_beacon/scraper/instagram/instagram.py,sha256=3KhxVQSL3lzovu9hjMA83sCv87u4TTDMfDQrxogoWak,17179
35
+ warp_beacon/scraper/instagram/wb_instagrapi.py,sha256=pZ-Ei3lMA9xLHpoHosko5pKbHaJa_fVZHIX-2D4sHGc,3096
36
36
  warp_beacon/scraper/youtube/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  warp_beacon/scraper/youtube/abstract.py,sha256=K2ovycq1lkx0a2R1FddO3B0IcaVsVzni_fdXzajGdwg,13134
38
38
  warp_beacon/scraper/youtube/music.py,sha256=5AeSBQyUgVCJT2hoBCV2WvlyuV9US09SYJhmBG_P9F8,2755
@@ -52,9 +52,9 @@ warp_beacon/telegram/progress_file_reader.py,sha256=e3equyNKlKs764AD-iE9QRsh3YDH
52
52
  warp_beacon/telegram/types.py,sha256=Kvdng6uCF1HRoqQgGW1ZYYPJoVuYkFb-LDvMBbW5Hjk,89
53
53
  warp_beacon/telegram/utils.py,sha256=1Lq67aRylVJzbwSyvAgjPAGjJZFATkICvAj3TJGuJiM,4635
54
54
  warp_beacon/uploader/__init__.py,sha256=j3qcuKhpchseZLGzSsSiogqe6WdMbkK8d3I-ConhNRs,5687
55
- warp_beacon-2.6.76.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
- warp_beacon-2.6.76.dist-info/METADATA,sha256=qFs730Y_7H_4iIcLVP4Mn64R1X-OGF4F8huvWeURSIc,22706
57
- warp_beacon-2.6.76.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
58
- warp_beacon-2.6.76.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
59
- warp_beacon-2.6.76.dist-info/top_level.txt,sha256=5YQRN46STNg81V_3jdzZ6bftkMxhe1hTPSFvJugDu84,1405
60
- warp_beacon-2.6.76.dist-info/RECORD,,
55
+ warp_beacon-2.6.77.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
56
+ warp_beacon-2.6.77.dist-info/METADATA,sha256=Owqtm1gjZXAirAMDl1zv5GQDfYYtz4JjxsCZP5halM0,22706
57
+ warp_beacon-2.6.77.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
58
+ warp_beacon-2.6.77.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
59
+ warp_beacon-2.6.77.dist-info/top_level.txt,sha256=5YQRN46STNg81V_3jdzZ6bftkMxhe1hTPSFvJugDu84,1405
60
+ warp_beacon-2.6.77.dist-info/RECORD,,