StreamingCommunity 2.5.6__py3-none-any.whl → 2.5.7__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.

Potentially problematic release.


This version of StreamingCommunity might be problematic. Click here for more details.

@@ -64,6 +64,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scap
64
64
  output_path=os.path.join(mp4_path, mp4_name)
65
65
  ).start()
66
66
 
67
+
67
68
  if "error" in r_proc.keys():
68
69
  try:
69
70
  os.remove(r_proc['path'])
@@ -506,7 +506,6 @@ class HLS_Downloader:
506
506
  file_size = internet_manager.format_file_size(os.path.getsize(self.path_manager.output_path))
507
507
  duration = print_duration_table(self.path_manager.output_path, description=False, return_string=True)
508
508
 
509
- print()
510
509
  panel_content = (
511
510
  f"[cyan]File size: [bold red]{file_size}[/bold red]\n"
512
511
  f"[cyan]Duration: [bold]{duration}[/bold]\n"
@@ -391,8 +391,7 @@ class M3U8_Segments:
391
391
  f"{Colors.YELLOW}[HLS] {Colors.WHITE}({Colors.CYAN}{description}{Colors.WHITE}): "
392
392
  f"{Colors.RED}{{percentage:.2f}}% "
393
393
  f"{Colors.MAGENTA}{{bar}} "
394
- f"{Colors.WHITE}[ {Colors.YELLOW}{{n_fmt}}{Colors.WHITE} / {Colors.RED}{{total_fmt}} {Colors.WHITE}] "
395
- f"{Colors.YELLOW}{{elapsed}} {Colors.WHITE}< {Colors.CYAN}{{remaining}}{{postfix}} {Colors.WHITE}]"
394
+ f"{Colors.WHITE}[ {Colors.YELLOW}{{elapsed}}{Colors.WHITE} < {Colors.CYAN}{{remaining}}{Colors.WHITE}{{postfix}}{Colors.WHITE} ]"
396
395
  )
397
396
 
398
397
  def _get_worker_count(self, stream_type: str) -> int:
@@ -106,12 +106,12 @@ class M3U8_Ts_Estimator:
106
106
  try:
107
107
  self.add_ts_file(total_downloaded * self.total_segments, total_downloaded, duration)
108
108
 
109
- downloaded_file_size_str = internet_manager.format_file_size(self.now_downloaded_size)
109
+ #downloaded_file_size_str = internet_manager.format_file_size(self.now_downloaded_size)
110
110
  file_total_size = self.calculate_total_size()
111
111
 
112
- number_file_downloaded = downloaded_file_size_str.split(' ')[0]
112
+ #number_file_downloaded = downloaded_file_size_str.split(' ')[0]
113
113
  number_file_total_size = file_total_size.split(' ')[0]
114
- units_file_downloaded = downloaded_file_size_str.split(' ')[1]
114
+ #units_file_downloaded = downloaded_file_size_str.split(' ')[1]
115
115
  units_file_total_size = file_total_size.split(' ')[1]
116
116
 
117
117
  if USE_LARGE_BAR:
@@ -124,19 +124,17 @@ class M3U8_Ts_Estimator:
124
124
  average_internet_speed = "N/A"
125
125
  average_internet_unit = ""
126
126
 
127
- # Retrieve retry count from segments_instance
128
127
  retry_count = self.segments_instance.active_retries if self.segments_instance else 0
129
128
  progress_str = (
130
- f"{Colors.WHITE}[ {Colors.GREEN}{number_file_downloaded} {Colors.WHITE}< "
129
+ #f"{Colors.WHITE}[ {Colors.GREEN}{number_file_downloaded} {Colors.WHITE}< "
131
130
  f"{Colors.GREEN}{number_file_total_size} {Colors.RED}{units_file_total_size} "
132
131
  f"{Colors.WHITE}| {Colors.CYAN}{average_internet_speed} {Colors.RED}{average_internet_unit} "
133
132
  f"{Colors.WHITE}| {Colors.GREEN}CRR {Colors.RED}{retry_count}"
134
133
  )
135
134
  else:
