From e76a0ebd2c4806303d5ef30a94d49891e639eefc Mon Sep 17 00:00:00 2001 From: Lovi <62809003+Lovi-0@users.noreply.github.com> Date: Sat, 23 Nov 2024 18:59:46 +0100 Subject: [PATCH] Setup for pypi --- .gitignore | 1 - MANIFEST.in | 6 + README.md | 2 +- Src/Assets/min_logo.png | Bin 15982 -> 0 bytes .../Src}/Api/Player/Helper/Vixcloud/util.py | 0 .../Src}/Api/Player/ddl.py | 6 +- .../Src}/Api/Player/maxstream.py | 4 +- .../Src}/Api/Player/supervideo.py | 4 +- .../Src}/Api/Player/vixcloud.py | 6 +- .../Src}/Api/Site/1337xx/__init__.py | 2 +- .../Src/Api/Site/1337xx}/costant.py | 2 +- .../Src}/Api/Site/1337xx/site.py | 14 +- .../Src}/Api/Site/1337xx/title.py | 12 +- .../Src}/Api/Site/altadefinizione/__init__.py | 2 +- .../Src}/Api/Site/altadefinizione/costant.py | 2 +- .../Src}/Api/Site/altadefinizione/film.py | 16 +- .../Src}/Api/Site/altadefinizione/site.py | 14 +- .../Src}/Api/Site/animeunity/__init__.py | 2 +- .../Src}/Api/Site/animeunity/anime.py | 14 +- .../Src}/Api/Site/animeunity/costant.py | 2 +- .../Src}/Api/Site/animeunity/site.py | 12 +- .../Src}/Api/Site/bitsearch/__init__.py | 2 +- .../Src}/Api/Site/bitsearch/costant.py | 2 +- .../Src}/Api/Site/bitsearch/site.py | 14 +- .../Src}/Api/Site/bitsearch/title.py | 10 +- .../Src}/Api/Site/cb01new/__init__.py | 2 +- .../Src}/Api/Site/cb01new/costant.py | 2 +- .../Src}/Api/Site/cb01new/film.py | 16 +- .../Src}/Api/Site/cb01new/site.py | 12 +- .../Site/ddlstreamitaly/Player/ScrapeSerie.py | 4 +- .../Src}/Api/Site/ddlstreamitaly/__init__.py | 2 +- .../Src}/Api/Site/ddlstreamitaly/costant.py | 2 +- .../Src}/Api/Site/ddlstreamitaly/series.py | 16 +- .../Src}/Api/Site/ddlstreamitaly/site.py | 14 +- .../Site/guardaserie/Player/ScrapeSerie.py | 4 +- .../Src}/Api/Site/guardaserie/__init__.py | 2 +- .../Src}/Api/Site/guardaserie/costant.py | 2 +- .../Src}/Api/Site/guardaserie/series.py | 16 +- .../Src}/Api/Site/guardaserie/site.py | 14 +- .../Src}/Api/Site/mostraguarda/__init__.py | 4 +- .../Src}/Api/Site/mostraguarda/costant.py | 2 +- .../Src}/Api/Site/mostraguarda/film.py | 18 +- .../Src}/Api/Site/piratebays/__init__.py | 2 +- .../Src/Api/Site/piratebays}/costant.py | 2 +- .../Src}/Api/Site/piratebays/site.py | 12 +- .../Src}/Api/Site/piratebays/title.py | 10 +- .../Api/Site/streamingcommunity/__init__.py | 2 +- .../Api/Site/streamingcommunity/costant.py | 2 +- .../Src}/Api/Site/streamingcommunity/film.py | 16 +- .../Api/Site/streamingcommunity/series.py | 16 +- .../Src}/Api/Site/streamingcommunity/site.py | 14 +- .../Src}/Api/Template/Class/SearchType.py | 0 .../Src}/Api/Template/Util/__init__.py | 0 .../Src}/Api/Template/Util/get_domain.py | 6 +- .../Src}/Api/Template/Util/manage_ep.py | 4 +- .../Src}/Api/Template/Util/recall_search.py | 2 +- .../Src}/Api/Template/__init__.py | 0 .../Src}/Api/Template/site.py | 2 +- .../Src}/Lib/Downloader/HLS/downloader.py | 8 +- .../Src}/Lib/Downloader/HLS/proxyes.py | 6 +- .../Src}/Lib/Downloader/HLS/segments.py | 12 +- .../Src}/Lib/Downloader/MP4/downloader.py | 10 +- .../Src}/Lib/Downloader/TOR/downloader.py | 6 +- .../Src}/Lib/Downloader/__init__.py | 0 .../Src}/Lib/Driver/driver_1.py | 2 +- .../Src}/Lib/FFmpeg/__init__.py | 0 .../Src}/Lib/FFmpeg/capture.py | 4 +- .../Src}/Lib/FFmpeg/command.py | 6 +- .../Src}/Lib/FFmpeg/util.py | 2 +- .../Src}/Lib/M3U8/__init__.py | 0 .../Src}/Lib/M3U8/decryptor.py | 2 +- .../Src}/Lib/M3U8/estimator.py | 6 +- .../Src}/Lib/M3U8/parser.py | 2 +- .../Src}/Lib/M3U8/url_fixer.py | 0 .../Src}/Lib/TMBD/__init__.py | 0 .../Src}/Lib/TMBD/obj_tmbd.py | 0 .../Src}/Lib/TMBD/tmdb.py | 2 +- .../Src}/Upload/update.py | 2 +- .../Src}/Upload/version.py | 0 .../Src}/Util/_jsonConfig.py | 26 +- .../Src}/Util/call_stack.py | 0 {Src => StreamingCommunity/Src}/Util/color.py | 0 .../Src}/Util/console.py | 0 .../Src}/Util/headers.py | 0 .../Src}/Util/logger.py | 2 +- .../Src}/Util/message.py | 4 +- {Src => StreamingCommunity/Src}/Util/os.py | 6 +- {Src => StreamingCommunity/Src}/Util/table.py | 0 run.py => StreamingCommunity/run.py | 405 +++++++++--------- Test/Download/HLS.py | 6 +- Test/Download/MP4.py | 6 +- Test/Download/TOR.py | 6 +- Test/Player/maxtream.py | 6 +- Test/Player/supervideo.py | 6 +- Test/Player/vixcloud.py | 6 +- Test/big_search.py | 8 +- setup.py | 33 ++ test_run.py | 3 + update_version.py => update.py | 2 +- 99 files changed, 516 insertions(+), 452 deletions(-) create mode 100644 MANIFEST.in delete mode 100644 Src/Assets/min_logo.png rename {Src => StreamingCommunity/Src}/Api/Player/Helper/Vixcloud/util.py (100%) rename {Src => StreamingCommunity/Src}/Api/Player/ddl.py (91%) rename {Src => StreamingCommunity/Src}/Api/Player/maxstream.py (97%) rename {Src => StreamingCommunity/Src}/Api/Player/supervideo.py (97%) rename {Src => StreamingCommunity/Src}/Api/Player/vixcloud.py (98%) rename {Src => StreamingCommunity/Src}/Api/Site/1337xx/__init__.py (94%) rename {Src/Api/Site/piratebays => StreamingCommunity/Src/Api/Site/1337xx}/costant.py (81%) rename {Src => StreamingCommunity/Src}/Api/Site/1337xx/site.py (82%) rename {Src => StreamingCommunity/Src}/Api/Site/1337xx/title.py (80%) rename {Src => StreamingCommunity/Src}/Api/Site/altadefinizione/__init__.py (94%) rename {Src => StreamingCommunity/Src}/Api/Site/altadefinizione/costant.py (81%) rename {Src => StreamingCommunity/Src}/Api/Site/altadefinizione/film.py (75%) rename {Src => StreamingCommunity/Src}/Api/Site/altadefinizione/site.py (83%) rename {Src => StreamingCommunity/Src}/Api/Site/animeunity/__init__.py (94%) rename {Src => StreamingCommunity/Src}/Api/Site/animeunity/anime.py (87%) rename {Src => StreamingCommunity/Src}/Api/Site/animeunity/costant.py (81%) rename {Src => StreamingCommunity/Src}/Api/Site/animeunity/site.py (92%) rename {Src => StreamingCommunity/Src}/Api/Site/bitsearch/__init__.py (94%) rename {Src => StreamingCommunity/Src}/Api/Site/bitsearch/costant.py (81%) rename {Src => StreamingCommunity/Src}/Api/Site/bitsearch/site.py (83%) rename {Src => StreamingCommunity/Src}/Api/Site/bitsearch/title.py (76%) rename {Src => StreamingCommunity/Src}/Api/Site/cb01new/__init__.py (94%) rename {Src => StreamingCommunity/Src}/Api/Site/cb01new/costant.py (81%) rename {Src => StreamingCommunity/Src}/Api/Site/cb01new/film.py (76%) rename {Src => StreamingCommunity/Src}/Api/Site/cb01new/site.py (80%) rename {Src => StreamingCommunity/Src}/Api/Site/ddlstreamitaly/Player/ScrapeSerie.py (94%) rename {Src => StreamingCommunity/Src}/Api/Site/ddlstreamitaly/__init__.py (95%) rename {Src => StreamingCommunity/Src}/Api/Site/ddlstreamitaly/costant.py (83%) rename {Src => StreamingCommunity/Src}/Api/Site/ddlstreamitaly/series.py (86%) rename {Src => StreamingCommunity/Src}/Api/Site/ddlstreamitaly/site.py (83%) rename {Src => StreamingCommunity/Src}/Api/Site/guardaserie/Player/ScrapeSerie.py (95%) rename {Src => StreamingCommunity/Src}/Api/Site/guardaserie/__init__.py (94%) rename {Src => StreamingCommunity/Src}/Api/Site/guardaserie/costant.py (81%) rename {Src => StreamingCommunity/Src}/Api/Site/guardaserie/series.py (90%) rename {Src => StreamingCommunity/Src}/Api/Site/guardaserie/site.py (81%) rename {Src => StreamingCommunity/Src}/Api/Site/mostraguarda/__init__.py (88%) rename {Src => StreamingCommunity/Src}/Api/Site/mostraguarda/costant.py (81%) rename {Src => StreamingCommunity/Src}/Api/Site/mostraguarda/film.py (79%) rename {Src => StreamingCommunity/Src}/Api/Site/piratebays/__init__.py (94%) rename {Src/Api/Site/1337xx => StreamingCommunity/Src/Api/Site/piratebays}/costant.py (81%) rename {Src => StreamingCommunity/Src}/Api/Site/piratebays/site.py (86%) rename {Src => StreamingCommunity/Src}/Api/Site/piratebays/title.py (76%) rename {Src => StreamingCommunity/Src}/Api/Site/streamingcommunity/__init__.py (95%) rename {Src => StreamingCommunity/Src}/Api/Site/streamingcommunity/costant.py (80%) rename {Src => StreamingCommunity/Src}/Api/Site/streamingcommunity/film.py (77%) rename {Src => StreamingCommunity/Src}/Api/Site/streamingcommunity/series.py (91%) rename {Src => StreamingCommunity/Src}/Api/Site/streamingcommunity/site.py (87%) rename {Src => StreamingCommunity/Src}/Api/Template/Class/SearchType.py (100%) rename {Src => StreamingCommunity/Src}/Api/Template/Util/__init__.py (100%) rename {Src => StreamingCommunity/Src}/Api/Template/Util/get_domain.py (95%) rename {Src => StreamingCommunity/Src}/Api/Template/Util/manage_ep.py (97%) rename {Src => StreamingCommunity/Src}/Api/Template/Util/recall_search.py (93%) rename {Src => StreamingCommunity/Src}/Api/Template/__init__.py (100%) rename {Src => StreamingCommunity/Src}/Api/Template/site.py (98%) rename {Src => StreamingCommunity/Src}/Lib/Downloader/HLS/downloader.py (99%) rename {Src => StreamingCommunity/Src}/Lib/Downloader/HLS/proxyes.py (94%) rename {Src => StreamingCommunity/Src}/Lib/Downloader/HLS/segments.py (98%) rename {Src => StreamingCommunity/Src}/Lib/Downloader/MP4/downloader.py (92%) rename {Src => StreamingCommunity/Src}/Lib/Downloader/TOR/downloader.py (97%) rename {Src => StreamingCommunity/Src}/Lib/Downloader/__init__.py (100%) rename {Src => StreamingCommunity/Src}/Lib/Driver/driver_1.py (96%) rename {Src => StreamingCommunity/Src}/Lib/FFmpeg/__init__.py (100%) rename {Src => StreamingCommunity/Src}/Lib/FFmpeg/capture.py (97%) rename {Src => StreamingCommunity/Src}/Lib/FFmpeg/command.py (98%) rename {Src => StreamingCommunity/Src}/Lib/FFmpeg/util.py (99%) rename {Src => StreamingCommunity/Src}/Lib/M3U8/__init__.py (100%) rename {Src => StreamingCommunity/Src}/Lib/M3U8/decryptor.py (98%) rename {Src => StreamingCommunity/Src}/Lib/M3U8/estimator.py (97%) rename {Src => StreamingCommunity/Src}/Lib/M3U8/parser.py (99%) rename {Src => StreamingCommunity/Src}/Lib/M3U8/url_fixer.py (100%) rename {Src => StreamingCommunity/Src}/Lib/TMBD/__init__.py (100%) rename {Src => StreamingCommunity/Src}/Lib/TMBD/obj_tmbd.py (100%) rename {Src => StreamingCommunity/Src}/Lib/TMBD/tmdb.py (99%) rename {Src => StreamingCommunity/Src}/Upload/update.py (97%) rename {Src => StreamingCommunity/Src}/Upload/version.py (100%) rename {Src => StreamingCommunity/Src}/Util/_jsonConfig.py (83%) rename {Src => StreamingCommunity/Src}/Util/call_stack.py (100%) rename {Src => StreamingCommunity/Src}/Util/color.py (100%) rename {Src => StreamingCommunity/Src}/Util/console.py (100%) rename {Src => StreamingCommunity/Src}/Util/headers.py (100%) rename {Src => StreamingCommunity/Src}/Util/logger.py (96%) rename {Src => StreamingCommunity/Src}/Util/message.py (92%) rename {Src => StreamingCommunity/Src}/Util/os.py (98%) rename {Src => StreamingCommunity/Src}/Util/table.py (100%) rename run.py => StreamingCommunity/run.py (90%) create mode 100644 setup.py create mode 100644 test_run.py rename update_version.py => update.py (98%) diff --git a/.gitignore b/.gitignore index 9c6faab..c118cf2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -<<<<<<< HEAD # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..5e000f6 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,6 @@ +include README.md +include LICENSE +include requirements.txt +include config.py +recursive-include Test/ * +recursive-include StreamingCommunity/ *.py diff --git a/README.md b/README.md index d84c7ac..9af8763 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- +

