StreamingCommunity 1.8.0__py3-none-any.whl → 1.9.1__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 (99) hide show
  1. StreamingCommunity/{Src/Api → Api}/Player/ddl.py +3 -3
  2. StreamingCommunity/{Src/Api → Api}/Player/maxstream.py +2 -2
  3. StreamingCommunity/{Src/Api → Api}/Player/supervideo.py +2 -2
  4. StreamingCommunity/{Src/Api → Api}/Player/vixcloud.py +3 -3
  5. StreamingCommunity/{Src/Api → Api}/Site/1337xx/__init__.py +1 -1
  6. StreamingCommunity/{Src/Api → Api}/Site/1337xx/costant.py +3 -3
  7. StreamingCommunity/{Src/Api → Api}/Site/1337xx/site.py +7 -7
  8. StreamingCommunity/{Src/Api → Api}/Site/1337xx/title.py +6 -6
  9. StreamingCommunity/{Src/Api → Api}/Site/altadefinizione/__init__.py +1 -1
  10. StreamingCommunity/{Src/Api/Site/mostraguarda → Api/Site/altadefinizione}/costant.py +3 -3
  11. StreamingCommunity/{Src/Api → Api}/Site/altadefinizione/film.py +8 -8
  12. StreamingCommunity/{Src/Api → Api}/Site/altadefinizione/site.py +7 -7
  13. StreamingCommunity/{Src/Api → Api}/Site/animeunity/__init__.py +1 -1
  14. StreamingCommunity/{Src/Api/Site/altadefinizione → Api/Site/animeunity}/costant.py +3 -3
  15. StreamingCommunity/{Src/Api → Api}/Site/animeunity/film_serie.py +18 -19
  16. StreamingCommunity/{Src/Api → Api}/Site/animeunity/site.py +6 -6
  17. StreamingCommunity/{Src/Api → Api}/Site/animeunity/util/ScrapeSerie.py +3 -3
  18. StreamingCommunity/{Src/Api → Api}/Site/bitsearch/__init__.py +1 -1
  19. StreamingCommunity/{Src/Api → Api}/Site/bitsearch/costant.py +3 -3
  20. StreamingCommunity/{Src/Api → Api}/Site/bitsearch/site.py +7 -7
  21. StreamingCommunity/{Src/Api → Api}/Site/bitsearch/title.py +5 -5
  22. StreamingCommunity/{Src/Api → Api}/Site/cb01new/__init__.py +1 -1
  23. StreamingCommunity/{Src/Api → Api}/Site/cb01new/costant.py +3 -3
  24. StreamingCommunity/{Src/Api → Api}/Site/cb01new/film.py +8 -8
  25. StreamingCommunity/{Src/Api → Api}/Site/cb01new/site.py +6 -6
  26. StreamingCommunity/{Src/Api → Api}/Site/ddlstreamitaly/__init__.py +1 -1
  27. StreamingCommunity/{Src/Api → Api}/Site/ddlstreamitaly/costant.py +3 -3
  28. StreamingCommunity/{Src/Api → Api}/Site/ddlstreamitaly/series.py +11 -12
  29. StreamingCommunity/{Src/Api → Api}/Site/ddlstreamitaly/site.py +7 -7
  30. StreamingCommunity/{Src/Api → Api}/Site/ddlstreamitaly/util/ScrapeSerie.py +5 -3
  31. StreamingCommunity/{Src/Api → Api}/Site/guardaserie/__init__.py +1 -1
  32. StreamingCommunity/{Src/Api/Site/piratebays → Api/Site/guardaserie}/costant.py +3 -3
  33. StreamingCommunity/{Src/Api → Api}/Site/guardaserie/series.py +11 -11
  34. StreamingCommunity/{Src/Api → Api}/Site/guardaserie/site.py +7 -7
  35. StreamingCommunity/{Src/Api/Site/guardaserie/Player → Api/Site/guardaserie/util}/ScrapeSerie.py +2 -2
  36. StreamingCommunity/{Src/Api → Api}/Site/mostraguarda/__init__.py +2 -2
  37. StreamingCommunity/{Src/Api/Site/animeunity → Api/Site/mostraguarda}/costant.py +3 -3
  38. StreamingCommunity/{Src/Api → Api}/Site/mostraguarda/film.py +9 -9
  39. StreamingCommunity/{Src/Api → Api}/Site/piratebays/__init__.py +1 -1
  40. StreamingCommunity/{Src/Api/Site/guardaserie → Api/Site/piratebays}/costant.py +3 -3
  41. StreamingCommunity/{Src/Api → Api}/Site/piratebays/site.py +6 -6
  42. StreamingCommunity/{Src/Api → Api}/Site/piratebays/title.py +5 -5
  43. StreamingCommunity/{Src/Api → Api}/Site/streamingcommunity/__init__.py +1 -1
  44. StreamingCommunity/{Src/Api → Api}/Site/streamingcommunity/costant.py +3 -3
  45. StreamingCommunity/{Src/Api → Api}/Site/streamingcommunity/film.py +10 -10
  46. StreamingCommunity/{Src/Api → Api}/Site/streamingcommunity/series.py +20 -18
  47. StreamingCommunity/{Src/Api → Api}/Site/streamingcommunity/site.py +7 -7
  48. StreamingCommunity/{Src/Api → Api}/Site/streamingcommunity/util/ScrapeSerie.py +3 -3
  49. StreamingCommunity/{Src/Api → Api}/Template/Util/get_domain.py +3 -3
  50. StreamingCommunity/{Src/Api → Api}/Template/Util/manage_ep.py +2 -2
  51. StreamingCommunity/{Src/Api → Api}/Template/Util/recall_search.py +1 -1
  52. StreamingCommunity/{Src/Api → Api}/Template/site.py +1 -1
  53. StreamingCommunity/{Src/Lib → Lib}/Downloader/HLS/downloader.py +4 -4
  54. StreamingCommunity/{Src/Lib → Lib}/Downloader/HLS/proxyes.py +3 -3
  55. StreamingCommunity/{Src/Lib → Lib}/Downloader/HLS/segments.py +42 -44
  56. StreamingCommunity/{Src/Lib → Lib}/Downloader/MP4/downloader.py +5 -5
  57. StreamingCommunity/{Src/Lib → Lib}/Downloader/TOR/downloader.py +3 -3
  58. StreamingCommunity/{Src/Lib → Lib}/Driver/driver_1.py +1 -1
  59. StreamingCommunity/{Src/Lib → Lib}/FFmpeg/capture.py +2 -2
  60. StreamingCommunity/{Src/Lib → Lib}/FFmpeg/command.py +3 -3
  61. StreamingCommunity/{Src/Lib → Lib}/FFmpeg/util.py +1 -1
  62. StreamingCommunity/{Src/Lib → Lib}/M3U8/decryptor.py +59 -24
  63. StreamingCommunity/{Src/Lib → Lib}/M3U8/estimator.py +6 -3
  64. StreamingCommunity/{Src/Lib → Lib}/M3U8/parser.py +1 -1
  65. StreamingCommunity/{Src/Lib → Lib}/TMBD/tmdb.py +1 -1
  66. StreamingCommunity/{Src/Upload → Upload}/update.py +6 -2
  67. StreamingCommunity/{Src/Upload → Upload}/version.py +1 -1
  68. StreamingCommunity/Util/ffmpeg_installer.py +275 -0
  69. StreamingCommunity/{Src/Util → Util}/headers.py +1 -1
  70. StreamingCommunity/{Src/Util → Util}/logger.py +1 -1
  71. StreamingCommunity/{Src/Util → Util}/message.py +2 -2
  72. StreamingCommunity/{Src/Util → Util}/os.py +118 -21
  73. StreamingCommunity/run.py +18 -12
  74. {StreamingCommunity-1.8.0.dist-info → StreamingCommunity-1.9.1.dist-info}/METADATA +126 -60
  75. StreamingCommunity-1.9.1.dist-info/RECORD +95 -0
  76. {StreamingCommunity-1.8.0.dist-info → StreamingCommunity-1.9.1.dist-info}/WHEEL +1 -1
  77. StreamingCommunity/Src/Api/Site/animeunity/anime.py +0 -126
  78. StreamingCommunity/Src/Api/Site/ddlstreamitaly/Player/ScrapeSerie.py +0 -83
  79. StreamingCommunity/Src/Api/Site/guardaserie/util/ScrapeSerie.py +0 -110
  80. StreamingCommunity-1.8.0.dist-info/RECORD +0 -97
  81. /StreamingCommunity/{Src/Api → Api}/Player/Helper/Vixcloud/js_parser.py +0 -0
  82. /StreamingCommunity/{Src/Api → Api}/Player/Helper/Vixcloud/util.py +0 -0
  83. /StreamingCommunity/{Src/Api → Api}/Template/Class/SearchType.py +0 -0
  84. /StreamingCommunity/{Src/Api → Api}/Template/Util/__init__.py +0 -0
  85. /StreamingCommunity/{Src/Api → Api}/Template/__init__.py +0 -0
  86. /StreamingCommunity/{Src/Lib → Lib}/Downloader/__init__.py +0 -0
  87. /StreamingCommunity/{Src/Lib → Lib}/FFmpeg/__init__.py +0 -0
  88. /StreamingCommunity/{Src/Lib → Lib}/M3U8/__init__.py +0 -0
  89. /StreamingCommunity/{Src/Lib → Lib}/M3U8/url_fixer.py +0 -0
  90. /StreamingCommunity/{Src/Lib → Lib}/TMBD/__init__.py +0 -0
  91. /StreamingCommunity/{Src/Lib → Lib}/TMBD/obj_tmbd.py +0 -0
  92. /StreamingCommunity/{Src/Util → Util}/_jsonConfig.py +0 -0
  93. /StreamingCommunity/{Src/Util → Util}/call_stack.py +0 -0
  94. /StreamingCommunity/{Src/Util → Util}/color.py +0 -0
  95. /StreamingCommunity/{Src/Util → Util}/console.py +0 -0
  96. /StreamingCommunity/{Src/Util → Util}/table.py +0 -0
  97. {StreamingCommunity-1.8.0.dist-info → StreamingCommunity-1.9.1.dist-info}/LICENSE +0 -0
  98. {StreamingCommunity-1.8.0.dist-info → StreamingCommunity-1.9.1.dist-info}/entry_points.txt +0 -0
  99. {StreamingCommunity-1.8.0.dist-info → StreamingCommunity-1.9.1.dist-info}/top_level.txt +0 -0