136
- # Retrieve retry count from segments_instance
137
135
  retry_count = self.segments_instance.active_retries if self.segments_instance else 0
138
136
  progress_str = (
139
- f"{Colors.WHITE}[ {Colors.GREEN}{number_file_downloaded} {Colors.WHITE}< "
137
+ #f"{Colors.WHITE}[ {Colors.GREEN}{number_file_downloaded} {Colors.WHITE}< "
140
138
  f"{Colors.GREEN}{number_file_total_size} {Colors.RED}{units_file_total_size} "
141
139
  f"{Colors.WHITE}| {Colors.GREEN}CRR {Colors.RED}{retry_count}"
142
140
  )
@@ -461,7 +461,7 @@ class OsSummary:
461
461
  optional_libraries = [line.strip().split("=")[0] for line in open(requirements_file, 'r', encoding='utf-8-sig')]
462
462
 
463
463
  for lib in optional_libraries:
464
- installed_version = self.get_library_version(lib)
464
+ installed_version = self.get_library_version(lib.split("<")[0])
465
465
  if 'not installed' in installed_version:
466
466
  user_response = msg.ask(f"{lib} is not installed. Do you want to install it? (yes/no)", default="y")
467
467
  if user_response.lower().strip() in ["yes", "y"]:
StreamingCommunity/run.py CHANGED
@@ -178,7 +178,7 @@ def force_exit():
178
178
  os._exit(0)
179
179
 
180
180
 
181
- def main(script_id):
181
+ def main(script_id = 0):
182
182
 
183
183
  if TELEGRAM_BOT:
184
184
  bot = get_bot_instance()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: StreamingCommunity
3
- Version: 2.5.6
3
+ Version: 2.5.7
4
4
  Home-page: https://github.com/Lovi-0/StreamingCommunity
5
5
  Author: Lovi-0
6
6
  Project-URL: Bug Reports, https://github.com/Lovi-0/StreamingCommunity/issues
@@ -53,7 +53,7 @@ Requires-Dist: pyTelegramBotAPI
53
53
  <img src="https://img.shields.io/pypi/dm/streamingcommunity?style=for-the-badge" alt="PyPI Downloads"/>
54
54
  </a>
55
55
  <a href="https://github.com/Arrowar/StreamingCommunity">
56
- <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Arrowar/StreamingCommunity/main/Test/Media/loc-badge.json&style=for-the-badge" alt="Lines of Code"/>
56
+ <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Arrowar/StreamingCommunity/main/.github/media/loc-badge.json&style=for-the-badge" alt="Lines of Code"/>
57
57
  </a>
58
58
  </p>
59
59
 
@@ -1,5 +1,5 @@
1
1
  StreamingCommunity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- StreamingCommunity/run.py,sha256=NdHxQeS3UDQz8de1OeySkqiwwyppFChz8UFoQKJvNpA,12161
2
+ StreamingCommunity/run.py,sha256=cVH8KPG1zAOcbXvCfWkN77_BxzKKPr3Zx1sSk_JrwdQ,12165
3
3
  StreamingCommunity/Api/Player/ddl.py,sha256=LAfQRwnY8vvDM-i_HiSaU_lWrQoIQJWMqinD43A1UAk,2320
4
4
  StreamingCommunity/Api/Player/maxstream.py,sha256=Q9td9lOxC_-8YwgB3bQ-H2686uMqjd23lptnsdAglYk,5153
5
5
  StreamingCommunity/Api/Player/supervideo.py,sha256=udPbBUvlvHVUCZasOJvFmcQfSFmB0KquoSOWOiGur4M,5925
@@ -30,7 +30,7 @@ StreamingCommunity/Api/Site/ddlstreamitaly/site.py,sha256=a6Qy_EDaNWaooik0kgoewf
30
30
  StreamingCommunity/Api/Site/ddlstreamitaly/util/ScrapeSerie.py,sha256=rWAu-CLo2_fiUbdoExRTojxUOcnrNOzMqwR1_ug79lo,2568
31
31
  StreamingCommunity/Api/Site/guardaserie/__init__.py,sha256=TvNYdFFUsb0M5OE6i5Vn73xORu4-ZlBJaBCAn7mGPGU,1171
