StreamingCommunity 2.4.0__py3-none-any.whl → 2.5.0__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 (91) hide show
  1. {StreamingCommunity-2.4.0.dist-info → StreamingCommunity-2.5.0.dist-info}/METADATA +9 -6
  2. StreamingCommunity-2.5.0.dist-info/RECORD +8 -0
  3. StreamingCommunity/Api/Player/Helper/Vixcloud/js_parser.py +0 -143
  4. StreamingCommunity/Api/Player/Helper/Vixcloud/util.py +0 -136
  5. StreamingCommunity/Api/Player/ddl.py +0 -89
  6. StreamingCommunity/Api/Player/maxstream.py +0 -151
  7. StreamingCommunity/Api/Player/supervideo.py +0 -194
  8. StreamingCommunity/Api/Player/vixcloud.py +0 -273
  9. StreamingCommunity/Api/Site/1337xx/__init__.py +0 -51
  10. StreamingCommunity/Api/Site/1337xx/costant.py +0 -15
  11. StreamingCommunity/Api/Site/1337xx/site.py +0 -89
  12. StreamingCommunity/Api/Site/1337xx/title.py +0 -66
  13. StreamingCommunity/Api/Site/altadefinizionegratis/__init__.py +0 -51
  14. StreamingCommunity/Api/Site/altadefinizionegratis/costant.py +0 -19
  15. StreamingCommunity/Api/Site/altadefinizionegratis/film.py +0 -74
  16. StreamingCommunity/Api/Site/altadefinizionegratis/site.py +0 -95
  17. StreamingCommunity/Api/Site/animeunity/__init__.py +0 -51
  18. StreamingCommunity/Api/Site/animeunity/costant.py +0 -19
  19. StreamingCommunity/Api/Site/animeunity/film_serie.py +0 -135
  20. StreamingCommunity/Api/Site/animeunity/site.py +0 -175
  21. StreamingCommunity/Api/Site/animeunity/util/ScrapeSerie.py +0 -97
  22. StreamingCommunity/Api/Site/cb01new/__init__.py +0 -52
  23. StreamingCommunity/Api/Site/cb01new/costant.py +0 -19
  24. StreamingCommunity/Api/Site/cb01new/film.py +0 -73
  25. StreamingCommunity/Api/Site/cb01new/site.py +0 -83
  26. StreamingCommunity/Api/Site/ddlstreamitaly/__init__.py +0 -56
  27. StreamingCommunity/Api/Site/ddlstreamitaly/costant.py +0 -20
  28. StreamingCommunity/Api/Site/ddlstreamitaly/series.py +0 -146
  29. StreamingCommunity/Api/Site/ddlstreamitaly/site.py +0 -99
  30. StreamingCommunity/Api/Site/ddlstreamitaly/util/ScrapeSerie.py +0 -85
  31. StreamingCommunity/Api/Site/guardaserie/__init__.py +0 -51
  32. StreamingCommunity/Api/Site/guardaserie/costant.py +0 -19
  33. StreamingCommunity/Api/Site/guardaserie/series.py +0 -198
  34. StreamingCommunity/Api/Site/guardaserie/site.py +0 -90
  35. StreamingCommunity/Api/Site/guardaserie/util/ScrapeSerie.py +0 -110
  36. StreamingCommunity/Api/Site/ilcorsaronero/__init__.py +0 -52
  37. StreamingCommunity/Api/Site/ilcorsaronero/costant.py +0 -19
  38. StreamingCommunity/Api/Site/ilcorsaronero/site.py +0 -72
  39. StreamingCommunity/Api/Site/ilcorsaronero/title.py +0 -46
  40. StreamingCommunity/Api/Site/ilcorsaronero/util/ilCorsarScraper.py +0 -149
  41. StreamingCommunity/Api/Site/mostraguarda/__init__.py +0 -49
  42. StreamingCommunity/Api/Site/mostraguarda/costant.py +0 -19
  43. StreamingCommunity/Api/Site/mostraguarda/film.py +0 -101
  44. StreamingCommunity/Api/Site/streamingcommunity/__init__.py +0 -56
  45. StreamingCommunity/Api/Site/streamingcommunity/costant.py +0 -19
  46. StreamingCommunity/Api/Site/streamingcommunity/film.py +0 -75
  47. StreamingCommunity/Api/Site/streamingcommunity/series.py +0 -206
  48. StreamingCommunity/Api/Site/streamingcommunity/site.py +0 -142
  49. StreamingCommunity/Api/Site/streamingcommunity/util/ScrapeSerie.py +0 -123
  50. StreamingCommunity/Api/Template/Class/SearchType.py +0 -101
  51. StreamingCommunity/Api/Template/Util/__init__.py +0 -5
  52. StreamingCommunity/Api/Template/Util/get_domain.py +0 -203
  53. StreamingCommunity/Api/Template/Util/manage_ep.py +0 -179
  54. StreamingCommunity/Api/Template/Util/recall_search.py +0 -37
  55. StreamingCommunity/Api/Template/__init__.py +0 -3
  56. StreamingCommunity/Api/Template/site.py +0 -87
  57. StreamingCommunity/Lib/Downloader/HLS/downloader.py +0 -965
  58. StreamingCommunity/Lib/Downloader/HLS/proxyes.py +0 -110
  59. StreamingCommunity/Lib/Downloader/HLS/segments.py +0 -573
  60. StreamingCommunity/Lib/Downloader/MP4/downloader.py +0 -155
  61. StreamingCommunity/Lib/Downloader/TOR/downloader.py +0 -296
  62. StreamingCommunity/Lib/Downloader/__init__.py +0 -5
  63. StreamingCommunity/Lib/FFmpeg/__init__.py +0 -4
  64. StreamingCommunity/Lib/FFmpeg/capture.py +0 -170
  65. StreamingCommunity/Lib/FFmpeg/command.py +0 -296
  66. StreamingCommunity/Lib/FFmpeg/util.py +0 -249
  67. StreamingCommunity/Lib/M3U8/__init__.py +0 -6
  68. StreamingCommunity/Lib/M3U8/decryptor.py +0 -165
  69. StreamingCommunity/Lib/M3U8/estimator.py +0 -229
  70. StreamingCommunity/Lib/M3U8/parser.py +0 -666
  71. StreamingCommunity/Lib/M3U8/url_fixer.py +0 -58
  72. StreamingCommunity/Lib/TMBD/__init__.py +0 -2
  73. StreamingCommunity/Lib/TMBD/obj_tmbd.py +0 -39
  74. StreamingCommunity/Lib/TMBD/tmdb.py +0 -346
  75. StreamingCommunity/Upload/update.py +0 -67
  76. StreamingCommunity/Upload/version.py +0 -5
  77. StreamingCommunity/Util/_jsonConfig.py +0 -228
  78. StreamingCommunity/Util/call_stack.py +0 -42
  79. StreamingCommunity/Util/color.py +0 -20
  80. StreamingCommunity/Util/console.py +0 -12
  81. StreamingCommunity/Util/ffmpeg_installer.py +0 -368
  82. StreamingCommunity/Util/headers.py +0 -160
  83. StreamingCommunity/Util/logger.py +0 -62
  84. StreamingCommunity/Util/message.py +0 -64
  85. StreamingCommunity/Util/os.py +0 -507
  86. StreamingCommunity/Util/table.py +0 -229
  87. StreamingCommunity-2.4.0.dist-info/RECORD +0 -92
  88. {StreamingCommunity-2.4.0.dist-info → StreamingCommunity-2.5.0.dist-info}/LICENSE +0 -0
  89. {StreamingCommunity-2.4.0.dist-info → StreamingCommunity-2.5.0.dist-info}/WHEEL +0 -0
  90. {StreamingCommunity-2.4.0.dist-info → StreamingCommunity-2.5.0.dist-info}/entry_points.txt +0 -0
  91. {StreamingCommunity-2.4.0.dist-info → StreamingCommunity-2.5.0.dist-info}/top_level.txt +0 -0
