StreamingCommunity 2.5.5__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.

@@ -2,6 +2,7 @@
2
2
 
3
3
  import os
4
4
  import logging
5
+ from typing import Tuple
5
6
 
6
7
 
7
8
  # Internal utilities
@@ -29,7 +30,7 @@ KILL_HANDLER = bool(False)
29
30
 
30
31
 
31
32
 
32
- def download_episode(index_select: int, scrape_serie: ScrapeSerieAnime, video_source: VideoSourceAnime) -> tuple[str,bool]:
33
+ def download_episode(index_select: int, scrape_serie: ScrapeSerieAnime, video_source: VideoSourceAnime) -> Tuple[str,bool]:
33
34
  """
34
35
  Downloads the selected episode.
35
36
 
@@ -3,6 +3,7 @@
3
3
  import os
4
4
  import sys
5
5
  from urllib.parse import urlparse
6
+ from typing import Tuple
6
7
 
7
8
 
8
9
  # Internal utilities
@@ -28,7 +29,7 @@ from .costant import SERIES_FOLDER
28
29
 
29
30
 
30
31
 
31
- def download_video(index_episode_selected: int, scape_info_serie: GetSerieInfo, video_source: VideoSource) -> tuple[str,bool]:
32
+ def download_video(index_episode_selected: int, scape_info_serie: GetSerieInfo, video_source: VideoSource) -> Tuple[str,bool]:
32
33
  """
33
34
  Download a single episode video.
34
35
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  import os
4
4
  import sys
5
+ from typing import Tuple
5
6
 
6
7
 
7
8
  # Internal utilities
@@ -26,7 +27,7 @@ from .costant import SERIES_FOLDER
26
27
 
27
28
 
28
29
 
29
- def download_video(index_season_selected: int, index_episode_selected: int, scape_info_serie: GetSerieInfo) -> str:
30
+ def download_video(index_season_selected: int, index_episode_selected: int, scape_info_serie: GetSerieInfo) -> Tuple[str,bool]:
30
31
  """
31
32
  Download a single episode video.
32
33
 
@@ -37,6 +38,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scap
37
38
 
38
39
  Return:
39
40
  - str: output path
41
+ - bool: kill handler status
40
42
  """
41
43
  start_message()
42
44
  index_season_selected = dynamic_format_number(index_season_selected)
@@ -2,6 +2,7 @@
2
2
 
3
3
  import os
4
4
  import sys
5
+ from typing import Tuple
5
6
 
6
7
 
7
8
  # Internal utilities
@@ -27,7 +28,7 @@ from StreamingCommunity.Api.Player.vixcloud import VideoSource
27
28
  from .costant import SITE_NAME, SERIES_FOLDER, TELEGRAM_BOT
28
29
 
29
30
 