32
32
  StreamingCommunity/Api/Site/guardaserie/costant.py,sha256=n-kS_CWTzp0KcwD9eQJB_2nzVc3mk2aV4ai3tYBWwMg,760
33
- StreamingCommunity/Api/Site/guardaserie/series.py,sha256=SqW67Y_ddxtiNzb9uNCLzE_vfdYSHmNW9EPIN_GUYy8,6617
33
+ StreamingCommunity/Api/Site/guardaserie/series.py,sha256=7pfNJ4S_md5QDlvmmZmmUpbuHtabnXA7cuDyv1l-xf8,6630
34
34
  StreamingCommunity/Api/Site/guardaserie/site.py,sha256=RW3y1UBzxgu8PyM2uBVTF5iL1zE-Hhd5IwOk1xym60s,2790
35
35
  StreamingCommunity/Api/Site/guardaserie/util/ScrapeSerie.py,sha256=QCSc61Eab93Mc2H6FYZ5y1EOjn7VFBJ9mHstaMdtBO0,3289
36
36
  StreamingCommunity/Api/Site/ilcorsaronero/__init__.py,sha256=k93QZfFROMeD6hELFItyKBxWNC9ivWWQA17fjxu04MY,1197
@@ -55,9 +55,9 @@ StreamingCommunity/Api/Template/Util/get_domain.py,sha256=OPgjNN3UgrMHPmy457_DbF
55
55
  StreamingCommunity/Api/Template/Util/manage_ep.py,sha256=xHMCUYxxeTfrw28k5IuXgb7FsAvSmVzcPTP3MrLRq2g,6496
56
56
  StreamingCommunity/Api/Template/Util/recall_search.py,sha256=QSKDI4fyQfKF8C2eZXW6lBrAp1HTuhWQeA6g8ybDQYQ,1147
57
57
  StreamingCommunity/Lib/Downloader/__init__.py,sha256=JhbBh5hOnSM7VmtkxJ7zZ_FtWEC1JdnKThsSBjLV5FY,140
58
- StreamingCommunity/Lib/Downloader/HLS/downloader.py,sha256=58MV43Ct9AZ3-brI4D_Q0E2dnMRoUmO-0mteym2PwaU,20918
58
+ StreamingCommunity/Lib/Downloader/HLS/downloader.py,sha256=qcRhAciorKwJP9QMU0q0voHe4tUsHGXIB-_9QOBmJB8,20902
59
59
  StreamingCommunity/Lib/Downloader/HLS/proxyes.py,sha256=H92gBhiwsomtURyBx__SQrML0nSx_0rAb2VWFd2rMAk,3275
60
- StreamingCommunity/Lib/Downloader/HLS/segments.py,sha256=Euf-2QW3Pw_9TWezMnDoOd1QiZ8esmrv57r3jUT8Apg,17783
60
+ StreamingCommunity/Lib/Downloader/HLS/segments.py,sha256=Ge07NsDQax1_1stp2vRf-wrYWbxFIyOfpdCVT4XRjPc,17694
61
61
  StreamingCommunity/Lib/Downloader/MP4/downloader.py,sha256=c7qJoBInsTFVGt0BViR5hdwSfOfzUk7Lrl7dXo7muJY,6931
62
62
  StreamingCommunity/Lib/Downloader/TOR/downloader.py,sha256=n8-56EoGpe3-FO72zL66ovLGTAZRJwzmNqeRGe8VSO8,11212
63
63
  StreamingCommunity/Lib/FFmpeg/__init__.py,sha256=pFt6A1gD2tZ8REEXa8QgM7_CsenrmBLQXDh_I1bwZvM,131
@@ -66,7 +66,7 @@ StreamingCommunity/Lib/FFmpeg/command.py,sha256=LwwptZf3FGL2X9YCyPKomUVt3DTDLha-
66
66
  StreamingCommunity/Lib/FFmpeg/util.py,sha256=lTWA9KuK8KWYymuNL_-YMW1WB6Y4aLTsItk9ezPD0NU,8093