@@ -9,12 +9,12 @@ from bs4 import BeautifulSoup
9
9
 
10
10
 
11
11
  # Internal utilities
12
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
13
- from StreamingCommunity.Src.Util.headers import get_headers
12
+ from StreamingCommunity.Util._jsonConfig import config_manager
13
+ from StreamingCommunity.Util.headers import get_headers
14
14
 
15
15
 
16
16
  # Variable
17
- from StreamingCommunity.Src.Api.Site.ddlstreamitaly.costant import COOKIE
17
+ from StreamingCommunity.Api.Site.ddlstreamitaly.costant import COOKIE
18
18
  max_timeout = config_manager.get_int("REQUESTS", "timeout")
19
19
 
20
20
 
@@ -11,8 +11,8 @@ from bs4 import BeautifulSoup
11
11
 
12
12
 
13
13
  # Internal utilities
14
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
15
- from StreamingCommunity.Src.Util.headers import get_headers
14
+ from StreamingCommunity.Util._jsonConfig import config_manager
15
+ from StreamingCommunity.Util.headers import get_headers
16
16
 
17
17
 
18
18
  # Variable
@@ -11,8 +11,8 @@ from bs4 import BeautifulSoup
11
11
 
12
12
 
13
13
  # Internal utilities
14
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
15
- from StreamingCommunity.Src.Util.headers import get_headers
14
+ from StreamingCommunity.Util._jsonConfig import config_manager
15
+ from StreamingCommunity.Util.headers import get_headers
16
16
 