30
- def download_video(index_season_selected: int, index_episode_selected: int, scrape_serie: ScrapeSerie, video_source: VideoSource) -> tuple[str,bool]:
31
+ def download_video(index_season_selected: int, index_episode_selected: int, scrape_serie: ScrapeSerie, video_source: VideoSource) -> Tuple[str,bool]:
31
32
  """
32
33
  Download a single episode video.
33
34
 
@@ -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.5
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
@@ -20,7 +20,7 @@ Requires-Dist: jsbeautifier
20
20
  Requires-Dist: pathvalidate
21
21
  Requires-Dist: pycryptodomex
22
22
  Requires-Dist: googlesearch-python
23
- Requires-Dist: fake-useragent
23
+ Requires-Dist: fake-useragent<2.0.0
24
24
  Requires-Dist: qbittorrent-api
25
25
  Requires-Dist: python-qbittorrent
26
26
  Requires-Dist: Pillow
@@ -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
@@ -16,7 +16,7 @@ StreamingCommunity/Api/Site/altadefinizionegratis/film.py,sha256=hwsOHPaIEXMlJlJ
16
16
  StreamingCommunity/Api/Site/altadefinizionegratis/site.py,sha256=28zB42pa-SvZ8BbNNMVHuRdK8mQ7L_4NvFeGfcFb3O0,3631
17
17
  StreamingCommunity/Api/Site/animeunity/__init__.py,sha256=T1IBUZArYBQNjILCDJGLrQB3Q70XhmTwtQ0YqYGEGOE,2091
18
18
  StreamingCommunity/Api/Site/animeunity/costant.py,sha256=aXeyPtDUodnJCGWgpjlT-ymHFMGjAmkYrv0uKisCkUU,813
19
- StreamingCommunity/Api/Site/animeunity/film_serie.py,sha256=8Yhf7dqT7SFz-TRxkm_SZl3KNsE9C0Lgz869kGRynYU,5648
19
+ StreamingCommunity/Api/Site/animeunity/film_serie.py,sha256=YAPncO6Kjm3qCJoK-2_tc61gKRO1DfFjMh8xsL0ZvPk,5673
20
20
  StreamingCommunity/Api/Site/animeunity/site.py,sha256=croEynBrXlZbs9vdGFi95Tq9JA2T3EBotTNr8Frm2WE,5971
21
21
  StreamingCommunity/Api/Site/animeunity/util/ScrapeSerie.py,sha256=92PDY4CJSSmeHsVowqBuCzYmLa1pcXR8hCBXcuvlmvk,2886
22
22
  StreamingCommunity/Api/Site/cb01new/__init__.py,sha256=4pXBx8sPk-LyIZ4pEjfvudEeWKch_tfSHHtmS9_dQaA,1179
@@ -25,12 +25,12 @@ StreamingCommunity/Api/Site/cb01new/film.py,sha256=E5fLsJtwVNRFRLMBbM7ubS9NiYdMc
25
25
  StreamingCommunity/Api/Site/cb01new/site.py,sha256=ErBsmw30lxFGQP-TCNCtSd7MJth6VE7gOJfnq4FboN0,2365
26
26
  StreamingCommunity/Api/Site/ddlstreamitaly/__init__.py,sha256=7G3Ss3WWy3ZxJBU9BUKhyPe3qEQsu8V-y3pGLNho76k,1319
27
27
  StreamingCommunity/Api/Site/ddlstreamitaly/costant.py,sha256=FVZM6Ze3ed0nSE0lnP5WRcmH0OEowgfyGaQ_KQTYBeo,821
28
- StreamingCommunity/Api/Site/ddlstreamitaly/series.py,sha256=FaAOXHXpAMctIBxUgecn1jbmOhU1GLE_-NVdqCpROKY,4327
28
+ StreamingCommunity/Api/Site/ddlstreamitaly/series.py,sha256=BK7pSM5QVHVg5h5MLQVI8z7aVHT1TbPU9j8AazcjLkM,4352
29
29
  StreamingCommunity/Api/Site/ddlstreamitaly/site.py,sha256=a6Qy_EDaNWaooik0kgoewfLkCYjV2wOezRhZynILTJY,3004
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=gAS1nc647q6oHqrFWu80z6PYJJx0BUt6-u00BN8_YX4,6557
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
@@ -44,7 +44,7 @@ StreamingCommunity/Api/Site/mostraguarda/film.py,sha256=8n6iwMaYaMPKmV9XCIF91Kjx
44
44
  StreamingCommunity/Api/Site/streamingcommunity/__init__.py,sha256=4i1pu7XbCBaor7Nv2ZPpYa_7HQGjCW5mgpK9MCpiKao,2287
45
45
  StreamingCommunity/Api/Site/streamingcommunity/costant.py,sha256=II6jfMUUiqlbJ_bG12h8h9ODI6gvaUGsdEzjnjRZ52g,823
46
46
  StreamingCommunity/Api/Site/streamingcommunity/film.py,sha256=N3v01tcsHbSyJzIjMG13UJvKZANSlwKXinpxvTACns8,2490
47
- StreamingCommunity/Api/Site/streamingcommunity/series.py,sha256=C6iHoyDagGzX0ymUoIpvjJUTunhssdquPb-aU1G70BA,9085
47
+ StreamingCommunity/Api/Site/streamingcommunity/series.py,sha256=kbIzxmC9xIqNHazyo4wcEggjwPN5rnijLBZiXMfJQWU,9110
48
48
  StreamingCommunity/Api/Site/streamingcommunity/site.py,sha256=5e2w4dBOT_l7TX2LTEGE0uktrOc8pcaI6ZstOXdgY2Q,4592
49
49
  StreamingCommunity/Api/Site/streamingcommunity/util/ScrapeSerie.py,sha256=t-Of4McSpJv8uZGP8hqBj1cuh57U8A5hhvMM18rHSaQ,4260
50
50
  StreamingCommunity/Api/Template/__init__.py,sha256=oyfd_4_g5p5q6mxb_rKwSsudZnTM3W3kg1tLwxg-v-Q,46
@@ -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.5.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
92
- StreamingCommunity-2.5.5.dist-info/METADATA,sha256=UOrs2XD5VophwEy7pKVtv8DGFxKlJstautQi8axZto8,17990
93
- StreamingCommunity-2.5.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
94
- StreamingCommunity-2.5.5.dist-info/entry_points.txt,sha256=Qph9XYfDC8n4LfDLOSl6gJGlkb9eFb5f-JOr_Wb_5rk,67
95
- StreamingCommunity-2.5.5.dist-info/top_level.txt,sha256=YsOcxKP-WOhWpIWgBlh0coll9XUx7aqmRPT7kmt3fH0,19
96
- StreamingCommunity-2.5.5.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,,