67
67
  StreamingCommunity/Lib/M3U8/__init__.py,sha256=H_KS2eDd3kVXMziFJnD0FCPvPHEizaqfoA36ElTv_r8,170
68
68
  StreamingCommunity/Lib/M3U8/decryptor.py,sha256=yD94xUhGHx4-RcrHguarpmfTeSxtpkfsH1id6sUrOw0,6365
69
- StreamingCommunity/Lib/M3U8/estimator.py,sha256=7EJdmJAV3U22nvghfpaTiyHjd-tl_RHGFhOV2dyZFeg,6247
69
+ StreamingCommunity/Lib/M3U8/estimator.py,sha256=DNtKxuiQLyBysmNaIeX7VRYva4ovqixWB__IhaCQ0iQ,6128
70
70
  StreamingCommunity/Lib/M3U8/parser.py,sha256=SqME6-Ua6V771T8_LeL376tGjjOadJMFmZrPaD7iMNo,22887
71
71
  StreamingCommunity/Lib/M3U8/url_fixer.py,sha256=VKc9j6rXHQ9wEdn6IN5Sn_Gi-fGhCZOMv7SGOq-2a3E,1789
72
72
  StreamingCommunity/Lib/TMBD/__init__.py,sha256=jSNsLuW4fBf1tGtIdz6fcRv1d5A-NiNnM_O0G6Hj30s,54
@@ -86,11 +86,11 @@ StreamingCommunity/Util/ffmpeg_installer.py,sha256=JXyaY0O8dEvqHL-Zw6Cvwjgzrt6Bt
86
86
  StreamingCommunity/Util/headers.py,sha256=_7yUnjV0PNdTAuxm-CQVj0na1smZuw8KD3VVR2TlPWY,4727
87
87
  StreamingCommunity/Util/logger.py,sha256=ekHO3tryCwo5zqSe2RoI6s3qZsZx9ghinTchipMEovg,2112
88
88
  StreamingCommunity/Util/message.py,sha256=F2QKjkcCBl6TjsaM5G6iDck0IhxBnDkKV3itwUebr5c,1403
89
- StreamingCommunity/Util/os.py,sha256=negGgnuRMvApCSuOJZvnP1K-JB2QDfCYPHbfSh8CBKM,17362
89
+ StreamingCommunity/Util/os.py,sha256=sVaW09Vv3iELEW5FAEL_gHFBDvCCjs0txLN-R-2T0QE,17376
90
90
  StreamingCommunity/Util/table.py,sha256=QFzbthbmQT_hwaPJ7Bg9lJALIHJGYcGiQSsQNhCLYAE,10997
91
- StreamingCommunity-2.5.6.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
92
- StreamingCommunity-2.5.6.dist-info/METADATA,sha256=Enr8LaQJ-YHTwoE7A2f-1D0hZjqf7nvbqAeXHY9EMZY,17993
93
- StreamingCommunity-2.5.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
94
- StreamingCommunity-2.5.6.dist-info/entry_points.txt,sha256=Qph9XYfDC8n4LfDLOSl6gJGlkb9eFb5f-JOr_Wb_5rk,67
95
- StreamingCommunity-2.5.6.dist-info/top_level.txt,sha256=YsOcxKP-WOhWpIWgBlh0coll9XUx7aqmRPT7kmt3fH0,19
96
- StreamingCommunity-2.5.6.dist-info/RECORD,,
91
+ StreamingCommunity-2.5.7.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
92
+ StreamingCommunity-2.5.7.dist-info/METADATA,sha256=pTUdrFKkcGBFwnamF8B3_RzjaVJQlJj3jtkqFjbce9Q,17996
93
+ StreamingCommunity-2.5.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
94
+ StreamingCommunity-2.5.7.dist-info/entry_points.txt,sha256=Qph9XYfDC8n4LfDLOSl6gJGlkb9eFb5f-JOr_Wb_5rk,67
95
+ StreamingCommunity-2.5.7.dist-info/top_level.txt,sha256=YsOcxKP-WOhWpIWgBlh0coll9XUx7aqmRPT7kmt3fH0,19
96
+ StreamingCommunity-2.5.7.dist-info/RECORD,,