17
17
 
18
18
  # Variable
@@ -11,9 +11,9 @@ from bs4 import BeautifulSoup
11
11
 
12
12
 
13
13
  # Internal utilities
14
- from StreamingCommunity.Src.Util.headers import get_headers
15
- from StreamingCommunity.Src.Util.console import console, Panel
16
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
14
+ from StreamingCommunity.Util.headers import get_headers
15
+ from StreamingCommunity.Util.console import console, Panel
16
+ from StreamingCommunity.Util._jsonConfig import config_manager
17
17
  from .Helper.Vixcloud.util import WindowVideo, WindowParameter, StreamsCollection
18
18
  from .Helper.Vixcloud.js_parser import JavaScriptParser
19
19
 
@@ -4,7 +4,7 @@ from unidecode import unidecode
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util.console import console, msg
7
+ from StreamingCommunity.Util.console import console, msg
8
8
 
9
9
 
10
10
  # Logic class
@@ -4,12 +4,12 @@ import os
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
7
+ from StreamingCommunity.Util._jsonConfig import config_manager
8
8
 
9
9
 
10
10
  SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
11
11
  ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
12
12
  DOMAIN_NOW = config_manager.get_dict('SITE', SITE_NAME)['domain']
13
13
 
14
- SERIES_FOLDER = "Serie"
15
- MOVIE_FOLDER = "Film"
14
+ SERIES_FOLDER = config_manager.get('DEFAULT', 'serie_folder_name')
15
+ MOVIE_FOLDER = config_manager.get('DEFAULT', 'movie_folder_name')
@@ -6,16 +6,16 @@ from bs4 import BeautifulSoup
6
6
 