@@ -1,160 +0,0 @@
1
- # 4.04.24
2
-
3
- import re
4
- import sys
5
- import random
6
- from importlib.metadata import version, PackageNotFoundError
7
-
8
-
9
- # External library
10
- from fake_useragent import UserAgent
11
-
12
-
13
- # Variable
14
- try:
15
- ua_version = version('fake-useragent')
16
- except PackageNotFoundError:
17
- ua_version = None
18
-
19
- if not getattr(sys, 'frozen', False):
20
- if ua_version == '1.1.3':
21
- ua = UserAgent(use_external_data=True)
22
- else:
23
- ua = UserAgent()
24
- else:
25
- ua = UserAgent()
26
-
27
-
28
- def extract_versions(user_agent):
29
- """
30
- Extract browser versions from the user agent.
31
-
32
- Parameters:
33
- user_agent (str): User agent of the browser.
34
-
35
- Returns:
36
- list: List of browser versions.
37
- """
38
-
39
- # Patterns to extract versions from various user agents
40
- patterns = {
41
- 'chrome': re.compile(r'Chrome/(\d+)\.(\d+)\.(\d+)\.(\d+)'),
42
- 'firefox': re.compile(r'Firefox/(\d+)\.?(\d+)?\.?(\d+)?'),
43
- 'safari': re.compile(r'Version/(\d+)\.(\d+)\.(\d+) Safari/(\d+)\.(\d+)\.(\d+)'),
44
- 'edge': re.compile(r'Edg/(\d+)\.(\d+)\.(\d+)\.(\d+)'),
45
- 'edgios': re.compile(r'EdgiOS/(\d+)\.(\d+)\.(\d+)\.(\d+)'),
46
- 'crios': re.compile(r'CriOS/(\d+)\.(\d+)\.(\d+)\.(\d+)'),
47
- }
48
-
49
- for key, pattern in patterns.items():
50
- match = pattern.search(user_agent)
51
- if match:
52
- return [match.group(i+1) for i in range(match.lastindex)]
53
-
54
- # Fallback values if specific versions are not found
55
- return ['99', '0', '0', '0']
56
-
57
- def get_platform(user_agent):
58
- """
59
- Determine the device platform from the user agent.
60
-
61
- Parameters:
62
- user_agent (str): User agent of the browser.
63
-
64
- Returns:
65
- str: Device platform.
66
- """
67
- if 'Windows' in user_agent:
68
- return '"Windows"'
69
- elif 'Mac OS X' in user_agent:
70
- return '"macOS"'
71
- elif 'Android' in user_agent:
72
- return '"Android"'
73
- elif 'iPhone' in user_agent or 'iPad' in user_agent:
74
- return '"iOS"'
75
- elif 'Linux' in user_agent:
76
- return '"Linux"'
77
- return '"Unknown"'
78
-
79
- def get_model(user_agent):
80
- """
81
- Determine the device model from the user agent.
82
-
83
- Parameters:
84
- user_agent (str): User agent of the browser.
85
-
86
- Returns:
87
- str: Device model.
88
- """
89
- if 'iPhone' in user_agent:
90
- return '"iPhone"'
91
- elif 'iPad' in user_agent:
92
- return '"iPad"'
93
- elif 'Android' in user_agent:
94
- return '"Android"'
95
- elif 'Windows' in user_agent:
96
- return '"PC"'
97
- elif 'Mac OS X' in user_agent:
98
- return '"Mac"'
99
- elif 'Linux' in user_agent:
100
- return '"Linux"'
101
- return '"Unknown"'
102
-
103
- def random_headers(referer: str = None):
104
- """
105
- Generate random HTTP headers to simulate human-like behavior.
106
-
107
- Returns:
108
- dict: Generated HTTP headers.
109
- """
110
- user_agent = ua.random
111
- versions = extract_versions(user_agent)
112
- platform = get_platform(user_agent)
113
- model = get_model(user_agent)
114
- is_mobile = 'Mobi' in user_agent or 'Android' in user_agent
115
-
116
- # Generate sec-ch-ua string based on the browser
117
- if 'Chrome' in user_agent or 'CriOS' in user_agent:
118
- sec_ch_ua = f'" Not;A Brand";v="{versions[0]}", "Chromium";v="{versions[0]}", "Google Chrome";v="{versions[0]}"'
119
- elif 'Edg' in user_agent or 'EdgiOS' in user_agent:
120
- sec_ch_ua = f'" Not;A Brand";v="{versions[0]}", "Chromium";v="{versions[0]}", "Microsoft Edge";v="{versions[0]}"'
121
- elif 'Firefox' in user_agent:
122
- sec_ch_ua = f'" Not;A Brand";v="{versions[0]}", "Firefox";v="{versions[0]}"'
123
- elif 'Safari' in user_agent:
124
- sec_ch_ua = f'" Not;A Brand";v="{versions[0]}", "Safari";v="{versions[0]}"'
125
- else:
126
- sec_ch_ua = f'" Not;A Brand";v="{versions[0]}"'
127
-
128
- headers = {
129
- 'User-Agent': user_agent,
130
- 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
131
- 'Accept-Language': random.choice(['en-US', 'en-GB', 'fr-FR', 'es-ES', 'de-DE']),
132
- 'Accept-Encoding': 'gzip, deflate, br',
133
- 'Connection': 'keep-alive',
134
- 'Upgrade-Insecure-Requests': '1',
135
- 'Sec-Fetch-Dest': 'document',
136
- 'Sec-Fetch-Mode': 'navigate',
137
- 'Sec-Fetch-Site': 'none',
138
- 'Sec-Fetch-User': '?1',
139
- 'sec-ch-ua-mobile': '?1' if is_mobile else '?0',
140
- 'sec-ch-ua-platform': platform,
141
- 'sec-ch-ua': sec_ch_ua,
142
- 'sec-ch-ua-model': model
143
- }
144
-
145
- if referer:
146
- headers['Origin'] = referer
147
- headers['Referer'] = referer
148
-
149
- return headers
150
-
151
- def get_headers() -> str:
152
- """
153
- Generate a random user agent to use in HTTP requests.
154
-
155
- Returns:
156
- - str: A random user agent string.
157
- """
158
-
159
- # Get a random user agent string from the user agent rotator
160
- return str(ua.chrome)
@@ -1,62 +0,0 @@
1
- # 26.03.24
2
-
3
- import os
4
- import logging
5
- from logging.handlers import RotatingFileHandler
6
-
7
-
8
- # Internal utilities
9
- from StreamingCommunity.Util._jsonConfig import config_manager
10
-
11
-
12
- class Logger:
13
- def __init__(self):
14
-
15
- # Fetching configuration values
16
- self.DEBUG_MODE = config_manager.get_bool("DEFAULT", "debug")
17
- self.log_to_file = config_manager.get_bool("DEFAULT", "log_to_file")
18
- self.log_file = config_manager.get("DEFAULT", "log_file") if self.log_to_file else None
19
-
20
- logging.getLogger("httpx").setLevel(logging.WARNING)
21
- logging.getLogger("httpcore").setLevel(logging.WARNING)
22
-
23
-
24
- # Setting logging level based on DEBUG_MODE
25
- if self.DEBUG_MODE:
26
- logging.getLogger('root').setLevel(logging.DEBUG)
27
-
28
- # Configure file logging if debug mode and logging to file are both enabled
29
- if self.log_to_file:
30
- self.remove_existing_log_file()
31
- self.configure_file_logging()
32
- else:
33
-
34
- # If DEBUG_MODE is False, set logging level to ERROR
35
- logging.getLogger('root').setLevel(logging.ERROR)
36
-
37
- # Configure console logging
38
- self.configure_logging()
39
-
40
- def configure_logging(self):
41
- """
42
- Configure console logging.
43
- """
44
- logging.basicConfig(level=logging.DEBUG, format='[%(filename)s:%(lineno)s - %(funcName)20s() ] %(asctime)s - %(levelname)s - %(message)s')
45
-
46
- def configure_file_logging(self):
47
- """
48
- Configure file logging if enabled.
49
- """
50
-
51
- file_handler = RotatingFileHandler(self.log_file, maxBytes=10*1024*1024, backupCount=5)
52
- file_handler.setLevel(logging.DEBUG)
53
- formatter = logging.Formatter('[%(filename)s:%(lineno)s - %(funcName)20s() ] %(asctime)s - %(levelname)s - %(message)s')
54
- file_handler.setFormatter(formatter)
55
- logging.getLogger('').addHandler(file_handler)
56
-
57
- def remove_existing_log_file(self):
58
- """
59
- Remove the log file if it already exists.
60
- """
61
- if os.path.exists(self.log_file):
62
- os.remove(self.log_file)
@@ -1,64 +0,0 @@
1
- # 3.12.23
2
-
3
- import os
4
- import platform
5
-
6
- # Internal utilities
7
- from StreamingCommunity.Util.console import console
8
- from StreamingCommunity.Util._jsonConfig import config_manager
9
-
10
- # Variable
11
- CLEAN = config_manager.get_bool('DEFAULT', 'clean_console')
12
- SHOW = config_manager.get_bool('DEFAULT', 'show_message')
13
-
14
-
15
- def create_italian_flag_colored_text(text: str) -> str:
16
- """Create text divided into three sections with Italian flag colors, splitting each line at two spaces."""
17
-
18
- # Split the text into lines
19
- lines = text.splitlines()
20
-
21
- colored_lines = []
22
-
23
- for line in lines:
24
- # Split each line into parts using two spaces as a delimiter
25
- parts = line.split(" ")
26
-
27
- # Ensure there are exactly 3 parts (add empty strings if necessary)
28
- parts += [''] * (4 - len(parts))
29
-
30
- # Apply flag colors to the parts
31
- green_part = f"[green]{parts[0]}[/]"
32
- white_part = f"[white]{parts[1]}[/]"
33
- red_part = f"[red]{parts[2]}[/]"
34
-
35
- # Reassemble the colored line
36
- colored_line = green_part + white_part + red_part
37
- colored_lines.append(colored_line)
38
-
39
- # Join all colored lines back into a single string
40
- return "\n".join(colored_lines)
41
-
42
- def start_message():
43
- """Display a stylized start message in the console."""
44
-
45
- msg = r'''
46
- ██╗ ██████╗ ██╗ ██╗██╗ ██╗ ██╗ ███████╗████████╗██████╗ ███████╗ █████╗ ███╗ ███╗██╗███╗ ██╗ ██████╗
47
- ██║ ██╔═══██╗██║ ██║██║ ╚██╗██╔╝ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔════╝
48
- ██║ ██║ ██║██║ ██║██║ ╚███╔╝ ███████╗ ██║ ██████╔╝█████╗ ███████║██╔████╔██║██║██╔██╗ ██║██║ ███╗
49
- ██║ ██║ ██║╚██╗ ██╔╝██║ ██╔██╗ ╚════██║ ██║ ██╔══██╗██╔══╝ ██╔══██║██║╚██╔╝██║██║██║╚██╗██║██║ ██║
50
- ███████╗╚██████╔╝ ╚████╔╝ ██║ ██╔╝ ██╗ ███████║ ██║ ██║ ██║███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║╚██████╔╝
51
- ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═════╝
52
- '''.rstrip()
53
-
54
- colored_msg = create_italian_flag_colored_text(msg)
55
-
56
- if CLEAN:
57
- os.system("cls" if platform.system() == 'Windows' else "clear")
58
-
59
- if SHOW:
60
- console.print(colored_msg)
61
-
62
- # Print a decorative separator line using asterisks
63
- separator = "_" * (console.width - 2) # Ridotto di 2 per il padding
64
- console.print(f"[yellow]{separator}[/yellow]\n")