This repository provide a simple script designed to downloading films and series from a variety of supported streaming platforms. [SITE](#website-status-) diff --git a/Src/Assets/min_logo.png b/Src/Assets/min_logo.png deleted file mode 100644 index c4c3917b5d36504cca8c7b93479a843b20e79a71..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15982 zcmbWec{mh$|2Li#3aRXStCA5DX<<0!&_bzX8cnvD7%{fWk{Kjx)>COBp@@pXjAh8a zjzUCe24hW@89Os}zt5C&pZj}%@8|km&-2G|bfxkByqDMOy*|Ej`JC`}neCf4Z4$n4 z{?BWhHu36%@81aUfv;QN-d+a((2)4_h#2E}hx5i5xAsVzU+ed7JBb z^Lv{%?WpGd$5ZF>{`RI#y1WXkm7f>Zx{K_57Q*?bo(mY!MWCPqX|( z+x}Q!x0}>QQHQhxoPh(p1?c40(1b>Qjn4;WD{It5^^89u&>vYrMVgN&LnBVe2jnaujPqiwc@@pDRnc3yKIuF=% zOu(CM>LW|_H_DzeyqTHwv`g{caPIFG*jsbbwdvGw;I_DPiawe+4#N}Iu~eDJr&cm` z)?<0RAY@on+jF8Z5jXLXY8P}jN>MLS9_FnX|LPUX{O=c5q`t6xnQ-c!5)Me`P5628 z{>T-!zX*O0c1Fwp_&uj_R9EzgZ#Ew9Ki}6ruY7+v!870%~bhjFSM){RzSP#0kOZjVq3rgV}otKJtwgC z!El140(5bJhq~tzx=rmx%b$~OTTj|MJ3H4xOoV7>P#zu>j`4;#aE;@~#ls|HAJlth zQ`GtOf2%>D#a&Zs_wVl`4$25^d^UBraPWqC(2w~xem0c+XTaVKuSFzR{`D&=ccLIr ze*N=#MI=(+Q&;gF`VPR~-Y4>yv_BfN!kiM(A$eo!Z zEUR_9E?Uu3dgmo$%4g~RVTqrOJ9oT{j~9$q zz;@;-$0sC=!$g1od}zDzrAt8rwR3a#DZtNra@$7||C^vK*5`jK14^*}8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;{fg^J~%}uH-j)5lq`AtCBInTl@yfiY(=s}n9BZz2bl(@y?p-VLigzI>TS(tS@H&iR9Od5V{ zKvU+knq#L9+_XR-TrU)EZ+dm=nY^|K@t+f@djmC(uaqEe-DCU&bUnR_c99I>7cL0Yh;0Q?i zv#{8PO#3AMFHWic`-M_t<<8xiM2v@ck(&D!SKSr6*#;oe{6VrB46!kI&Egp%M{iE+^^A zhXsKgY@GpF7%ai5x2zN#aTQ_ypH8X%>nRyZ$-=<*O|%aS zO@C3oGK5`Snx~ifEa#{qDRY*v_$}KWUvCDdn284)dVH71S;^r?Z$611;Zl{p2rMSS zZ*7qtqPNn|GFkg!;+_4k4FCWdyA;Z&BVBHLcDtRUfSP+sXZX{T{d90Co{0=0UtP5}90irW6Kitg zOs;h>r{SnzM#Ia2nFh7yqaS}f?a3Xg+{t%<(|ymx0~FkLMn+$ZcbBfOEz=`U^u#he zx}5%Qe4<{_irgKw^z@PvbbX329~2|>!M1K0>yhA5f#yS5fV>@`sN-st>Owc*R-OB=3Wmzmi ztA(?JDsAdJi-Ep#)qF;c=rur|mlog(2t0$Axy7ZhKbSTD-D>im+gYSbsrcO|miXyf zn9;pkZnffcFdscE+N`&Zmx{4I5u)^QG%Y>{M9aJ9?vFOk4cQgf^1))z>Bb$$Ru`y>?c-jLlB(w?7{$2kS401}Z&jyy vuyT}Dg=G0ct-5T`at!wgwnl_i#YZRCvm+N4#KDdDrV9p_|I9jT{pkM#V*F3? diff --git a/Src/Api/Player/Helper/Vixcloud/util.py b/StreamingCommunity/Src/Api/Player/Helper/Vixcloud/util.py similarity index 100% rename from Src/Api/Player/Helper/Vixcloud/util.py rename to StreamingCommunity/Src/Api/Player/Helper/Vixcloud/util.py diff --git a/Src/Api/Player/ddl.py b/StreamingCommunity/Src/Api/Player/ddl.py similarity index 91% rename from Src/Api/Player/ddl.py rename to StreamingCommunity/Src/Api/Player/ddl.py index 314b0dc..485b7b7 100644 --- a/Src/Api/Player/ddl.py +++ b/StreamingCommunity/Src/Api/Player/ddl.py @@ -9,12 +9,12 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers # Variable -from Src.Api.Site.ddlstreamitaly.costant import COOKIE +from StreamingCommunity.Src.Api.Site.ddlstreamitaly.costant import COOKIE max_timeout = config_manager.get_int("REQUESTS", "timeout") diff --git a/Src/Api/Player/maxstream.py b/StreamingCommunity/Src/Api/Player/maxstream.py similarity index 97% rename from Src/Api/Player/maxstream.py rename to StreamingCommunity/Src/Api/Player/maxstream.py index 41f033c..b2c1862 100644 --- a/Src/Api/Player/maxstream.py +++ b/StreamingCommunity/Src/Api/Player/maxstream.py @@ -11,8 +11,8 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers # Variable diff --git a/Src/Api/Player/supervideo.py b/StreamingCommunity/Src/Api/Player/supervideo.py similarity index 97% rename from Src/Api/Player/supervideo.py rename to StreamingCommunity/Src/Api/Player/supervideo.py index 6d3b540..b9f644f 100644 --- a/Src/Api/Player/supervideo.py +++ b/StreamingCommunity/Src/Api/Player/supervideo.py @@ -11,8 +11,8 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers # Variable diff --git a/Src/Api/Player/vixcloud.py b/StreamingCommunity/Src/Api/Player/vixcloud.py similarity index 98% rename from Src/Api/Player/vixcloud.py rename to StreamingCommunity/Src/Api/Player/vixcloud.py index 34cce99..c832022 100644 --- a/Src/Api/Player/vixcloud.py +++ b/StreamingCommunity/Src/Api/Player/vixcloud.py @@ -11,9 +11,9 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.headers import get_headers -from Src.Util.console import console, Panel -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.console import console, Panel +from StreamingCommunity.Src.Util._jsonConfig import config_manager from .Helper.Vixcloud.util import Episode, EpisodeManager, Season, SeasonManager, WindowVideo, WindowParameter, DynamicJSONConverter diff --git a/Src/Api/Site/1337xx/__init__.py b/StreamingCommunity/Src/Api/Site/1337xx/__init__.py similarity index 94% rename from Src/Api/Site/1337xx/__init__.py rename to StreamingCommunity/Src/Api/Site/1337xx/__init__.py index 144962a..af364c1 100644 --- a/Src/Api/Site/1337xx/__init__.py +++ b/StreamingCommunity/Src/Api/Site/1337xx/__init__.py @@ -4,7 +4,7 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class diff --git a/Src/Api/Site/piratebays/costant.py b/StreamingCommunity/Src/Api/Site/1337xx/costant.py similarity index 81% rename from Src/Api/Site/piratebays/costant.py rename to StreamingCommunity/Src/Api/Site/1337xx/costant.py index 7243c3d..37708e4 100644 --- a/Src/Api/Site/piratebays/costant.py +++ b/StreamingCommunity/Src/Api/Site/1337xx/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/1337xx/site.py b/StreamingCommunity/Src/Api/Site/1337xx/site.py similarity index 82% rename from Src/Api/Site/1337xx/site.py rename to StreamingCommunity/Src/Api/Site/1337xx/site.py index 698ccab..e1fd33c 100644 --- a/Src/Api/Site/1337xx/site.py +++ b/StreamingCommunity/Src/Api/Site/1337xx/site.py @@ -6,16 +6,16 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.table import TVShowManager # Logic class -from Src.Api.Template import get_select_title -from Src.Api.Template.Util import search_domain -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template import get_select_title +from StreamingCommunity.Src.Api.Template.Util import search_domain +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Variable diff --git a/Src/Api/Site/1337xx/title.py b/StreamingCommunity/Src/Api/Site/1337xx/title.py similarity index 80% rename from Src/Api/Site/1337xx/title.py rename to StreamingCommunity/Src/Api/Site/1337xx/title.py index dbfc8bf..842febe 100644 --- a/Src/Api/Site/1337xx/title.py +++ b/StreamingCommunity/Src/Api/Site/1337xx/title.py @@ -9,15 +9,15 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console -from Src.Util.os import os_manager -from Src.Util.message import start_message -from Src.Util.headers import get_headers -from Src.Lib.Downloader import TOR_downloader +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Lib.Downloader import TOR_downloader # Logic class -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Config diff --git a/Src/Api/Site/altadefinizione/__init__.py b/StreamingCommunity/Src/Api/Site/altadefinizione/__init__.py similarity index 94% rename from Src/Api/Site/altadefinizione/__init__.py rename to StreamingCommunity/Src/Api/Site/altadefinizione/__init__.py index 6980413..41f4b99 100644 --- a/Src/Api/Site/altadefinizione/__init__.py +++ b/StreamingCommunity/Src/Api/Site/altadefinizione/__init__.py @@ -4,7 +4,7 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class diff --git a/Src/Api/Site/altadefinizione/costant.py b/StreamingCommunity/Src/Api/Site/altadefinizione/costant.py similarity index 81% rename from Src/Api/Site/altadefinizione/costant.py rename to StreamingCommunity/Src/Api/Site/altadefinizione/costant.py index 9173fc4..bcfbbba 100644 --- a/Src/Api/Site/altadefinizione/costant.py +++ b/StreamingCommunity/Src/Api/Site/altadefinizione/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/altadefinizione/film.py b/StreamingCommunity/Src/Api/Site/altadefinizione/film.py similarity index 75% rename from Src/Api/Site/altadefinizione/film.py rename to StreamingCommunity/Src/Api/Site/altadefinizione/film.py index 0c7d738..42677ec 100644 --- a/Src/Api/Site/altadefinizione/film.py +++ b/StreamingCommunity/Src/Api/Site/altadefinizione/film.py @@ -5,20 +5,20 @@ import time # Internal utilities -from Src.Util.console import console, msg -from Src.Util.os import os_manager -from Src.Util.message import start_message -from Src.Util.call_stack import get_call_stack -from Src.Lib.Downloader import HLS_Downloader +from StreamingCommunity.Src.Util.console import console, msg +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.call_stack import get_call_stack +from StreamingCommunity.Src.Lib.Downloader import HLS_Downloader # Logic class -from Src.Api.Template.Util import execute_search -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Util import execute_search +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Player -from Src.Api.Player.supervideo import VideoSource +from StreamingCommunity.Src.Api.Player.supervideo import VideoSource # Config diff --git a/Src/Api/Site/altadefinizione/site.py b/StreamingCommunity/Src/Api/Site/altadefinizione/site.py similarity index 83% rename from Src/Api/Site/altadefinizione/site.py rename to StreamingCommunity/Src/Api/Site/altadefinizione/site.py index 875fec3..98feaad 100644 --- a/Src/Api/Site/altadefinizione/site.py +++ b/StreamingCommunity/Src/Api/Site/altadefinizione/site.py @@ -6,16 +6,16 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.table import TVShowManager # Logic class -from Src.Api.Template import get_select_title -from Src.Api.Template.Util import search_domain -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template import get_select_title +from StreamingCommunity.Src.Api.Template.Util import search_domain +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Variable diff --git a/Src/Api/Site/animeunity/__init__.py b/StreamingCommunity/Src/Api/Site/animeunity/__init__.py similarity index 94% rename from Src/Api/Site/animeunity/__init__.py rename to StreamingCommunity/Src/Api/Site/animeunity/__init__.py index 2d38b95..c63b867 100644 --- a/Src/Api/Site/animeunity/__init__.py +++ b/StreamingCommunity/Src/Api/Site/animeunity/__init__.py @@ -4,7 +4,7 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class diff --git a/Src/Api/Site/animeunity/anime.py b/StreamingCommunity/Src/Api/Site/animeunity/anime.py similarity index 87% rename from Src/Api/Site/animeunity/anime.py rename to StreamingCommunity/Src/Api/Site/animeunity/anime.py index 57d31d9..5ba1bca 100644 --- a/Src/Api/Site/animeunity/anime.py +++ b/StreamingCommunity/Src/Api/Site/animeunity/anime.py @@ -6,19 +6,19 @@ import logging # Internal utilities -from Src.Util.console import console, msg -from Src.Util.os import os_manager -from Src.Util.message import start_message -from Src.Lib.Downloader import MP4_downloader +from StreamingCommunity.Src.Util.console import console, msg +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Lib.Downloader import MP4_downloader # Logic class -from Src.Api.Template.Util import manage_selection -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Util import manage_selection +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Player -from Src.Api.Player.vixcloud import AnimeVideoSource as VideoSource +from StreamingCommunity.Src.Api.Player.vixcloud import AnimeVideoSource as VideoSource # Variable diff --git a/Src/Api/Site/animeunity/costant.py b/StreamingCommunity/Src/Api/Site/animeunity/costant.py similarity index 81% rename from Src/Api/Site/animeunity/costant.py rename to StreamingCommunity/Src/Api/Site/animeunity/costant.py index 308ffa4..9002c8f 100644 --- a/Src/Api/Site/animeunity/costant.py +++ b/StreamingCommunity/Src/Api/Site/animeunity/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/animeunity/site.py b/StreamingCommunity/Src/Api/Site/animeunity/site.py similarity index 92% rename from Src/Api/Site/animeunity/site.py rename to StreamingCommunity/Src/Api/Site/animeunity/site.py index 5e27509..a11aeef 100644 --- a/Src/Api/Site/animeunity/site.py +++ b/StreamingCommunity/Src/Api/Site/animeunity/site.py @@ -9,15 +9,15 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console -from Src.Util._jsonConfig import config_manager -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.table import TVShowManager # Logic class -from Src.Api.Template import get_select_title -from Src.Api.Template.Util import search_domain -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template import get_select_title +from StreamingCommunity.Src.Api.Template.Util import search_domain +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Variable diff --git a/Src/Api/Site/bitsearch/__init__.py b/StreamingCommunity/Src/Api/Site/bitsearch/__init__.py similarity index 94% rename from Src/Api/Site/bitsearch/__init__.py rename to StreamingCommunity/Src/Api/Site/bitsearch/__init__.py index abdfe7f..ff6a3d6 100644 --- a/Src/Api/Site/bitsearch/__init__.py +++ b/StreamingCommunity/Src/Api/Site/bitsearch/__init__.py @@ -4,7 +4,7 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class diff --git a/Src/Api/Site/bitsearch/costant.py b/StreamingCommunity/Src/Api/Site/bitsearch/costant.py similarity index 81% rename from Src/Api/Site/bitsearch/costant.py rename to StreamingCommunity/Src/Api/Site/bitsearch/costant.py index dac30e8..2aa7117 100644 --- a/Src/Api/Site/bitsearch/costant.py +++ b/StreamingCommunity/Src/Api/Site/bitsearch/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/bitsearch/site.py b/StreamingCommunity/Src/Api/Site/bitsearch/site.py similarity index 83% rename from Src/Api/Site/bitsearch/site.py rename to StreamingCommunity/Src/Api/Site/bitsearch/site.py index c4e2068..0bb37c4 100644 --- a/Src/Api/Site/bitsearch/site.py +++ b/StreamingCommunity/Src/Api/Site/bitsearch/site.py @@ -6,16 +6,16 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.table import TVShowManager # Logic class -from Src.Api.Template import get_select_title -from Src.Api.Template.Util import search_domain -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template import get_select_title +from StreamingCommunity.Src.Api.Template.Util import search_domain +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Variable diff --git a/Src/Api/Site/bitsearch/title.py b/StreamingCommunity/Src/Api/Site/bitsearch/title.py similarity index 76% rename from Src/Api/Site/bitsearch/title.py rename to StreamingCommunity/Src/Api/Site/bitsearch/title.py index 4e6c05c..b9f41f6 100644 --- a/Src/Api/Site/bitsearch/title.py +++ b/StreamingCommunity/Src/Api/Site/bitsearch/title.py @@ -4,14 +4,14 @@ import os # Internal utilities -from Src.Util.console import console -from Src.Util.message import start_message -from Src.Util.os import os_manager -from Src.Lib.Downloader import TOR_downloader +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Lib.Downloader import TOR_downloader # Logic class -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Config diff --git a/Src/Api/Site/cb01new/__init__.py b/StreamingCommunity/Src/Api/Site/cb01new/__init__.py similarity index 94% rename from Src/Api/Site/cb01new/__init__.py rename to StreamingCommunity/Src/Api/Site/cb01new/__init__.py index b2a080f..3d7cfb4 100644 --- a/Src/Api/Site/cb01new/__init__.py +++ b/StreamingCommunity/Src/Api/Site/cb01new/__init__.py @@ -4,7 +4,7 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class diff --git a/Src/Api/Site/cb01new/costant.py b/StreamingCommunity/Src/Api/Site/cb01new/costant.py similarity index 81% rename from Src/Api/Site/cb01new/costant.py rename to StreamingCommunity/Src/Api/Site/cb01new/costant.py index ba6ce6e..a72bf31 100644 --- a/Src/Api/Site/cb01new/costant.py +++ b/StreamingCommunity/Src/Api/Site/cb01new/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/cb01new/film.py b/StreamingCommunity/Src/Api/Site/cb01new/film.py similarity index 76% rename from Src/Api/Site/cb01new/film.py rename to StreamingCommunity/Src/Api/Site/cb01new/film.py index e598cf6..3e83f52 100644 --- a/Src/Api/Site/cb01new/film.py +++ b/StreamingCommunity/Src/Api/Site/cb01new/film.py @@ -5,20 +5,20 @@ import time # Internal utilities -from Src.Util.console import console, msg -from Src.Util.os import os_manager -from Src.Util.message import start_message -from Src.Util.call_stack import get_call_stack -from Src.Lib.Downloader import HLS_Downloader +from StreamingCommunity.Src.Util.console import console, msg +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.call_stack import get_call_stack +from StreamingCommunity.Src.Lib.Downloader import HLS_Downloader # Logic class -from Src.Api.Template.Util import execute_search -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Util import execute_search +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Player -from Src.Api.Player.maxstream import VideoSource +from StreamingCommunity.Src.Api.Player.maxstream import VideoSource # Config diff --git a/Src/Api/Site/cb01new/site.py b/StreamingCommunity/Src/Api/Site/cb01new/site.py similarity index 80% rename from Src/Api/Site/cb01new/site.py rename to StreamingCommunity/Src/Api/Site/cb01new/site.py index afb0ec6..df2c4df 100644 --- a/Src/Api/Site/cb01new/site.py +++ b/StreamingCommunity/Src/Api/Site/cb01new/site.py @@ -6,15 +6,15 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.table import TVShowManager # Logic class -from Src.Api.Template import get_select_title -from Src.Api.Template.Util import search_domain -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template import get_select_title +from StreamingCommunity.Src.Api.Template.Util import search_domain +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Variable diff --git a/Src/Api/Site/ddlstreamitaly/Player/ScrapeSerie.py b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/Player/ScrapeSerie.py similarity index 94% rename from Src/Api/Site/ddlstreamitaly/Player/ScrapeSerie.py rename to StreamingCommunity/Src/Api/Site/ddlstreamitaly/Player/ScrapeSerie.py index 97118c4..49404f1 100644 --- a/Src/Api/Site/ddlstreamitaly/Player/ScrapeSerie.py +++ b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/Player/ScrapeSerie.py @@ -11,11 +11,11 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.headers import get_headers # Logic class -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Variable diff --git a/Src/Api/Site/ddlstreamitaly/__init__.py b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/__init__.py similarity index 95% rename from Src/Api/Site/ddlstreamitaly/__init__.py rename to StreamingCommunity/Src/Api/Site/ddlstreamitaly/__init__.py index cbca1a7..efeb65b 100644 --- a/Src/Api/Site/ddlstreamitaly/__init__.py +++ b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/__init__.py @@ -5,7 +5,7 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class diff --git a/Src/Api/Site/ddlstreamitaly/costant.py b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/costant.py similarity index 83% rename from Src/Api/Site/ddlstreamitaly/costant.py rename to StreamingCommunity/Src/Api/Site/ddlstreamitaly/costant.py index 923fb34..339e96b 100644 --- a/Src/Api/Site/ddlstreamitaly/costant.py +++ b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/ddlstreamitaly/series.py b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/series.py similarity index 86% rename from Src/Api/Site/ddlstreamitaly/series.py rename to StreamingCommunity/Src/Api/Site/ddlstreamitaly/series.py index f44ebc1..ee20614 100644 --- a/Src/Api/Site/ddlstreamitaly/series.py +++ b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/series.py @@ -6,21 +6,21 @@ from urllib.parse import urlparse # Internal utilities -from Src.Util.console import console -from Src.Util.message import start_message -from Src.Util.os import os_manager -from Src.Util.table import TVShowManager -from Src.Lib.Downloader import MP4_downloader +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Util.table import TVShowManager +from StreamingCommunity.Src.Lib.Downloader import MP4_downloader # Logic class -from Src.Api.Template.Class.SearchType import MediaItem -from Src.Api.Template.Util import manage_selection, map_episode_title, validate_episode_selection +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Util import manage_selection, map_episode_title, validate_episode_selection # Player from .Player.ScrapeSerie import GetSerieInfo -from Src.Api.Player.ddl import VideoSource +from StreamingCommunity.Src.Api.Player.ddl import VideoSource # Variable diff --git a/Src/Api/Site/ddlstreamitaly/site.py b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/site.py similarity index 83% rename from Src/Api/Site/ddlstreamitaly/site.py rename to StreamingCommunity/Src/Api/Site/ddlstreamitaly/site.py index ff537fb..3a828cb 100644 --- a/Src/Api/Site/ddlstreamitaly/site.py +++ b/StreamingCommunity/Src/Api/Site/ddlstreamitaly/site.py @@ -9,16 +9,16 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.table import TVShowManager # Logic class -from Src.Api.Template import get_select_title -from Src.Api.Template.Util import search_domain -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template import get_select_title +from StreamingCommunity.Src.Api.Template.Util import search_domain +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Variable diff --git a/Src/Api/Site/guardaserie/Player/ScrapeSerie.py b/StreamingCommunity/Src/Api/Site/guardaserie/Player/ScrapeSerie.py similarity index 95% rename from Src/Api/Site/guardaserie/Player/ScrapeSerie.py rename to StreamingCommunity/Src/Api/Site/guardaserie/Player/ScrapeSerie.py index 1bf4162..83f3140 100644 --- a/Src/Api/Site/guardaserie/Player/ScrapeSerie.py +++ b/StreamingCommunity/Src/Api/Site/guardaserie/Player/ScrapeSerie.py @@ -10,11 +10,11 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.headers import get_headers # Logic class -from Src.Api.Template .Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template .Class.SearchType import MediaItem class GetSerieInfo: diff --git a/Src/Api/Site/guardaserie/__init__.py b/StreamingCommunity/Src/Api/Site/guardaserie/__init__.py similarity index 94% rename from Src/Api/Site/guardaserie/__init__.py rename to StreamingCommunity/Src/Api/Site/guardaserie/__init__.py index 19c1bb1..c1deef7 100644 --- a/Src/Api/Site/guardaserie/__init__.py +++ b/StreamingCommunity/Src/Api/Site/guardaserie/__init__.py @@ -4,7 +4,7 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class diff --git a/Src/Api/Site/guardaserie/costant.py b/StreamingCommunity/Src/Api/Site/guardaserie/costant.py similarity index 81% rename from Src/Api/Site/guardaserie/costant.py rename to StreamingCommunity/Src/Api/Site/guardaserie/costant.py index a00f5e0..ccd829a 100644 --- a/Src/Api/Site/guardaserie/costant.py +++ b/StreamingCommunity/Src/Api/Site/guardaserie/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/guardaserie/series.py b/StreamingCommunity/Src/Api/Site/guardaserie/series.py similarity index 90% rename from Src/Api/Site/guardaserie/series.py rename to StreamingCommunity/Src/Api/Site/guardaserie/series.py index a42bcf6..3304692 100644 --- a/Src/Api/Site/guardaserie/series.py +++ b/StreamingCommunity/Src/Api/Site/guardaserie/series.py @@ -6,21 +6,21 @@ import time # Internal utilities -from Src.Util.console import console, msg -from Src.Util.message import start_message -from Src.Util.call_stack import get_call_stack -from Src.Util.table import TVShowManager -from Src.Lib.Downloader import HLS_Downloader +from StreamingCommunity.Src.Util.console import console, msg +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.call_stack import get_call_stack +from StreamingCommunity.Src.Util.table import TVShowManager +from StreamingCommunity.Src.Lib.Downloader import HLS_Downloader # Logic class -from Src.Api.Template.Util import manage_selection, map_episode_title, validate_selection, validate_episode_selection, execute_search -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Util import manage_selection, map_episode_title, validate_selection, validate_episode_selection, execute_search +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Player from .Player.ScrapeSerie import GetSerieInfo -from Src.Api.Player.supervideo import VideoSource +from StreamingCommunity.Src.Api.Player.supervideo import VideoSource # Variable diff --git a/Src/Api/Site/guardaserie/site.py b/StreamingCommunity/Src/Api/Site/guardaserie/site.py similarity index 81% rename from Src/Api/Site/guardaserie/site.py rename to StreamingCommunity/Src/Api/Site/guardaserie/site.py index fd3b817..873ea18 100644 --- a/Src/Api/Site/guardaserie/site.py +++ b/StreamingCommunity/Src/Api/Site/guardaserie/site.py @@ -6,16 +6,16 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.table import TVShowManager # Logic class -from Src.Api.Template import get_select_title -from Src.Api.Template.Util import search_domain -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template import get_select_title +from StreamingCommunity.Src.Api.Template.Util import search_domain +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Variable diff --git a/Src/Api/Site/mostraguarda/__init__.py b/StreamingCommunity/Src/Api/Site/mostraguarda/__init__.py similarity index 88% rename from Src/Api/Site/mostraguarda/__init__.py rename to StreamingCommunity/Src/Api/Site/mostraguarda/__init__.py index 89249a6..24b5ff3 100644 --- a/Src/Api/Site/mostraguarda/__init__.py +++ b/StreamingCommunity/Src/Api/Site/mostraguarda/__init__.py @@ -4,11 +4,11 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class -from Src.Lib.TMBD import tmdb, Json_film +from StreamingCommunity.Src.Lib.TMBD import tmdb, Json_film from .film import download_film diff --git a/Src/Api/Site/mostraguarda/costant.py b/StreamingCommunity/Src/Api/Site/mostraguarda/costant.py similarity index 81% rename from Src/Api/Site/mostraguarda/costant.py rename to StreamingCommunity/Src/Api/Site/mostraguarda/costant.py index 9173fc4..bcfbbba 100644 --- a/Src/Api/Site/mostraguarda/costant.py +++ b/StreamingCommunity/Src/Api/Site/mostraguarda/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/mostraguarda/film.py b/StreamingCommunity/Src/Api/Site/mostraguarda/film.py similarity index 79% rename from Src/Api/Site/mostraguarda/film.py rename to StreamingCommunity/Src/Api/Site/mostraguarda/film.py index 7510415..84ba227 100644 --- a/Src/Api/Site/mostraguarda/film.py +++ b/StreamingCommunity/Src/Api/Site/mostraguarda/film.py @@ -12,24 +12,24 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console, msg -from Src.Util.os import os_manager -from Src.Util.message import start_message -from Src.Util.call_stack import get_call_stack -from Src.Util.headers import get_headers -from Src.Lib.Downloader import HLS_Downloader +from StreamingCommunity.Src.Util.console import console, msg +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.call_stack import get_call_stack +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Lib.Downloader import HLS_Downloader # Logic class -from Src.Api.Template.Util import execute_search +from StreamingCommunity.Src.Api.Template.Util import execute_search # Player -from Src.Api.Player.supervideo import VideoSource +from StreamingCommunity.Src.Api.Player.supervideo import VideoSource # TMBD -from Src.Lib.TMBD import Json_film +from StreamingCommunity.Src.Lib.TMBD import Json_film # Config diff --git a/Src/Api/Site/piratebays/__init__.py b/StreamingCommunity/Src/Api/Site/piratebays/__init__.py similarity index 94% rename from Src/Api/Site/piratebays/__init__.py rename to StreamingCommunity/Src/Api/Site/piratebays/__init__.py index 144962a..af364c1 100644 --- a/Src/Api/Site/piratebays/__init__.py +++ b/StreamingCommunity/Src/Api/Site/piratebays/__init__.py @@ -4,7 +4,7 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class diff --git a/Src/Api/Site/1337xx/costant.py b/StreamingCommunity/Src/Api/Site/piratebays/costant.py similarity index 81% rename from Src/Api/Site/1337xx/costant.py rename to StreamingCommunity/Src/Api/Site/piratebays/costant.py index 7243c3d..37708e4 100644 --- a/Src/Api/Site/1337xx/costant.py +++ b/StreamingCommunity/Src/Api/Site/piratebays/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/piratebays/site.py b/StreamingCommunity/Src/Api/Site/piratebays/site.py similarity index 86% rename from Src/Api/Site/piratebays/site.py rename to StreamingCommunity/Src/Api/Site/piratebays/site.py index 0abe721..0b30ea1 100644 --- a/Src/Api/Site/piratebays/site.py +++ b/StreamingCommunity/Src/Api/Site/piratebays/site.py @@ -6,15 +6,15 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.table import TVShowManager # Logic class -from Src.Api.Template import get_select_title -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template import get_select_title +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Variable diff --git a/Src/Api/Site/piratebays/title.py b/StreamingCommunity/Src/Api/Site/piratebays/title.py similarity index 76% rename from Src/Api/Site/piratebays/title.py rename to StreamingCommunity/Src/Api/Site/piratebays/title.py index 84859cb..f1c10e6 100644 --- a/Src/Api/Site/piratebays/title.py +++ b/StreamingCommunity/Src/Api/Site/piratebays/title.py @@ -5,14 +5,14 @@ import sys # Internal utilities -from Src.Util.console import console -from Src.Util.message import start_message -from Src.Util.os import os_manager -from Src.Lib.Downloader import TOR_downloader +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Lib.Downloader import TOR_downloader # Logic class -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Config diff --git a/Src/Api/Site/streamingcommunity/__init__.py b/StreamingCommunity/Src/Api/Site/streamingcommunity/__init__.py similarity index 95% rename from Src/Api/Site/streamingcommunity/__init__.py rename to StreamingCommunity/Src/Api/Site/streamingcommunity/__init__.py index c623f96..d523cf8 100644 --- a/Src/Api/Site/streamingcommunity/__init__.py +++ b/StreamingCommunity/Src/Api/Site/streamingcommunity/__init__.py @@ -4,7 +4,7 @@ from unidecode import unidecode # Internal utilities -from Src.Util.console import console, msg +from StreamingCommunity.Src.Util.console import console, msg # Logic class diff --git a/Src/Api/Site/streamingcommunity/costant.py b/StreamingCommunity/Src/Api/Site/streamingcommunity/costant.py similarity index 80% rename from Src/Api/Site/streamingcommunity/costant.py rename to StreamingCommunity/Src/Api/Site/streamingcommunity/costant.py index 68f52fc..601ec31 100644 --- a/Src/Api/Site/streamingcommunity/costant.py +++ b/StreamingCommunity/Src/Api/Site/streamingcommunity/costant.py @@ -4,7 +4,7 @@ import os # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager SITE_NAME = os.path.basename(os.path.dirname(os.path.abspath(__file__))) diff --git a/Src/Api/Site/streamingcommunity/film.py b/StreamingCommunity/Src/Api/Site/streamingcommunity/film.py similarity index 77% rename from Src/Api/Site/streamingcommunity/film.py rename to StreamingCommunity/Src/Api/Site/streamingcommunity/film.py index 060d394..f1c545a 100644 --- a/Src/Api/Site/streamingcommunity/film.py +++ b/StreamingCommunity/Src/Api/Site/streamingcommunity/film.py @@ -5,20 +5,20 @@ import time # Internal utilities -from Src.Util.console import console, msg -from Src.Util.os import os_manager -from Src.Util.message import start_message -from Src.Util.call_stack import get_call_stack -from Src.Lib.Downloader import HLS_Downloader +from StreamingCommunity.Src.Util.console import console, msg +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.call_stack import get_call_stack +from StreamingCommunity.Src.Lib.Downloader import HLS_Downloader # Logic class -from Src.Api.Template.Util import execute_search -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Util import execute_search +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Player -from Src.Api.Player.vixcloud import VideoSource +from StreamingCommunity.Src.Api.Player.vixcloud import VideoSource # Variable diff --git a/Src/Api/Site/streamingcommunity/series.py b/StreamingCommunity/Src/Api/Site/streamingcommunity/series.py similarity index 91% rename from Src/Api/Site/streamingcommunity/series.py rename to StreamingCommunity/Src/Api/Site/streamingcommunity/series.py index e6b3d07..06c701f 100644 --- a/Src/Api/Site/streamingcommunity/series.py +++ b/StreamingCommunity/Src/Api/Site/streamingcommunity/series.py @@ -6,20 +6,20 @@ import time # Internal utilities -from Src.Util.console import console, msg -from Src.Util.message import start_message -from Src.Util.call_stack import get_call_stack -from Src.Util.table import TVShowManager -from Src.Lib.Downloader import HLS_Downloader +from StreamingCommunity.Src.Util.console import console, msg +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.call_stack import get_call_stack +from StreamingCommunity.Src.Util.table import TVShowManager +from StreamingCommunity.Src.Lib.Downloader import HLS_Downloader # Logic class -from Src.Api.Template.Util import manage_selection, map_episode_title, validate_selection, validate_episode_selection, execute_search -from Src.Api.Template.Class.SearchType import MediaItem +from StreamingCommunity.Src.Api.Template.Util import manage_selection, map_episode_title, validate_selection, validate_episode_selection, execute_search +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaItem # Player -from Src.Api.Player.vixcloud import VideoSource +from StreamingCommunity.Src.Api.Player.vixcloud import VideoSource # Variable diff --git a/Src/Api/Site/streamingcommunity/site.py b/StreamingCommunity/Src/Api/Site/streamingcommunity/site.py similarity index 87% rename from Src/Api/Site/streamingcommunity/site.py rename to StreamingCommunity/Src/Api/Site/streamingcommunity/site.py index d36f1c7..0bc4918 100644 --- a/Src/Api/Site/streamingcommunity/site.py +++ b/StreamingCommunity/Src/Api/Site/streamingcommunity/site.py @@ -11,17 +11,17 @@ from bs4 import BeautifulSoup # Internal utilities -from Src.Util.console import console -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.table import TVShowManager # Logic class -from Src.Api.Template import get_select_title -from Src.Api.Template.Util import search_domain -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template import get_select_title +from StreamingCommunity.Src.Api.Template.Util import search_domain +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Config diff --git a/Src/Api/Template/Class/SearchType.py b/StreamingCommunity/Src/Api/Template/Class/SearchType.py similarity index 100% rename from Src/Api/Template/Class/SearchType.py rename to StreamingCommunity/Src/Api/Template/Class/SearchType.py diff --git a/Src/Api/Template/Util/__init__.py b/StreamingCommunity/Src/Api/Template/Util/__init__.py similarity index 100% rename from Src/Api/Template/Util/__init__.py rename to StreamingCommunity/Src/Api/Template/Util/__init__.py diff --git a/Src/Api/Template/Util/get_domain.py b/StreamingCommunity/Src/Api/Template/Util/get_domain.py similarity index 95% rename from Src/Api/Template/Util/get_domain.py rename to StreamingCommunity/Src/Api/Template/Util/get_domain.py index 3f52d68..da41500 100644 --- a/Src/Api/Template/Util/get_domain.py +++ b/StreamingCommunity/Src/Api/Template/Util/get_domain.py @@ -10,9 +10,9 @@ from googlesearch import search # Internal utilities -from Src.Util.headers import get_headers -from Src.Util.console import console, msg -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.console import console, msg +from StreamingCommunity.Src.Util._jsonConfig import config_manager def google_search(query): diff --git a/Src/Api/Template/Util/manage_ep.py b/StreamingCommunity/Src/Api/Template/Util/manage_ep.py similarity index 97% rename from Src/Api/Template/Util/manage_ep.py rename to StreamingCommunity/Src/Api/Template/Util/manage_ep.py index 02a5ed9..d2916d2 100644 --- a/Src/Api/Template/Util/manage_ep.py +++ b/StreamingCommunity/Src/Api/Template/Util/manage_ep.py @@ -5,8 +5,8 @@ from typing import List # Internal utilities -from Src.Util._jsonConfig import config_manager -from Src.Util.os import os_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.os import os_manager # Config diff --git a/Src/Api/Template/Util/recall_search.py b/StreamingCommunity/Src/Api/Template/Util/recall_search.py similarity index 93% rename from Src/Api/Template/Util/recall_search.py rename to StreamingCommunity/Src/Api/Template/Util/recall_search.py index eb0eddb..22945d8 100644 --- a/Src/Api/Template/Util/recall_search.py +++ b/StreamingCommunity/Src/Api/Template/Util/recall_search.py @@ -21,7 +21,7 @@ def execute_search(info): # Attempt to import the specified function from the module try: # Construct the import statement dynamically - module_path = f"Src.Api.Site{info['folder_base']}" + module_path = f"StreamingCommunity.Src.Api.Site{info['folder_base']}" exec(f"from {module_path} import {info['function']}") # Call the specified function diff --git a/Src/Api/Template/__init__.py b/StreamingCommunity/Src/Api/Template/__init__.py similarity index 100% rename from Src/Api/Template/__init__.py rename to StreamingCommunity/Src/Api/Template/__init__.py diff --git a/Src/Api/Template/site.py b/StreamingCommunity/Src/Api/Template/site.py similarity index 98% rename from Src/Api/Template/site.py rename to StreamingCommunity/Src/Api/Template/site.py index 332f730..dc5723d 100644 --- a/Src/Api/Template/site.py +++ b/StreamingCommunity/Src/Api/Template/site.py @@ -4,7 +4,7 @@ import sys # Internal utilities -from Src.Util.console import console +from StreamingCommunity.Src.Util.console import console # Variable diff --git a/Src/Lib/Downloader/HLS/downloader.py b/StreamingCommunity/Src/Lib/Downloader/HLS/downloader.py similarity index 99% rename from Src/Lib/Downloader/HLS/downloader.py rename to StreamingCommunity/Src/Lib/Downloader/HLS/downloader.py index e53badb..7dec882 100644 --- a/Src/Lib/Downloader/HLS/downloader.py +++ b/StreamingCommunity/Src/Lib/Downloader/HLS/downloader.py @@ -10,10 +10,10 @@ import httpx # Internal utilities -from Src.Util._jsonConfig import config_manager -from Src.Util.console import console, Panel, Table -from Src.Util.color import Colors -from Src.Util.os import ( +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.console import console, Panel, Table +from StreamingCommunity.Src.Util.color import Colors +from StreamingCommunity.Src.Util.os import ( compute_sha1_hash, os_manager, internet_manager diff --git a/Src/Lib/Downloader/HLS/proxyes.py b/StreamingCommunity/Src/Lib/Downloader/HLS/proxyes.py similarity index 94% rename from Src/Lib/Downloader/HLS/proxyes.py rename to StreamingCommunity/Src/Lib/Downloader/HLS/proxyes.py index ff785cd..a8a1881 100644 --- a/Src/Lib/Downloader/HLS/proxyes.py +++ b/StreamingCommunity/Src/Lib/Downloader/HLS/proxyes.py @@ -11,9 +11,9 @@ import httpx # Internal utilities -from Src.Util._jsonConfig import config_manager -from Src.Util.headers import get_headers -from Src.Util.os import os_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.os import os_manager class ProxyManager: diff --git a/Src/Lib/Downloader/HLS/segments.py b/StreamingCommunity/Src/Lib/Downloader/HLS/segments.py similarity index 98% rename from Src/Lib/Downloader/HLS/segments.py rename to StreamingCommunity/Src/Lib/Downloader/HLS/segments.py index 1069c2f..b9cf9b6 100644 --- a/Src/Lib/Downloader/HLS/segments.py +++ b/StreamingCommunity/Src/Lib/Downloader/HLS/segments.py @@ -18,12 +18,12 @@ from tqdm import tqdm # Internal utilities -from Src.Util.console import console -from Src.Util.headers import get_headers, random_headers -from Src.Util.color import Colors -from Src.Util._jsonConfig import config_manager -from Src.Util.os import os_manager -from Src.Util.call_stack import get_call_stack +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util.headers import get_headers, random_headers +from StreamingCommunity.Src.Util.color import Colors +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.os import os_manager +from StreamingCommunity.Src.Util.call_stack import get_call_stack # Logic class diff --git a/Src/Lib/Downloader/MP4/downloader.py b/StreamingCommunity/Src/Lib/Downloader/MP4/downloader.py similarity index 92% rename from Src/Lib/Downloader/MP4/downloader.py rename to StreamingCommunity/Src/Lib/Downloader/MP4/downloader.py index fe97075..e81a52b 100644 --- a/Src/Lib/Downloader/MP4/downloader.py +++ b/StreamingCommunity/Src/Lib/Downloader/MP4/downloader.py @@ -11,11 +11,11 @@ from tqdm import tqdm # Internal utilities -from Src.Util.headers import get_headers -from Src.Util.color import Colors -from Src.Util.console import console, Panel -from Src.Util._jsonConfig import config_manager -from Src.Util.os import internet_manager +from StreamingCommunity.Src.Util.headers import get_headers +from StreamingCommunity.Src.Util.color import Colors +from StreamingCommunity.Src.Util.console import console, Panel +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.os import internet_manager # Logic class diff --git a/Src/Lib/Downloader/TOR/downloader.py b/StreamingCommunity/Src/Lib/Downloader/TOR/downloader.py similarity index 97% rename from Src/Lib/Downloader/TOR/downloader.py rename to StreamingCommunity/Src/Lib/Downloader/TOR/downloader.py index f563c06..5314788 100644 --- a/Src/Lib/Downloader/TOR/downloader.py +++ b/StreamingCommunity/Src/Lib/Downloader/TOR/downloader.py @@ -8,9 +8,9 @@ import logging # Internal utilities -from Src.Util.color import Colors -from Src.Util.os import internet_manager -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.color import Colors +from StreamingCommunity.Src.Util.os import internet_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager # External libraries diff --git a/Src/Lib/Downloader/__init__.py b/StreamingCommunity/Src/Lib/Downloader/__init__.py similarity index 100% rename from Src/Lib/Downloader/__init__.py rename to StreamingCommunity/Src/Lib/Downloader/__init__.py diff --git a/Src/Lib/Driver/driver_1.py b/StreamingCommunity/Src/Lib/Driver/driver_1.py similarity index 96% rename from Src/Lib/Driver/driver_1.py rename to StreamingCommunity/Src/Lib/Driver/driver_1.py index 45d164c..6737dbe 100644 --- a/Src/Lib/Driver/driver_1.py +++ b/StreamingCommunity/Src/Lib/Driver/driver_1.py @@ -10,7 +10,7 @@ from seleniumbase import Driver # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager # Config diff --git a/Src/Lib/FFmpeg/__init__.py b/StreamingCommunity/Src/Lib/FFmpeg/__init__.py similarity index 100% rename from Src/Lib/FFmpeg/__init__.py rename to StreamingCommunity/Src/Lib/FFmpeg/__init__.py diff --git a/Src/Lib/FFmpeg/capture.py b/StreamingCommunity/Src/Lib/FFmpeg/capture.py similarity index 97% rename from Src/Lib/FFmpeg/capture.py rename to StreamingCommunity/Src/Lib/FFmpeg/capture.py index fef163a..5d94bd5 100644 --- a/Src/Lib/FFmpeg/capture.py +++ b/StreamingCommunity/Src/Lib/FFmpeg/capture.py @@ -7,8 +7,8 @@ import subprocess # Internal utilities -from Src.Util.console import console -from Src.Util.os import internet_manager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util.os import internet_manager # Variable diff --git a/Src/Lib/FFmpeg/command.py b/StreamingCommunity/Src/Lib/FFmpeg/command.py similarity index 98% rename from Src/Lib/FFmpeg/command.py rename to StreamingCommunity/Src/Lib/FFmpeg/command.py index 69df237..e7a8e8e 100644 --- a/Src/Lib/FFmpeg/command.py +++ b/StreamingCommunity/Src/Lib/FFmpeg/command.py @@ -8,9 +8,9 @@ from typing import List, Dict # Internal utilities -from Src.Util._jsonConfig import config_manager -from Src.Util.os import os_manager, suppress_output -from Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.os import os_manager, suppress_output +from StreamingCommunity.Src.Util.console import console from .util import need_to_force_to_ts, check_duration_v_a from .capture import capture_ffmpeg_real_time from ..M3U8 import M3U8_Codec diff --git a/Src/Lib/FFmpeg/util.py b/StreamingCommunity/Src/Lib/FFmpeg/util.py similarity index 99% rename from Src/Lib/FFmpeg/util.py rename to StreamingCommunity/Src/Lib/FFmpeg/util.py index 7e4f8fa..2d4f25f 100644 --- a/Src/Lib/FFmpeg/util.py +++ b/StreamingCommunity/Src/Lib/FFmpeg/util.py @@ -9,7 +9,7 @@ from typing import Tuple # Internal utilities -from Src.Util.console import console +from StreamingCommunity.Src.Util.console import console def has_audio_stream(video_path: str) -> bool: diff --git a/Src/Lib/M3U8/__init__.py b/StreamingCommunity/Src/Lib/M3U8/__init__.py similarity index 100% rename from Src/Lib/M3U8/__init__.py rename to StreamingCommunity/Src/Lib/M3U8/__init__.py diff --git a/Src/Lib/M3U8/decryptor.py b/StreamingCommunity/Src/Lib/M3U8/decryptor.py similarity index 98% rename from Src/Lib/M3U8/decryptor.py rename to StreamingCommunity/Src/Lib/M3U8/decryptor.py index df1abd1..a8b3f5c 100644 --- a/Src/Lib/M3U8/decryptor.py +++ b/StreamingCommunity/Src/Lib/M3U8/decryptor.py @@ -7,7 +7,7 @@ import importlib.util # Internal utilities -from Src.Util.console import console +from StreamingCommunity.Src.Util.console import console # Check if Crypto module is installed diff --git a/Src/Lib/M3U8/estimator.py b/StreamingCommunity/Src/Lib/M3U8/estimator.py similarity index 97% rename from Src/Lib/M3U8/estimator.py rename to StreamingCommunity/Src/Lib/M3U8/estimator.py index 7bdfe09..10c2e02 100644 --- a/Src/Lib/M3U8/estimator.py +++ b/StreamingCommunity/Src/Lib/M3U8/estimator.py @@ -13,9 +13,9 @@ from tqdm import tqdm # Internal utilities -from Src.Util.color import Colors -from Src.Util.os import internet_manager -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.color import Colors +from StreamingCommunity.Src.Util.os import internet_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager # Variable diff --git a/Src/Lib/M3U8/parser.py b/StreamingCommunity/Src/Lib/M3U8/parser.py similarity index 99% rename from Src/Lib/M3U8/parser.py rename to StreamingCommunity/Src/Lib/M3U8/parser.py index eb3fc50..06224c4 100644 --- a/Src/Lib/M3U8/parser.py +++ b/StreamingCommunity/Src/Lib/M3U8/parser.py @@ -6,7 +6,7 @@ import logging # Internal utilities from m3u8 import loads -from Src.Util.os import internet_manager +from StreamingCommunity.Src.Util.os import internet_manager # External libraries diff --git a/Src/Lib/M3U8/url_fixer.py b/StreamingCommunity/Src/Lib/M3U8/url_fixer.py similarity index 100% rename from Src/Lib/M3U8/url_fixer.py rename to StreamingCommunity/Src/Lib/M3U8/url_fixer.py diff --git a/Src/Lib/TMBD/__init__.py b/StreamingCommunity/Src/Lib/TMBD/__init__.py similarity index 100% rename from Src/Lib/TMBD/__init__.py rename to StreamingCommunity/Src/Lib/TMBD/__init__.py diff --git a/Src/Lib/TMBD/obj_tmbd.py b/StreamingCommunity/Src/Lib/TMBD/obj_tmbd.py similarity index 100% rename from Src/Lib/TMBD/obj_tmbd.py rename to StreamingCommunity/Src/Lib/TMBD/obj_tmbd.py diff --git a/Src/Lib/TMBD/tmdb.py b/StreamingCommunity/Src/Lib/TMBD/tmdb.py similarity index 99% rename from Src/Lib/TMBD/tmdb.py rename to StreamingCommunity/Src/Lib/TMBD/tmdb.py index 7629d18..f671096 100644 --- a/Src/Lib/TMBD/tmdb.py +++ b/StreamingCommunity/Src/Lib/TMBD/tmdb.py @@ -11,7 +11,7 @@ from rich.console import Console # Internal utilities from .obj_tmbd import Json_film -from Src.Util.table import TVShowManager +from StreamingCommunity.Src.Util.table import TVShowManager # Variable diff --git a/Src/Upload/update.py b/StreamingCommunity/Src/Upload/update.py similarity index 97% rename from Src/Upload/update.py rename to StreamingCommunity/Src/Upload/update.py index 107beb4..cc607c7 100644 --- a/Src/Upload/update.py +++ b/StreamingCommunity/Src/Upload/update.py @@ -6,7 +6,7 @@ import time # Internal utilities from .version import __version__, __author__, __title__ -from Src.Util.console import console +from StreamingCommunity.Src.Util.console import console # External library diff --git a/Src/Upload/version.py b/StreamingCommunity/Src/Upload/version.py similarity index 100% rename from Src/Upload/version.py rename to StreamingCommunity/Src/Upload/version.py diff --git a/Src/Util/_jsonConfig.py b/StreamingCommunity/Src/Util/_jsonConfig.py similarity index 83% rename from Src/Util/_jsonConfig.py rename to StreamingCommunity/Src/Util/_jsonConfig.py index d71c5cf..c87918e 100644 --- a/Src/Util/_jsonConfig.py +++ b/StreamingCommunity/Src/Util/_jsonConfig.py @@ -2,6 +2,7 @@ import os import json +import httpx import logging from typing import Any, List @@ -20,15 +21,34 @@ class ConfigManager: def read_config(self) -> None: """Read the configuration file.""" try: - - logging.info(f"Read file: {self.file_path}") + logging.info(f"Reading file: {self.file_path}") + # Check if file exist if os.path.exists(self.file_path): with open(self.file_path, 'r') as f: self.config = json.load(f) + logging.info("Configuration file loaded successfully.") + + # Download config.json + else: + logging.info("Configuration file does not exist. Downloading...") + url = "https://raw.githubusercontent.com/Lovi-0/StreamingCommunity/refs/heads/main/config.json" + + with httpx.Client() as client: + response = client.get(url) + + if response.status_code == 200: + with open(self.file_path, 'w') as f: + f.write(response.text) + self.config = json.loads(response.text) + logging.info("Configuration file downloaded and saved.") + + else: + logging.error(f"Failed to download configuration file. Status code: {response.status_code}") + except Exception as e: - print(f"Error reading configuration file: {e}") + logging.error(f"Error reading configuration file: {e}") def read_key(self, section: str, key: str, data_type: type = str) -> Any: """Read a key from the configuration file. diff --git a/Src/Util/call_stack.py b/StreamingCommunity/Src/Util/call_stack.py similarity index 100% rename from Src/Util/call_stack.py rename to StreamingCommunity/Src/Util/call_stack.py diff --git a/Src/Util/color.py b/StreamingCommunity/Src/Util/color.py similarity index 100% rename from Src/Util/color.py rename to StreamingCommunity/Src/Util/color.py diff --git a/Src/Util/console.py b/StreamingCommunity/Src/Util/console.py similarity index 100% rename from Src/Util/console.py rename to StreamingCommunity/Src/Util/console.py diff --git a/Src/Util/headers.py b/StreamingCommunity/Src/Util/headers.py similarity index 100% rename from Src/Util/headers.py rename to StreamingCommunity/Src/Util/headers.py diff --git a/Src/Util/logger.py b/StreamingCommunity/Src/Util/logger.py similarity index 96% rename from Src/Util/logger.py rename to StreamingCommunity/Src/Util/logger.py index faebf3a..6e00851 100644 --- a/Src/Util/logger.py +++ b/StreamingCommunity/Src/Util/logger.py @@ -5,7 +5,7 @@ from logging.handlers import RotatingFileHandler # Internal utilities -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util._jsonConfig import config_manager class Logger: diff --git a/Src/Util/message.py b/StreamingCommunity/Src/Util/message.py similarity index 92% rename from Src/Util/message.py rename to StreamingCommunity/Src/Util/message.py index 8e59fe7..bcaab12 100644 --- a/Src/Util/message.py +++ b/StreamingCommunity/Src/Util/message.py @@ -5,8 +5,8 @@ import platform # Internal utilities -from Src.Util.console import console -from Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Util.console import console +from StreamingCommunity.Src.Util._jsonConfig import config_manager # Variable diff --git a/Src/Util/os.py b/StreamingCommunity/Src/Util/os.py similarity index 98% rename from Src/Util/os.py rename to StreamingCommunity/Src/Util/os.py index 7d114ea..6cba438 100644 --- a/Src/Util/os.py +++ b/StreamingCommunity/Src/Util/os.py @@ -23,7 +23,7 @@ import httpx # Internal utilities -from Src.Util.console import console +from StreamingCommunity.Src.Util.console import console # Variable @@ -384,11 +384,11 @@ class OsSummary(): logging.info(f"Dependencies: ffmpeg {ffmpeg_version}, ffprobe {ffprobe_version}") # Optional libraries versions - optional_libraries = [line.strip() for line in open('requirements.txt', 'r', encoding='utf-8-sig')] + """optional_libraries = [line.strip() for line in open('requirements.txt', 'r', encoding='utf-8-sig')] optional_libs_versions = [self.get_library_version(lib) for lib in optional_libraries] console.print(f"[cyan]Libraries[white]: [bold red]{', '.join(optional_libs_versions)}[/bold red]\n") - logging.info(f"Libraries: {', '.join(optional_libs_versions)}") + logging.info(f"Libraries: {', '.join(optional_libs_versions)}")""" diff --git a/Src/Util/table.py b/StreamingCommunity/Src/Util/table.py similarity index 100% rename from Src/Util/table.py rename to StreamingCommunity/Src/Util/table.py diff --git a/run.py b/StreamingCommunity/run.py similarity index 90% rename from run.py rename to StreamingCommunity/run.py index ade7aa3..310978c 100644 --- a/run.py +++ b/StreamingCommunity/run.py @@ -1,201 +1,204 @@ -# 10.12.23 - -import os -import sys -import time -import glob -import logging -import platform -import argparse -import importlib -from typing import Callable - - -# Internal utilities -from Src.Util.message import start_message -from Src.Util.console import console, msg -from Src.Util._jsonConfig import config_manager -from Src.Upload.update import update as git_update -from Src.Util.os import os_summary -from Src.Lib.TMBD import tmdb -from Src.Util.logger import Logger - - -# Config -CLOSE_CONSOLE = config_manager.get_bool('DEFAULT', 'not_close') -SHOW_TRENDING = config_manager.get_bool('DEFAULT', 'show_trending') - - -def run_function(func: Callable[..., None], close_console: bool = False) -> None: - """ - Run a given function indefinitely or once, depending on the value of close_console. - - Parameters: - func (Callable[..., None]): The function to run. - close_console (bool, optional): Whether to close the console after running the function once. Defaults to False. - """ - if close_console: - while 1: - func() - else: - func() - - -def load_search_functions(): - modules = [] - loaded_functions = {} - - # Traverse the Api directory - api_dir = os.path.join(os.path.dirname(__file__), 'Src', 'Api', 'Site') - init_files = glob.glob(os.path.join(api_dir, '*', '__init__.py')) - - # Retrieve modules and their indices - for init_file in init_files: - - # Get folder name as module name - module_name = os.path.basename(os.path.dirname(init_file)) - logging.info(f"Load module name: {module_name}") - - try: - # Dynamically import the module - mod = importlib.import_module(f'Src.Api.Site.{module_name}') - - # Get 'indice' from the module - indice = getattr(mod, 'indice', 0) - is_deprecate = bool(getattr(mod, '_deprecate', True)) - use_for = getattr(mod, '_useFor', 'other') - - if not is_deprecate: - modules.append((module_name, indice, use_for)) - - except Exception as e: - console.print(f"[red]Failed to import module {module_name}: {str(e)}") - - # Sort modules by 'indice' - modules.sort(key=lambda x: x[1]) - - # Load search functions in the sorted order - for module_name, _, use_for in modules: - - # Construct a unique alias for the module - module_alias = f'{module_name}_search' - - try: - - # Dynamically import the module - mod = importlib.import_module(f'Src.Api.Site.{module_name}') - - # Get the search function from the module (assuming the function is named 'search' and defined in __init__.py) - search_function = getattr(mod, 'search') - - # Add the function to the loaded functions dictionary - loaded_functions[module_alias] = (search_function, use_for) - - except Exception as e: - console.print(f"[red]Failed to load search function from module {module_name}: {str(e)}") - - return loaded_functions - - -def initialize(): - - # Get start message - start_message() - - # Get system info - os_summary.get_system_summary() - - # Set terminal size for win 7 - if platform.system() == "Windows" and "7" in platform.version(): - os.system('mode 120, 40') - - # Check python version - if sys.version_info < (3, 7): - console.log("[red]Install python version > 3.7.16") - sys.exit(0) - - # Attempting GitHub update - try: - git_update() - print() - except: - console.log("[red]Error with loading github.") - - # Show trending film and series - if SHOW_TRENDING: - tmdb.display_trending_films() - print() - tmdb.display_trending_tv_shows() - print() - - -def main(): - - start = time.time() - - # Create logger - log_not = Logger() - - # Load search functions - - search_functions = load_search_functions() - logging.info(f"Load module in: {time.time() - start} s") - - # Create dynamic argument parser - parser = argparse.ArgumentParser(description='Script to download film and series from the internet.') - - color_map = { - "anime": "red", - "film_serie": "yellow", - "film": "blue", - "serie": "green", - "other": "white" - } - - # Add dynamic arguments based on loaded search modules - for alias, (_, use_for) in search_functions.items(): - short_option = alias[:3].upper() - long_option = alias - parser.add_argument(f'-{short_option}', f'--{long_option}', action='store_true', help=f'Search for {alias.split("_")[0]} on streaming platforms.') - - # Parse command line arguments - args = parser.parse_args() - - # Mapping command-line arguments to functions - arg_to_function = {alias: func for alias, (func, _) in search_functions.items()} - - # Check which argument is provided and run the corresponding function - for arg, func in arg_to_function.items(): - if getattr(args, arg): - run_function(func) - return - - # Mapping user input to functions - input_to_function = {str(i): func for i, (alias, (func, _)) in enumerate(search_functions.items())} - - # Create dynamic prompt message and choices - choice_labels = {str(i): (alias.split("_")[0].capitalize(), use_for) for i, (alias, (_, use_for)) in enumerate(search_functions.items())} - - # Display the category legend in a single line - legend_text = " | ".join([f"[{color}]{category.capitalize()}[/{color}]" for category, color in color_map.items()]) - console.print(f"[bold green]Category Legend:[/bold green] {legend_text}") - - # Construct the prompt message with color-coded site names - prompt_message = "[green]Insert category [white](" + ", ".join( - [f"{key}: [{color_map[label[1]]}]{label[0]}[/{color_map[label[1]]}]" for key, label in choice_labels.items()] - ) + "[white])" - - # Ask the user for input - category = msg.ask(prompt_message, choices=list(choice_labels.keys()), default="0", show_choices=False, show_default=False) - - # Run the corresponding function based on user input - if category in input_to_function: - run_function(input_to_function[category]) - else: - console.print("[red]Invalid category.") - sys.exit(0) - - -if __name__ == '__main__': - initialize() - main() +# 10.12.23 + +import os +import sys +import time +import glob +import logging +import platform +import argparse +import importlib +from typing import Callable + + +# Internal utilities +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.console import console, msg +from StreamingCommunity.Src.Util._jsonConfig import config_manager +from StreamingCommunity.Src.Upload.update import update as git_update +from StreamingCommunity.Src.Util.os import os_summary +from StreamingCommunity.Src.Lib.TMBD import tmdb +from StreamingCommunity.Src.Util.logger import Logger + + +# Config +CLOSE_CONSOLE = config_manager.get_bool('DEFAULT', 'not_close') +SHOW_TRENDING = config_manager.get_bool('DEFAULT', 'show_trending') + + +def run_function(func: Callable[..., None], close_console: bool = False) -> None: + """ + Run a given function indefinitely or once, depending on the value of close_console. + + Parameters: + func (Callable[..., None]): The function to run. + close_console (bool, optional): Whether to close the console after running the function once. Defaults to False. + """ + if close_console: + while 1: + func() + else: + func() + + +def load_search_functions(): + modules = [] + loaded_functions = {} + + # Traverse the Api directory + api_dir = os.path.join(os.path.dirname(__file__), 'Src', 'Api', 'Site') + init_files = glob.glob(os.path.join(api_dir, '*', '__init__.py')) + + # Retrieve modules and their indices + for init_file in init_files: + + # Get folder name as module name + module_name = os.path.basename(os.path.dirname(init_file)) + logging.info(f"Load module name: {module_name}") + + try: + # Dynamically import the module + mod = importlib.import_module(f'StreamingCommunity.Src.Api.Site.{module_name}') + + # Get 'indice' from the module + indice = getattr(mod, 'indice', 0) + is_deprecate = bool(getattr(mod, '_deprecate', True)) + use_for = getattr(mod, '_useFor', 'other') + + if not is_deprecate: + modules.append((module_name, indice, use_for)) + + except Exception as e: + console.print(f"[red]Failed to import module {module_name}: {str(e)}") + + # Sort modules by 'indice' + modules.sort(key=lambda x: x[1]) + + # Load search functions in the sorted order + for module_name, _, use_for in modules: + + # Construct a unique alias for the module + module_alias = f'{module_name}_search' + + try: + + # Dynamically import the module + mod = importlib.import_module(f'StreamingCommunity.Src.Api.Site.{module_name}') + + # Get the search function from the module (assuming the function is named 'search' and defined in __init__.py) + search_function = getattr(mod, 'search') + + # Add the function to the loaded functions dictionary + loaded_functions[module_alias] = (search_function, use_for) + + except Exception as e: + console.print(f"[red]Failed to load search function from module {module_name}: {str(e)}") + + return loaded_functions + + +def initialize(): + + # Get start message + start_message() + + # Get system info + os_summary.get_system_summary() + + # Set terminal size for win 7 + if platform.system() == "Windows" and "7" in platform.version(): + os.system('mode 120, 40') + + # Check python version + if sys.version_info < (3, 7): + console.log("[red]Install python version > 3.7.16") + sys.exit(0) + + # Attempting GitHub update + try: + git_update() + print() + except: + console.log("[red]Error with loading github.") + + # Show trending film and series + if SHOW_TRENDING: + tmdb.display_trending_films() + print() + tmdb.display_trending_tv_shows() + print() + + +def main(): + + start = time.time() + + # Create logger + log_not = Logger() + + # Load search functions + + search_functions = load_search_functions() + logging.info(f"Load module in: {time.time() - start} s") + + # Create dynamic argument parser + parser = argparse.ArgumentParser(description='Script to download film and series from the internet.') + + color_map = { + "anime": "red", + "film_serie": "yellow", + "film": "blue", + "serie": "green", + "other": "white" + } + + # Add dynamic arguments based on loaded search modules + for alias, (_, use_for) in search_functions.items(): + short_option = alias[:3].upper() + long_option = alias + parser.add_argument(f'-{short_option}', f'--{long_option}', action='store_true', help=f'Search for {alias.split("_")[0]} on streaming platforms.') + + # Parse command line arguments + args = parser.parse_args() + + # Mapping command-line arguments to functions + arg_to_function = {alias: func for alias, (func, _) in search_functions.items()} + + # Check which argument is provided and run the corresponding function + for arg, func in arg_to_function.items(): + if getattr(args, arg): + run_function(func) + return + + # Mapping user input to functions + input_to_function = {str(i): func for i, (alias, (func, _)) in enumerate(search_functions.items())} + + # Create dynamic prompt message and choices + choice_labels = {str(i): (alias.split("_")[0].capitalize(), use_for) for i, (alias, (_, use_for)) in enumerate(search_functions.items())} + + # Display the category legend in a single line + legend_text = " | ".join([f"[{color}]{category.capitalize()}[/{color}]" for category, color in color_map.items()]) + console.print(f"[bold green]Category Legend:[/bold green] {legend_text}") + + # Construct the prompt message with color-coded site names + prompt_message = "[green]Insert category [white](" + ", ".join( + [f"{key}: [{color_map[label[1]]}]{label[0]}[/{color_map[label[1]]}]" for key, label in choice_labels.items()] + ) + "[white])" + + # Ask the user for input + category = msg.ask(prompt_message, choices=list(choice_labels.keys()), default="0", show_choices=False, show_default=False) + + # Run the corresponding function based on user input + if category in input_to_function: + run_function(input_to_function[category]) + else: + console.print("[red]Invalid category.") + sys.exit(0) + + +def run(): + initialize() + main() + +if __name__ == '__main__': + run() diff --git a/Test/Download/HLS.py b/Test/Download/HLS.py index aea5dcb..bee553e 100644 --- a/Test/Download/HLS.py +++ b/Test/Download/HLS.py @@ -9,9 +9,9 @@ sys.path.append(src_path) # Import -from Src.Util.message import start_message -from Src.Util.logger import Logger -from Src.Lib.Downloader import HLS_Downloader +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.logger import Logger +from StreamingCommunity.Src.Lib.Downloader import HLS_Downloader # Test diff --git a/Test/Download/MP4.py b/Test/Download/MP4.py index d169c7f..262e5f8 100644 --- a/Test/Download/MP4.py +++ b/Test/Download/MP4.py @@ -9,9 +9,9 @@ sys.path.append(src_path) # Import -from Src.Util.message import start_message -from Src.Util.logger import Logger -from Src.Lib.Downloader import MP4_downloader +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.logger import Logger +from StreamingCommunity.Src.Lib.Downloader import MP4_downloader # Test diff --git a/Test/Download/TOR.py b/Test/Download/TOR.py index c833d9d..dc27e89 100644 --- a/Test/Download/TOR.py +++ b/Test/Download/TOR.py @@ -9,9 +9,9 @@ sys.path.append(src_path) # Import -from Src.Util.message import start_message -from Src.Util.logger import Logger -from Src.Lib.Downloader import TOR_downloader +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.logger import Logger +from StreamingCommunity.Src.Lib.Downloader import TOR_downloader # Test diff --git a/Test/Player/maxtream.py b/Test/Player/maxtream.py index 2fba223..a53d901 100644 --- a/Test/Player/maxtream.py +++ b/Test/Player/maxtream.py @@ -9,9 +9,9 @@ sys.path.append(src_path) # Import -from Src.Util.message import start_message -from Src.Util.logger import Logger -from Src.Api.Player.maxstream import VideoSource +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.logger import Logger +from StreamingCommunity.Src.Api.Player.maxstream import VideoSource # Test diff --git a/Test/Player/supervideo.py b/Test/Player/supervideo.py index 477b4a0..029b4f1 100644 --- a/Test/Player/supervideo.py +++ b/Test/Player/supervideo.py @@ -9,9 +9,9 @@ sys.path.append(src_path) # Import -from Src.Util.message import start_message -from Src.Util.logger import Logger -from Src.Api.Player.supervideo import VideoSource +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.logger import Logger +from StreamingCommunity.Src.Api.Player.supervideo import VideoSource # Test diff --git a/Test/Player/vixcloud.py b/Test/Player/vixcloud.py index 4b4f3d6..270539c 100644 --- a/Test/Player/vixcloud.py +++ b/Test/Player/vixcloud.py @@ -9,9 +9,9 @@ sys.path.append(src_path) # Import -from Src.Util.message import start_message -from Src.Util.logger import Logger -from Src.Api.Player.vixcloud import VideoSource +from StreamingCommunity.Src.Util.message import start_message +from StreamingCommunity.Src.Util.logger import Logger +from StreamingCommunity.Src.Api.Player.vixcloud import VideoSource # Test diff --git a/Test/big_search.py b/Test/big_search.py index e0ab3a4..4323b20 100644 --- a/Test/big_search.py +++ b/Test/big_search.py @@ -15,7 +15,7 @@ from rich.console import Console # Other import -from Src.Api.Template.Class.SearchType import MediaManager +from StreamingCommunity.Src.Api.Template.Class.SearchType import MediaManager # Variable @@ -27,7 +27,7 @@ def load_search_functions(): loaded_functions = {} # Traverse the Api directory - api_dir = os.path.join(os.path.dirname(__file__), '..', 'Src', 'Api', 'Site') + api_dir = os.path.join(os.path.dirname(__file__), '..', 'StreamingCommunity', 'Src', 'Api', 'Site') init_files = glob.glob(os.path.join(api_dir, '*', '__init__.py')) logging.info(f"Base folder path: {api_dir}") @@ -42,7 +42,7 @@ def load_search_functions(): try: # Dynamically import the module - mod = importlib.import_module(f'Src.Api.Site.{module_name}') + mod = importlib.import_module(f'StreamingCommunity.Src.Api.Site.{module_name}') # Get 'indice' from the module indice = getattr(mod, 'indice', 0) @@ -67,7 +67,7 @@ def load_search_functions(): try: # Dynamically import the module - mod = importlib.import_module(f'Src.Api.Site.{module_name}') + mod = importlib.import_module(f'StreamingCommunity.Src.Api.Site.{module_name}') # Get the search function from the module (assuming the function is named 'search' and defined in __init__.py) search_function = getattr(mod, 'search') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a1fbf06 --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +from setuptools import setup + + +def read_readme(): + with open("README.md", "r", encoding="utf-8") as fh: + return fh.read() + +with open("requirements.txt", "r", encoding="utf-8-sig") as f: + required_packages = f.read().splitlines() + print(required_packages) + +setup( + name="StreamingCommunity", + version="1.7.3", + long_description=read_readme(), + long_description_content_type="text/markdown", + author="Lovi-0", + url="https://github.com/Lovi-0/StreamingCommunity", + packages=["StreamingCommunity"], + install_requires=required_packages, + python_requires='>=3.8', + entry_points={ + "console_scripts": [ + "streamingcommunity=StreamingCommunity.run:main", + ], + }, + include_package_data=True, + keywords="streaming community", + project_urls={ + "Bug Reports": "https://github.com/Lovi-0/StreamingCommunity/issues", + "Source": "https://github.com/Lovi-0/StreamingCommunity", + } +) diff --git a/test_run.py b/test_run.py new file mode 100644 index 0000000..366afbc --- /dev/null +++ b/test_run.py @@ -0,0 +1,3 @@ +from StreamingCommunity.run import main + +main() \ No newline at end of file diff --git a/update_version.py b/update.py similarity index 98% rename from update_version.py rename to update.py index 2a8e028..a7fc08f 100644 --- a/update_version.py +++ b/update.py @@ -18,7 +18,7 @@ from rich.table import Table # Variable console = Console() local_path = os.path.join(".") -from Src.Upload.version import __author__, __title__ +from StreamingCommunity.Src.Upload.version import __author__, __title__ def move_content(source: str, destination: str):