7
7
 
8
8
  # Internal utilities
9
- from StreamingCommunity.Src.Util.console import console
10
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
11
- from StreamingCommunity.Src.Util.headers import get_headers
12
- from StreamingCommunity.Src.Util.table import TVShowManager
9
+ from StreamingCommunity.Util.console import console
10
+ from StreamingCommunity.Util._jsonConfig import config_manager
11
+ from StreamingCommunity.Util.headers import get_headers
12
+ from StreamingCommunity.Util.table import TVShowManager
13
13
 
14
14
 
15
15
  # Logic class
16
- from StreamingCommunity.Src.Api.Template import get_select_title
17
- from StreamingCommunity.Src.Api.Template.Util import search_domain
18
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager
16
+ from StreamingCommunity.Api.Template import get_select_title
17
+ from StreamingCommunity.Api.Template.Util import search_domain
18
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaManager
19
19
 
20
20
 
21
21
  # Variable
@@ -9,15 +9,15 @@ from bs4 import BeautifulSoup
9
9
 
10
10
 
11
11
  # Internal utilities
12
- from StreamingCommunity.Src.Util.console import console
13
- from StreamingCommunity.Src.Util.os import os_manager
14
- from StreamingCommunity.Src.Util.message import start_message
15
- from StreamingCommunity.Src.Util.headers import get_headers
16
- from StreamingCommunity.Src.Lib.Downloader import TOR_downloader
12
+ from StreamingCommunity.Util.console import console
13
+ from StreamingCommunity.Util.os import os_manager
14
+ from StreamingCommunity.Util.message import start_message
15
+ from StreamingCommunity.Util.headers import get_headers
16
+ from StreamingCommunity.Lib.Downloader import TOR_downloader
17
17
 
18
18
 
19
19
  # Logic class
20
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem
20
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
21
21
 
22
22
 
23
23
  # Config
@@ -4,7 +4,7 @@ from unidecode import unidecode
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util.console import console, msg
7
+ from StreamingCommunity.Util.console import console, msg
8
8
 
9
9
 
10
10
  # Logic class
@@ -4,12 +4,12 @@ import os
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
7
+ from StreamingCommunity.Util._jsonConfig import config_manager
8
8
 
9
9
 
10
10
  SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
11
11
  ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
12
12
  DOMAIN_NOW = config_manager.get_dict('SITE', SITE_NAME)['domain']
13
13
 
14
- MOVIE_FOLDER = "Movie"
15
- SERIES_FOLDER= "Serie"
14
+ SERIES_FOLDER = config_manager.get('DEFAULT', 'serie_folder_name')
15
+ MOVIE_FOLDER = config_manager.get('DEFAULT', 'movie_folder_name')
@@ -5,20 +5,20 @@ import time
5
5
 
6
6
 
7
7
  # Internal utilities
8
- from StreamingCommunity.Src.Util.console import console, msg
9
- from StreamingCommunity.Src.Util.os import os_manager
10
- from StreamingCommunity.Src.Util.message import start_message
11
- from StreamingCommunity.Src.Util.call_stack import get_call_stack
12
- from StreamingCommunity.Src.Lib.Downloader import HLS_Downloader
8
+ from StreamingCommunity.Util.console import console, msg
9
+ from StreamingCommunity.Util.os import os_manager
10
+ from StreamingCommunity.Util.message import start_message
11
+ from StreamingCommunity.Util.call_stack import get_call_stack
12
+ from StreamingCommunity.Lib.Downloader import HLS_Downloader
13
13
 
14
14
 
15
15
  # Logic class
16
- from StreamingCommunity.Src.Api.Template.Util import execute_search
17
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem
16
+ from StreamingCommunity.Api.Template.Util import execute_search
17
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
18
18
 
19
19
 
20
20
  # Player
21
- from StreamingCommunity.Src.Api.Player.supervideo import VideoSource
21
+ from StreamingCommunity.Api.Player.supervideo import VideoSource
22
22
 
23
23
 
24
24
  # Config
@@ -6,16 +6,16 @@ from bs4 import BeautifulSoup
6
6
 
7
7
 
8
8
  # Internal utilities
