StreamingCommunity 2.9.5__py3-none-any.whl → 2.9.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.

Files changed (35) hide show
  1. StreamingCommunity/Api/Player/sweetpixel.py +49 -0
  2. StreamingCommunity/Api/Site/1337xx/site.py +3 -3
  3. StreamingCommunity/Api/Site/1337xx/title.py +4 -6
  4. StreamingCommunity/Api/Site/altadefinizione/film.py +1 -1
  5. StreamingCommunity/Api/Site/altadefinizione/series.py +1 -2
  6. StreamingCommunity/Api/Site/altadefinizione/site.py +3 -3
  7. StreamingCommunity/Api/Site/animeunity/film_serie.py +3 -4
  8. StreamingCommunity/Api/Site/animeunity/site.py +4 -4
  9. StreamingCommunity/Api/Site/animeworld/__init__.py +71 -0
  10. StreamingCommunity/Api/Site/animeworld/serie.py +107 -0
  11. StreamingCommunity/Api/Site/animeworld/site.py +111 -0
  12. StreamingCommunity/Api/Site/animeworld/util/ScrapeSerie.py +79 -0
  13. StreamingCommunity/Api/Site/cb01new/film.py +1 -1
  14. StreamingCommunity/Api/Site/cb01new/site.py +3 -3
  15. StreamingCommunity/Api/Site/ddlstreamitaly/series.py +2 -2
  16. StreamingCommunity/Api/Site/ddlstreamitaly/site.py +3 -3
  17. StreamingCommunity/Api/Site/guardaserie/series.py +1 -1
  18. StreamingCommunity/Api/Site/guardaserie/site.py +3 -3
  19. StreamingCommunity/Api/Site/mostraguarda/film.py +1 -1
  20. StreamingCommunity/Api/Site/streamingcommunity/film.py +1 -1
  21. StreamingCommunity/Api/Site/streamingcommunity/series.py +1 -2
  22. StreamingCommunity/Api/Site/streamingcommunity/site.py +3 -3
  23. StreamingCommunity/Lib/Downloader/HLS/segments.py +1 -3
  24. StreamingCommunity/Lib/Downloader/TOR/downloader.py +397 -227
  25. StreamingCommunity/Lib/FFmpeg/util.py +12 -0
  26. StreamingCommunity/Lib/M3U8/estimator.py +5 -8
  27. StreamingCommunity/Upload/update.py +1 -1
  28. StreamingCommunity/Upload/version.py +1 -1
  29. StreamingCommunity/run.py +10 -0
  30. {streamingcommunity-2.9.5.dist-info → streamingcommunity-2.9.7.dist-info}/METADATA +20 -12
  31. {streamingcommunity-2.9.5.dist-info → streamingcommunity-2.9.7.dist-info}/RECORD +35 -30
  32. {streamingcommunity-2.9.5.dist-info → streamingcommunity-2.9.7.dist-info}/WHEEL +1 -1
  33. {streamingcommunity-2.9.5.dist-info → streamingcommunity-2.9.7.dist-info}/entry_points.txt +0 -0
  34. {streamingcommunity-2.9.5.dist-info → streamingcommunity-2.9.7.dist-info/licenses}/LICENSE +0 -0
  35. {streamingcommunity-2.9.5.dist-info → streamingcommunity-2.9.7.dist-info}/top_level.txt +0 -0
@@ -44,7 +44,7 @@ def download_film(movie_details: Json_film) -> str:
44
44
 
45
45
  # Start message and display film information
46
46
  start_message()
47
- console.print(f"[yellow]Download: [red]{movie_details.title} \n")
47
+ console.print(f"[bold yellow]Download:[/bold yellow] [red]{site_constant.SITE_NAME}[/red] → [cyan]{movie_details.title}[/cyan] \n")
48
48
 
49
49
  # Make request to main site
50
50
  try:
@@ -52,7 +52,7 @@ def download_film(select_title: MediaItem) -> str:
52
52
 
53
53
  # Start message and display film information
54
54
  start_message()
55
- console.print(f"[yellow]Download: [red]{select_title.name} \n")
55
+ console.print(f"[bold yellow]Download:[/bold yellow] [red]{site_constant.SITE_NAME}[/red] → [cyan]{select_title.name}[/cyan] \n")
56
56
 
57
57
  # Init class
58
58
  video_source = VideoSource(site_constant.FULL_URL, False)
@@ -61,8 +61,7 @@ def download_video(index_season_selected: int, index_episode_selected: int, scra
61
61
 
62
62
  # Get info about episode
63
63
  obj_episode = season.episodes.get(index_episode_selected - 1)
64
- console.print(f"[yellow]Download: [red]{index_season_selected}:{index_episode_selected} {obj_episode.name}")
65
- print()
64
+ console.print(f"[bold yellow]Download:[/bold yellow] [red]{site_constant.SITE_NAME}[/red] → [bold magenta]{obj_episode.name}[/bold magenta] ([cyan]S{index_season_selected}E{index_episode_selected}[/cyan]) \n")
66
65
 
67
66
  if site_constant.TELEGRAM_BOT:
68
67
  bot = get_bot_instance()
@@ -27,12 +27,12 @@ table_show_manager = TVShowManager()
27
27
  max_timeout = config_manager.get_int("REQUESTS", "timeout")
28
28
 
29
29
 
30
- def title_search(title_search: str) -> int:
30
+ def title_search(query: str) -> int:
31
31
  """
32
32
  Search for titles based on a search query.
33
33
 
34
34
  Parameters:
35
- - title_search (str): The title to search for.
35
+ - query (str): The query to search for.
36
36
 
37
37
  Returns:
38
38
  int: The number of titles found.
@@ -43,7 +43,7 @@ def title_search(title_search: str) -> int:
43
43
  media_search_manager.clear()
44
44
  table_show_manager.clear()
45
45
 
46
- search_url = f"{site_constant.FULL_URL}/api/search?q={title_search}"
46
+ search_url = f"{site_constant.FULL_URL}/api/search?q={query}"
47
47
  console.print(f"[cyan]Search url: [yellow]{search_url}")
48
48
 
49
49
  try:
@@ -223,14 +223,12 @@ class M3U8_Segments:
223
223
 
224
224
  try:
225
225
  with self._get_http_client() as client:
226
- start_time = time.time()
227
226
  response = client.get(ts_url)
228
227
 
229
228
  # Validate response and content
230
229
  response.raise_for_status()
231
230
  segment_content = response.content
232
231
  content_size = len(segment_content)
233
- duration = time.time() - start_time
234
232
 
235
233
  # Decrypt if needed and verify decrypted content
236
234
  if self.decryption is not None:
@@ -243,7 +241,7 @@ class M3U8_Segments:
243
241
  self.stop_event.set() # Trigger the stopping event for all threads
244
242
  break # Stop the current task immediately
245
243
 
246
- self.class_ts_estimator.update_progress_bar(content_size, duration, progress_bar)
244
+ self.class_ts_estimator.update_progress_bar(content_size, progress_bar)
247
245
  self.queue.put((index, segment_content))
248
246
  self.downloaded_segments.add(index)
249
247
  progress_bar.update(1)