9
- from StreamingCommunity.Src.Util.console import console
10
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
11
- from StreamingCommunity.Src.Util.headers import get_headers
12
- from StreamingCommunity.Src.Util.table import TVShowManager
9
+ from StreamingCommunity.Util.console import console
10
+ from StreamingCommunity.Util._jsonConfig import config_manager
11
+ from StreamingCommunity.Util.headers import get_headers
12
+ from StreamingCommunity.Util.table import TVShowManager
13
13
 
14
14
 
15
15
  # Logic class
16
- from StreamingCommunity.Src.Api.Template import get_select_title
17
- from StreamingCommunity.Src.Api.Template.Util import search_domain
18
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager
16
+ from StreamingCommunity.Api.Template import get_select_title
17
+ from StreamingCommunity.Api.Template.Util import search_domain
18
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaManager
19
19
 
20
20
 
21
21
  # Variable
@@ -4,7 +4,7 @@ from unidecode import unidecode
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util.console import console, msg
7
+ from StreamingCommunity.Util.console import console, msg
8
8
 
9
9
 
10
10
  # Logic class
@@ -4,12 +4,12 @@ import os
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
7
+ from StreamingCommunity.Util._jsonConfig import config_manager
8
8
 
9
9
 
10
10
  SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
11
11
  ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
12
12
  DOMAIN_NOW = config_manager.get_dict('SITE', SITE_NAME)['domain']
13
13
 
14
- MOVIE_FOLDER = "Movie"
15
- SERIES_FOLDER= "Serie"
14
+ SERIES_FOLDER = config_manager.get('DEFAULT', 'serie_folder_name')
15
+ MOVIE_FOLDER = config_manager.get('DEFAULT', 'movie_folder_name')
@@ -6,29 +6,28 @@ import logging
6
6
 
7
7
 
8
8
  # Internal utilities
9
- from StreamingCommunity.Src.Util.console import console, msg
10
- from StreamingCommunity.Src.Util.os import os_manager
11
- from StreamingCommunity.Src.Util.message import start_message
12
- from StreamingCommunity.Src.Lib.Downloader import MP4_downloader
9
+ from StreamingCommunity.Util.console import console, msg
10
+ from StreamingCommunity.Util.os import os_manager
11
+ from StreamingCommunity.Util.message import start_message
12
+ from StreamingCommunity.Lib.Downloader import MP4_downloader
13
13
 
14
14
 
15
15
  # Logic class
16
16
  from .util.ScrapeSerie import ScrapeSerieAnime
17
- from StreamingCommunity.Src.Api.Template.Util import manage_selection
18
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem
17
+ from StreamingCommunity.Api.Template.Util import manage_selection
18
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
19
19
 
20
20
 
21
21
  # Player
22
- from StreamingCommunity.Src.Api.Player.vixcloud import VideoSourceAnime
22
+ from StreamingCommunity.Api.Player.vixcloud import VideoSourceAnime
23
23
 
24
24
 
25
25
  # Variable
26
26
  from .costant import ROOT_PATH, SITE_NAME, SERIES_FOLDER, MOVIE_FOLDER
27
- scrape_serie = ScrapeSerieAnime(SITE_NAME)
28
- video_source = VideoSourceAnime(SITE_NAME)
29
27
 
30
28
 
31
- def download_episode(index_select: int):
29
+
30
+ def download_episode(index_select: int, scrape_serie: ScrapeSerieAnime, video_source: VideoSourceAnime):
32
31
  """
33
32
  Downloads the selected episode.
34
33
 
@@ -47,12 +46,6 @@ def download_episode(index_select: int):
47
46
  # Collect mp4 url
48
47
  video_source.get_embed(obj_episode.id)
49
48
 
50
- # Get the js script from the episode
51
- #js_script = video_source.get_embed(obj_episode.id)
52
-
53
- # Parse parameter in embed text
54
- #video_source.parse_script(js_script)
55
-
56
49
  # Create output path
57
50
  title_name = f"{obj_episode.number}.mp4"
58
51
 
@@ -90,6 +83,8 @@ def download_series(select_title: MediaItem):
90
83
  - tv_id (int): The ID of the TV series.
91
84
  - tv_name (str): The name of the TV series.
92
85
  """
86
+ scrape_serie = ScrapeSerieAnime(SITE_NAME)
87
+ video_source = VideoSourceAnime(SITE_NAME)
93
88
 
94
89
  # Set up video source
95
90
  scrape_serie.setup(None, select_title.id, select_title.slug)
@@ -106,12 +101,12 @@ def download_series(select_title: MediaItem):
106
101
 
107
102
  # Download selected episodes
108
103
  if len(list_episode_select) == 1 and last_command != "*":
109
- download_episode(list_episode_select[0]-1)
104
+ download_episode(list_episode_select[0]-1, scrape_serie, video_source)
110
105
 
111
106
  # Download all other episodes selecter
112
107
  else:
113
108
  for i_episode in list_episode_select:
114
- download_episode(i_episode-1)
109
+ download_episode(i_episode-1, scrape_serie, video_source)
115
110
 
116
111
 
117
112
  def download_film(select_title: MediaItem):
@@ -123,9 +118,13 @@ def download_film(select_title: MediaItem):
123
118
  - title_name (str): The title of the film.
124
119
  """
125
120
 
121
+ # Init class
122
+ scrape_serie = ScrapeSerieAnime(SITE_NAME)
123
+ video_source = VideoSourceAnime(SITE_NAME)
124
+
126
125
  # Set up video source
127
126
  scrape_serie.setup(None, select_title.id, select_title.slug)
128
127
  scrape_serie.is_series = False
129
128
 
130
129
  # Start download
131
- download_episode(0)
130
+ download_episode(0, scrape_serie, video_source)
@@ -9,15 +9,15 @@ from bs4 import BeautifulSoup
9
9
 
10
10
 
11
11
  # Internal utilities
12
- from StreamingCommunity.Src.Util.console import console
13
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
14
- from StreamingCommunity.Src.Util.table import TVShowManager
12
+ from StreamingCommunity.Util.console import console
13
+ from StreamingCommunity.Util._jsonConfig import config_manager
14
+ from StreamingCommunity.Util.table import TVShowManager
15
15
 
16
16
 
17
17
  # Logic class
18
- from StreamingCommunity.Src.Api.Template import get_select_title
19
- from StreamingCommunity.Src.Api.Template.Util import search_domain
20
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager
18
+ from StreamingCommunity.Api.Template import get_select_title
19
+ from StreamingCommunity.Api.Template.Util import search_domain
20
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaManager
21
21
 
22
22
 
23
23
  # Variable
@@ -8,9 +8,9 @@ import httpx
8
8
 
9
9
 
10
10
  # Internal utilities
11
- from StreamingCommunity.Src.Util.headers import get_headers
12
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
13
- from StreamingCommunity.Src.Api.Player.Helper.Vixcloud.util import EpisodeManager, Episode
11
+ from StreamingCommunity.Util.headers import get_headers
12
+ from StreamingCommunity.Util._jsonConfig import config_manager
13
+ from StreamingCommunity.Api.Player.Helper.Vixcloud.util import EpisodeManager, Episode
14
14
 
15
15
 
16
16
  # Variable
@@ -4,7 +4,7 @@ from unidecode import unidecode
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util.console import console, msg
7
+ from StreamingCommunity.Util.console import console, msg
8
8
 
9
9
 
10
10
  # Logic class
@@ -4,12 +4,12 @@ import os
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
7
+ from StreamingCommunity.Util._jsonConfig import config_manager
8
8
 
9
9
 
10
10
  SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
11
11
  ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
12
12
  DOMAIN_NOW = config_manager.get_dict('SITE', SITE_NAME)['domain']
13
13
 
14
- SERIES_FOLDER = "Serie"
15
- MOVIE_FOLDER = "Film"
14
+ SERIES_FOLDER = config_manager.get('DEFAULT', 'serie_folder_name')
15
+ MOVIE_FOLDER = config_manager.get('DEFAULT', 'movie_folder_name')
@@ -6,16 +6,16 @@ from bs4 import BeautifulSoup
6
6
 
7
7
 
8
8
  # Internal utilities
9
- from StreamingCommunity.Src.Util.console import console
10
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
11
- from StreamingCommunity.Src.Util.headers import get_headers
12
- from StreamingCommunity.Src.Util.table import TVShowManager
9
+ from StreamingCommunity.Util.console import console
10
+ from StreamingCommunity.Util._jsonConfig import config_manager
11
+ from StreamingCommunity.Util.headers import get_headers
12
+ from StreamingCommunity.Util.table import TVShowManager
13
13
 
14
14
 
15
15
  # Logic class
16
- from StreamingCommunity.Src.Api.Template import get_select_title
17
- from StreamingCommunity.Src.Api.Template.Util import search_domain
18
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager
16
+ from StreamingCommunity.Api.Template import get_select_title
17
+ from StreamingCommunity.Api.Template.Util import search_domain
18
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaManager
19
19
 
20
20
 
21
21
  # Variable
@@ -4,14 +4,14 @@ import os
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util.console import console
8
- from StreamingCommunity.Src.Util.message import start_message
9
- from StreamingCommunity.Src.Util.os import os_manager
10
- from StreamingCommunity.Src.Lib.Downloader import TOR_downloader
7
+ from StreamingCommunity.Util.console import console
8
+ from StreamingCommunity.Util.message import start_message
9
+ from StreamingCommunity.Util.os import os_manager
10
+ from StreamingCommunity.Lib.Downloader import TOR_downloader
11
11
 
12
12
 
13
13
  # Logic class
14
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem
14
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
15
15
 
16
16
 
17
17
  # Config
@@ -4,7 +4,7 @@ from unidecode import unidecode
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util.console import console, msg
7
+ from StreamingCommunity.Util.console import console, msg
8
8
 
9
9
 
10
10
  # Logic class
@@ -4,12 +4,12 @@ import os
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
7
+ from StreamingCommunity.Util._jsonConfig import config_manager
8
8
 
9
9
 
10
10
  SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
11
11
  ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
12
12
  DOMAIN_NOW = config_manager.get_dict('SITE', SITE_NAME)['domain']
13
13
 
14
- MOVIE_FOLDER = "Movie"
15
- SERIES_FOLDER = "Serie"
14
+ SERIES_FOLDER = config_manager.get('DEFAULT', 'serie_folder_name')
15
+ MOVIE_FOLDER = config_manager.get('DEFAULT', 'movie_folder_name')
@@ -5,20 +5,20 @@ import time
5
5
 
6
6
 
7
7
  # Internal utilities
8
- from StreamingCommunity.Src.Util.console import console, msg
9
- from StreamingCommunity.Src.Util.os import os_manager
10
- from StreamingCommunity.Src.Util.message import start_message
11
- from StreamingCommunity.Src.Util.call_stack import get_call_stack
12
- from StreamingCommunity.Src.Lib.Downloader import HLS_Downloader
8
+ from StreamingCommunity.Util.console import console, msg
9
+ from StreamingCommunity.Util.os import os_manager
10
+ from StreamingCommunity.Util.message import start_message
11
+ from StreamingCommunity.Util.call_stack import get_call_stack
12
+ from StreamingCommunity.Lib.Downloader import HLS_Downloader
13
13
 
14
14
 
15
15
  # Logic class
16
- from StreamingCommunity.Src.Api.Template.Util import execute_search
17
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem
16
+ from StreamingCommunity.Api.Template.Util import execute_search
17
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
18
18
 
19
19
 
20
20
  # Player
21
- from StreamingCommunity.Src.Api.Player.maxstream import VideoSource
21
+ from StreamingCommunity.Api.Player.maxstream import VideoSource
22
22
 
23
23
 
24
24
  # Config
@@ -6,15 +6,15 @@ from bs4 import BeautifulSoup
6
6
 
7
7
 
8
8
  # Internal utilities
9
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
10
- from StreamingCommunity.Src.Util.headers import get_headers
11
- from StreamingCommunity.Src.Util.table import TVShowManager
9
+ from StreamingCommunity.Util._jsonConfig import config_manager
10
+ from StreamingCommunity.Util.headers import get_headers
11
+ from StreamingCommunity.Util.table import TVShowManager
12
12
 
13
13
 
14
14
  # Logic class
15
- from StreamingCommunity.Src.Api.Template import get_select_title
16
- from StreamingCommunity.Src.Api.Template.Util import search_domain
17
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager
15
+ from StreamingCommunity.Api.Template import get_select_title
16
+ from StreamingCommunity.Api.Template.Util import search_domain
17
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaManager
18
18
 
19
19
 
20
20
  # Variable
@@ -5,7 +5,7 @@ from unidecode import unidecode
5
5
 
6
6
 
7
7
  # Internal utilities
8
- from StreamingCommunity.Src.Util.console import console, msg
8
+ from StreamingCommunity.Util.console import console, msg
9
9
 
10
10
 
11
11
  # Logic class
@@ -4,7 +4,7 @@ import os
4
4
 
5
5
 
6
6
  # Internal utilities
7
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
7
+ from StreamingCommunity.Util._jsonConfig import config_manager
8
8
 
9
9
 
10
10
  SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
@@ -12,5 +12,5 @@ ROOT_PATH = config_manager.get('DEFAULT', 'root_path')
12
12
  DOMAIN_NOW = config_manager.get_dict('SITE', SITE_NAME)['domain']
13
13
  COOKIE = config_manager.get_dict('SITE', SITE_NAME)['cookie']
14
14
 
15
- MOVIE_FOLDER = "Movie"
16
- SERIES_FOLDER = "Serie"
15
+ SERIES_FOLDER = config_manager.get('DEFAULT', 'serie_folder_name')
16
+ MOVIE_FOLDER = config_manager.get('DEFAULT', 'movie_folder_name')
@@ -6,31 +6,30 @@ from urllib.parse import urlparse
6
6
 
7
7
 
8
8
  # Internal utilities
9
- from StreamingCommunity.Src.Util.console import console
10
- from StreamingCommunity.Src.Util.message import start_message
11
- from StreamingCommunity.Src.Util.os import os_manager
12
- from StreamingCommunity.Src.Util.table import TVShowManager
13
- from StreamingCommunity.Src.Lib.Downloader import MP4_downloader
9
+ from StreamingCommunity.Util.console import console
10
+ from StreamingCommunity.Util.message import start_message
11
+ from StreamingCommunity.Util.os import os_manager
12
+ from StreamingCommunity.Util.table import TVShowManager
13
+ from StreamingCommunity.Lib.Downloader import MP4_downloader
14
14
 
15
15
 
16
16
  # Logic class
17
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem
18
- from StreamingCommunity.Src.Api.Template.Util import manage_selection, map_episode_title, validate_episode_selection
17
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
18
+ from StreamingCommunity.Api.Template.Util import manage_selection, map_episode_title, validate_episode_selection
19
19
 
20
20
 
21
21
  # Player
22
22
  from .util.ScrapeSerie import GetSerieInfo
23
- from StreamingCommunity.Src.Api.Player.ddl import VideoSource
23
+ from StreamingCommunity.Api.Player.ddl import VideoSource
24
24
 
25
25
 
26
26
  # Variable
27
27
  from .costant import ROOT_PATH, SITE_NAME, SERIES_FOLDER
28
28
  table_show_manager = TVShowManager()
29
- video_source = VideoSource()
30
29
 
31
30
 
32
31
 
33
- def download_video(scape_info_serie: GetSerieInfo, index_episode_selected: int) -> None:
32
+ def download_video(index_episode_selected: int, scape_info_serie: GetSerieInfo, video_source: VideoSource) -> None:
34
33
  """
35
34
  Download a single episode video.
36
35
 
@@ -86,6 +85,7 @@ def download_thread(dict_serie: MediaItem):
86
85
 
87
86
  # Init class
88
87
  scape_info_serie = GetSerieInfo(dict_serie)
88
+ video_source = VideoSource()
89
89
 
90
90
  # Collect information about thread
91
91
  list_dict_episode = scape_info_serie.get_episode_number()
@@ -103,8 +103,7 @@ def download_thread(dict_serie: MediaItem):
103
103
 
104
104
  # Download selected episodes
105
105
  for i_episode in list_episode_select:
106
- download_video(scape_info_serie, i_episode)
107
-
106
+ download_video(i_episode, scape_info_serie, video_source)
108
107
 
109
108
 
110
109
  def display_episodes_list(obj_episode_manager) -> str:
@@ -9,16 +9,16 @@ from bs4 import BeautifulSoup
9
9
 
10
10
 
11
11
  # Internal utilities
12
- from StreamingCommunity.Src.Util.console import console
13
- from StreamingCommunity.Src.Util._jsonConfig import config_manager
14
- from StreamingCommunity.Src.Util.headers import get_headers
15
- from StreamingCommunity.Src.Util.table import TVShowManager
12
+ from StreamingCommunity.Util.console import console
13
+ from StreamingCommunity.Util._jsonConfig import config_manager
14
+ from StreamingCommunity.Util.headers import get_headers
15
+ from StreamingCommunity.Util.table import TVShowManager
16
16
 
17
17
 
18
18
  # Logic class
19
- from StreamingCommunity.Src.Api.Template import get_select_title
20
- from StreamingCommunity.Src.Api.Template.Util import search_domain
21
- from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager
19
+ from StreamingCommunity.Api.Template import get_select_title
20
+ from StreamingCommunity.Api.Template.Util import search_domain
21
+ from StreamingCommunity.Api.Template.Class.SearchType import MediaManager
22
22
 
23
23
 
24
24
  # Variable