StreamingCommunity 2.6.0__py3-none-any.whl → 2.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of StreamingCommunity might be problematic. Click here for more details.
- StreamingCommunity/Api/Player/Helper/Vixcloud/util.py +26 -2
- StreamingCommunity/Api/Player/ddl.py +2 -2
- StreamingCommunity/Api/Player/maxstream.py +3 -3
- StreamingCommunity/Api/Player/supervideo.py +2 -2
- StreamingCommunity/Api/Player/vixcloud.py +16 -18
- StreamingCommunity/Api/Site/1337xx/site.py +11 -4
- StreamingCommunity/Api/Site/1337xx/title.py +3 -4
- StreamingCommunity/Api/Site/animeunity/film_serie.py +5 -4
- StreamingCommunity/Api/Site/animeunity/site.py +9 -3
- StreamingCommunity/Api/Site/animeunity/util/ScrapeSerie.py +8 -9
- StreamingCommunity/Api/Site/cb01new/site.py +12 -4
- StreamingCommunity/Api/Site/ddlstreamitaly/site.py +10 -4
- StreamingCommunity/Api/Site/ddlstreamitaly/util/ScrapeSerie.py +2 -2
- StreamingCommunity/Api/Site/guardaserie/site.py +17 -11
- StreamingCommunity/Api/Site/guardaserie/util/ScrapeSerie.py +4 -3
- StreamingCommunity/Api/Site/mostraguarda/film.py +11 -6
- StreamingCommunity/Api/Site/streamingcommunity/__init__.py +3 -5
- StreamingCommunity/Api/Site/streamingcommunity/film.py +1 -1
- StreamingCommunity/Api/Site/streamingcommunity/series.py +6 -7
- StreamingCommunity/Api/Site/streamingcommunity/site.py +14 -63
- StreamingCommunity/Api/Site/streamingcommunity/util/ScrapeSerie.py +9 -24
- StreamingCommunity/Api/Template/Util/get_domain.py +11 -72
- StreamingCommunity/Api/Template/Util/manage_ep.py +28 -23
- StreamingCommunity/Api/Template/config_loader.py +6 -2
- StreamingCommunity/Lib/Downloader/HLS/downloader.py +2 -2
- StreamingCommunity/Lib/Downloader/HLS/proxyes.py +2 -2
- StreamingCommunity/Lib/Downloader/HLS/segments.py +5 -5
- StreamingCommunity/Lib/Downloader/MP4/downloader.py +2 -2
- StreamingCommunity/Upload/update.py +3 -3
- StreamingCommunity/Upload/version.py +1 -1
- StreamingCommunity/Util/_jsonConfig.py +209 -96
- StreamingCommunity/Util/headers.py +8 -1
- StreamingCommunity/Util/table.py +6 -6
- StreamingCommunity/run.py +13 -9
- {StreamingCommunity-2.6.0.dist-info → StreamingCommunity-2.7.0.dist-info}/METADATA +39 -24
- {StreamingCommunity-2.6.0.dist-info → StreamingCommunity-2.7.0.dist-info}/RECORD +40 -47
- StreamingCommunity/Api/Site/altadefinizionegratis/__init__.py +0 -76
- StreamingCommunity/Api/Site/altadefinizionegratis/film.py +0 -76
- StreamingCommunity/Api/Site/altadefinizionegratis/site.py +0 -109
- StreamingCommunity/Api/Site/ilcorsaronero/__init__.py +0 -53
- StreamingCommunity/Api/Site/ilcorsaronero/site.py +0 -64
- StreamingCommunity/Api/Site/ilcorsaronero/title.py +0 -42
- StreamingCommunity/Api/Site/ilcorsaronero/util/ilCorsarScraper.py +0 -149
- {StreamingCommunity-2.6.0.dist-info → StreamingCommunity-2.7.0.dist-info}/LICENSE +0 -0
- {StreamingCommunity-2.6.0.dist-info → StreamingCommunity-2.7.0.dist-info}/WHEEL +0 -0
- {StreamingCommunity-2.6.0.dist-info → StreamingCommunity-2.7.0.dist-info}/entry_points.txt +0 -0
- {StreamingCommunity-2.6.0.dist-info → StreamingCommunity-2.7.0.dist-info}/top_level.txt +0 -0
|
@@ -1,56 +1,49 @@
|
|
|
1
1
|
StreamingCommunity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
StreamingCommunity/run.py,sha256
|
|
3
|
-
StreamingCommunity/Api/Player/ddl.py,sha256=
|
|
4
|
-
StreamingCommunity/Api/Player/maxstream.py,sha256=
|
|
5
|
-
StreamingCommunity/Api/Player/supervideo.py,sha256=
|
|
6
|
-
StreamingCommunity/Api/Player/vixcloud.py,sha256=
|
|
2
|
+
StreamingCommunity/run.py,sha256=-WHY68Kg6ZG13nVKyoRrm1FbW7QIPlEkxne8xKL17UE,12669
|
|
3
|
+
StreamingCommunity/Api/Player/ddl.py,sha256=CYcPDbraNQkLUmammfP_Jw_KVk3xSD-LXdcw2MCFXFQ,2262
|
|
4
|
+
StreamingCommunity/Api/Player/maxstream.py,sha256=u8t1L2k5wR4hs_CvgUXjeYP3kwQvNgEEaHuSf91pETw,5159
|
|
5
|
+
StreamingCommunity/Api/Player/supervideo.py,sha256=XhQvcFJBb19r7ice9hLmQ8TaIAKeXEad8BQcGyLKEhU,5929
|
|
6
|
+
StreamingCommunity/Api/Player/vixcloud.py,sha256=HeoBUrCgeQTy7S_rDvDzl5MKqu2Xgb_wFBXYBHIbHcc,8927
|
|
7
7
|
StreamingCommunity/Api/Player/Helper/Vixcloud/js_parser.py,sha256=U-8QlD5kGzIk3-4t4D6QyYmiDe8UBrSuVi1YHRQb7AU,4295
|
|
8
|
-
StreamingCommunity/Api/Player/Helper/Vixcloud/util.py,sha256=
|
|
8
|
+
StreamingCommunity/Api/Player/Helper/Vixcloud/util.py,sha256=xt96JIbfE5W4Y59W888Cp-baRwnQVEDQO_x7Wq5iyNQ,5492
|
|
9
9
|
StreamingCommunity/Api/Site/1337xx/__init__.py,sha256=AmvsV_jANao_agPGOrV8WFbGEjNlTCTk86Jec5RdRbs,1314
|
|
10
|
-
StreamingCommunity/Api/Site/1337xx/site.py,sha256=
|
|
11
|
-
StreamingCommunity/Api/Site/1337xx/title.py,sha256=
|
|
12
|
-
StreamingCommunity/Api/Site/altadefinizionegratis/__init__.py,sha256=-d6ajulRxJathFxAveXmzpzOFbkbMtoWpViAThR6arM,2201
|
|
13
|
-
StreamingCommunity/Api/Site/altadefinizionegratis/film.py,sha256=IIj7gZ1almed1aLsROd9-jek_q_wikf7CkPXowIEeW8,2274
|
|
14
|
-
StreamingCommunity/Api/Site/altadefinizionegratis/site.py,sha256=Uc9dsamGvzWTTHkEiC8ekPwU3U5u_CK8gmu_M9yCVDc,3498
|
|
10
|
+
StreamingCommunity/Api/Site/1337xx/site.py,sha256=eWCBZPSgA3uGaya762ny-4jiwKEzEwP-XzHQsNqe1Js,2882
|
|
11
|
+
StreamingCommunity/Api/Site/1337xx/title.py,sha256=DWjqUKqXuM_LB0NXkI735_eXOeWb9PpwHEP69_f2BQo,1818
|
|
15
12
|
StreamingCommunity/Api/Site/animeunity/__init__.py,sha256=2dul294DW-VnYGQeo5-WYlRZj1LjPbpL-bhlyuUl6WI,2219
|
|
16
|
-
StreamingCommunity/Api/Site/animeunity/film_serie.py,sha256=
|
|
17
|
-
StreamingCommunity/Api/Site/animeunity/site.py,sha256=
|
|
18
|
-
StreamingCommunity/Api/Site/animeunity/util/ScrapeSerie.py,sha256=
|
|
13
|
+
StreamingCommunity/Api/Site/animeunity/film_serie.py,sha256=rclq_eojNZgGbZNxgavle46gY79scpsw93ZU-qPbkJA,5708
|
|
14
|
+
StreamingCommunity/Api/Site/animeunity/site.py,sha256=LUVIBXRvjS6iFwgL26emYtknYI7R8wvmmvV5u4b8Uhg,6116
|
|
15
|
+
StreamingCommunity/Api/Site/animeunity/util/ScrapeSerie.py,sha256=c280B0xelyYhju6gXk83VFAmsN7K9S_QG84hxudYMSI,2709
|
|
19
16
|
StreamingCommunity/Api/Site/cb01new/__init__.py,sha256=-243pVwMjuAAPk7j7BjLL1SXIAK5ZHVHrsZ8hGhDIic,1329
|
|
20
17
|
StreamingCommunity/Api/Site/cb01new/film.py,sha256=KtFPGQSc9hbmasBiz8dDfILC41iu-AlWiYVVHTVqUWg,1615
|
|
21
|
-
StreamingCommunity/Api/Site/cb01new/site.py,sha256=
|
|
18
|
+
StreamingCommunity/Api/Site/cb01new/site.py,sha256=ln5WTO_FqLiH_P09Kak0p_dEbbd7NtxnFSboR4SMpI0,2513
|
|
22
19
|
StreamingCommunity/Api/Site/ddlstreamitaly/__init__.py,sha256=kyYJErCiMmlI549SFkcjjhVXcInwgDAyKxJJsNEI88A,1469
|
|
23
20
|
StreamingCommunity/Api/Site/ddlstreamitaly/series.py,sha256=cLKRb1cq7LHveDFIpdbhgpSIJFeIhgsbvPeerVQh-LM,3335
|
|
24
|
-
StreamingCommunity/Api/Site/ddlstreamitaly/site.py,sha256=
|
|
25
|
-
StreamingCommunity/Api/Site/ddlstreamitaly/util/ScrapeSerie.py,sha256=
|
|
21
|
+
StreamingCommunity/Api/Site/ddlstreamitaly/site.py,sha256=YPeS4Tcl9XdbUzs3RHwVS7KkKI_K-K8bg3ymz7sUTDw,3095
|
|
22
|
+
StreamingCommunity/Api/Site/ddlstreamitaly/util/ScrapeSerie.py,sha256=Zy3XAsw2HJwJ1d_T2nn9WTlmIaWP_zvK1wMm1722apc,2553
|
|
26
23
|
StreamingCommunity/Api/Site/guardaserie/__init__.py,sha256=xCuKD72yOjazCF3GsIWLSeTzFpwr-8W33AgVKT5PFUU,1321
|
|
27
24
|
StreamingCommunity/Api/Site/guardaserie/series.py,sha256=f5-5Fy-Bh1QF9zA4zr-DJRgoQCO8sQ0Af0v5VEleHFg,5619
|
|
28
|
-
StreamingCommunity/Api/Site/guardaserie/site.py,sha256=
|
|
29
|
-
StreamingCommunity/Api/Site/guardaserie/util/ScrapeSerie.py,sha256=
|
|
30
|
-
StreamingCommunity/Api/Site/ilcorsaronero/__init__.py,sha256=P4raHiMhz-8UtCm4P1S065poMztTKzT9BovsfRXVuUs,1347
|
|
31
|
-
StreamingCommunity/Api/Site/ilcorsaronero/site.py,sha256=B5LwR0vLLDaXMfwFHF3hnTaP1X3Z28t7fV3-le4T3Mg,2022
|
|
32
|
-
StreamingCommunity/Api/Site/ilcorsaronero/title.py,sha256=aVkLZU5NsY40S_yrLYf2eAk3ZyEE_T9FlHZz9ZPCknM,1305
|
|
33
|
-
StreamingCommunity/Api/Site/ilcorsaronero/util/ilCorsarScraper.py,sha256=BJgmv2UO3XM0gNkSsAt1REJoIUXjD_1nxT6Tpp5HGQg,5114
|
|
25
|
+
StreamingCommunity/Api/Site/guardaserie/site.py,sha256=YCibipP15QmGpuPRmn9FVofY4U_1Dze2AgLS3mTzeVg,2806
|
|
26
|
+
StreamingCommunity/Api/Site/guardaserie/util/ScrapeSerie.py,sha256=fpDXGRf8GMNqRu8vNBM_ao6qRktIySaEyvC4mK1Fvg0,3268
|
|
34
27
|
StreamingCommunity/Api/Site/mostraguarda/__init__.py,sha256=Z4SpSr4OpNJYfhqxkNENZehk09jh72_D1cXTuoXNnVI,1184
|
|
35
|
-
StreamingCommunity/Api/Site/mostraguarda/film.py,sha256=
|
|
36
|
-
StreamingCommunity/Api/Site/streamingcommunity/__init__.py,sha256=
|
|
37
|
-
StreamingCommunity/Api/Site/streamingcommunity/film.py,sha256=
|
|
38
|
-
StreamingCommunity/Api/Site/streamingcommunity/series.py,sha256=
|
|
39
|
-
StreamingCommunity/Api/Site/streamingcommunity/site.py,sha256=
|
|
40
|
-
StreamingCommunity/Api/Site/streamingcommunity/util/ScrapeSerie.py,sha256=
|
|
28
|
+
StreamingCommunity/Api/Site/mostraguarda/film.py,sha256=AcsCdLqMsilGxuuZlFoYV5njyMj0NT-ZX9wV6iD-0lw,2726
|
|
29
|
+
StreamingCommunity/Api/Site/streamingcommunity/__init__.py,sha256=A9TYTo0ULdLvIT3gchCwWEASGwQnZ29Re_3lDKZrSvE,2292
|
|
30
|
+
StreamingCommunity/Api/Site/streamingcommunity/film.py,sha256=qodORXTbUoJcOxgDXc82tcBDE7BBCr-_m7hG2v0fkq8,2516
|
|
31
|
+
StreamingCommunity/Api/Site/streamingcommunity/series.py,sha256=nUzMfdt_brqAeCOEb4AFIrh2apB-F070N-iXFpb3j7s,7862
|
|
32
|
+
StreamingCommunity/Api/Site/streamingcommunity/site.py,sha256=owqOj4zoCGx0Kbyd-IN0sybWrxC_kONbCrFju9kxdsM,3117
|
|
33
|
+
StreamingCommunity/Api/Site/streamingcommunity/util/ScrapeSerie.py,sha256=CEe9rwqG8ewgFxDuXrhCuwaG5hGoAsCS7lsRDktBMmU,3570
|
|
41
34
|
StreamingCommunity/Api/Template/__init__.py,sha256=oyfd_4_g5p5q6mxb_rKwSsudZnTM3W3kg1tLwxg-v-Q,46
|
|
42
|
-
StreamingCommunity/Api/Template/config_loader.py,sha256=
|
|
35
|
+
StreamingCommunity/Api/Template/config_loader.py,sha256=lQPdhg-ipevdsZucb9DNErmphmZyKRoklmAo8e6v1sY,2145
|
|
43
36
|
StreamingCommunity/Api/Template/site.py,sha256=BNff60a8TWhg8yRnpGQPXtR8UKAVI2Kn3M-Wf1XIeE8,2934
|
|
44
37
|
StreamingCommunity/Api/Template/Class/SearchType.py,sha256=FtO8xDUGEeJgMWsK2Ab7ZzAFsncalTYL2oEYi8uCnuk,2531
|
|
45
38
|
StreamingCommunity/Api/Template/Util/__init__.py,sha256=lIP-Of79FzENknlgllwHloFAnuNbozjKCDIFk5L5KRw,276
|
|
46
|
-
StreamingCommunity/Api/Template/Util/get_domain.py,sha256=
|
|
47
|
-
StreamingCommunity/Api/Template/Util/manage_ep.py,sha256=
|
|
39
|
+
StreamingCommunity/Api/Template/Util/get_domain.py,sha256=IAFuR_XLAMqZJRan-Pz_UjAL_Ii8OqKIo2ZnKy1sQ-g,4486
|
|
40
|
+
StreamingCommunity/Api/Template/Util/manage_ep.py,sha256=CQp7A4KatIpSczSEWZE6RR7_85XVdbqtspSDEIDKifw,8091
|
|
48
41
|
StreamingCommunity/Api/Template/Util/recall_search.py,sha256=QSKDI4fyQfKF8C2eZXW6lBrAp1HTuhWQeA6g8ybDQYQ,1147
|
|
49
42
|
StreamingCommunity/Lib/Downloader/__init__.py,sha256=JhbBh5hOnSM7VmtkxJ7zZ_FtWEC1JdnKThsSBjLV5FY,140
|
|
50
|
-
StreamingCommunity/Lib/Downloader/HLS/downloader.py,sha256=
|
|
51
|
-
StreamingCommunity/Lib/Downloader/HLS/proxyes.py,sha256=
|
|
52
|
-
StreamingCommunity/Lib/Downloader/HLS/segments.py,sha256=
|
|
53
|
-
StreamingCommunity/Lib/Downloader/MP4/downloader.py,sha256=
|
|
43
|
+
StreamingCommunity/Lib/Downloader/HLS/downloader.py,sha256=bTMU21GjXCRNffgL5BOhsPw8SaqbQRg-I6jLO8SDbVo,21049
|
|
44
|
+
StreamingCommunity/Lib/Downloader/HLS/proxyes.py,sha256=ilDp8NDs0npn8V8GO_jj5F1maPhM4DuT9zQZ9reuWQk,3279
|
|
45
|
+
StreamingCommunity/Lib/Downloader/HLS/segments.py,sha256=ioxUo5fMpXIUJcRrVkJw6NigMdL_A84XC5X8Qu_ywwU,18807
|
|
46
|
+
StreamingCommunity/Lib/Downloader/MP4/downloader.py,sha256=boVwcmyqnBqX7rHKZImEOW59ELpqj4IBZ2eKLWsRW_k,7573
|
|
54
47
|
StreamingCommunity/Lib/Downloader/TOR/downloader.py,sha256=n8-56EoGpe3-FO72zL66ovLGTAZRJwzmNqeRGe8VSO8,11212
|
|
55
48
|
StreamingCommunity/Lib/FFmpeg/__init__.py,sha256=pFt6A1gD2tZ8REEXa8QgM7_CsenrmBLQXDh_I1bwZvM,131
|
|
56
49
|
StreamingCommunity/Lib/FFmpeg/capture.py,sha256=GjzT2BNtGL75A9scJNX1RqiRn4cy39dFeHnz2b_Ocw8,5431
|
|
@@ -66,21 +59,21 @@ StreamingCommunity/Lib/TMBD/obj_tmbd.py,sha256=SsvxM4z0xU1IsSrB9o2dpRfuRDUYQk3uR
|
|
|
66
59
|
StreamingCommunity/Lib/TMBD/tmdb.py,sha256=Nq06TDLpBgShd1mzOxujGfeiRHldiqtCh70w5poK484,10822
|
|
67
60
|
StreamingCommunity/TelegramHelp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
68
61
|
StreamingCommunity/TelegramHelp/telegram_bot.py,sha256=jqyo_1cc8ZPGaurHcTZPvrMDnbCLD7I4WhGPXNCt7Fo,26544
|
|
69
|
-
StreamingCommunity/Upload/update.py,sha256=
|
|
70
|
-
StreamingCommunity/Upload/version.py,sha256=
|
|
71
|
-
StreamingCommunity/Util/_jsonConfig.py,sha256=
|
|
62
|
+
StreamingCommunity/Upload/update.py,sha256=J1HoYX00am_Eee7ya5Hi6pA6JhI86l5lRxMch665fuI,2547
|
|
63
|
+
StreamingCommunity/Upload/version.py,sha256=vo1R5JdZFFEkyRqjVz6SuCQzUvQ1dFu8oPle4QY8YzE,171
|
|
64
|
+
StreamingCommunity/Util/_jsonConfig.py,sha256=u6w-xfA2AErSYnLKqaoyoXg6L5ONI_mHWKOiEE13DqI,14565
|
|
72
65
|
StreamingCommunity/Util/call_stack.py,sha256=bVYEjwLJnRNJ1tgfwClpyVcLKCTeTMHM2S6-HM2Ibfo,1375
|
|
73
66
|
StreamingCommunity/Util/color.py,sha256=TWvoellnYd-oCTeU3bnXqkMf864KgF9YXwzjtI6rd4g,459
|
|
74
67
|
StreamingCommunity/Util/console.py,sha256=xdGMbH38By9d4ugYMVJFaUrcMJW2krKZh0zbptA3SVQ,218
|
|
75
68
|
StreamingCommunity/Util/ffmpeg_installer.py,sha256=q5yb_ZXKe9PhcG7JbKLfo1AZa8DNukgHqymPbudDuAY,13585
|
|
76
|
-
StreamingCommunity/Util/headers.py,sha256=
|
|
69
|
+
StreamingCommunity/Util/headers.py,sha256=KoGHCd1Xd2vxZLjbeL5TScZQs71DALrUSYAieWrgVoQ,1350
|
|
77
70
|
StreamingCommunity/Util/logger.py,sha256=ekHO3tryCwo5zqSe2RoI6s3qZsZx9ghinTchipMEovg,2112
|
|
78
71
|
StreamingCommunity/Util/message.py,sha256=F2QKjkcCBl6TjsaM5G6iDck0IhxBnDkKV3itwUebr5c,1403
|
|
79
72
|
StreamingCommunity/Util/os.py,sha256=xF8wfjI8aLfIN6DwKYc0g2CMkj6PNtJUd4LCNJVCZY4,17426
|
|
80
|
-
StreamingCommunity/Util/table.py,sha256=
|
|
81
|
-
StreamingCommunity-2.
|
|
82
|
-
StreamingCommunity-2.
|
|
83
|
-
StreamingCommunity-2.
|
|
84
|
-
StreamingCommunity-2.
|
|
85
|
-
StreamingCommunity-2.
|
|
86
|
-
StreamingCommunity-2.
|
|
73
|
+
StreamingCommunity/Util/table.py,sha256=Ca0bQWwfq_Tfx9ESHeQQgu3tAXTGaR7ku7VlJyr7R8I,8902
|
|
74
|
+
StreamingCommunity-2.7.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
75
|
+
StreamingCommunity-2.7.0.dist-info/METADATA,sha256=dQkAKA--AEeshuY0ACDOKBc_I-dO60vFWAwyESgVjoU,19640
|
|
76
|
+
StreamingCommunity-2.7.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
77
|
+
StreamingCommunity-2.7.0.dist-info/entry_points.txt,sha256=Qph9XYfDC8n4LfDLOSl6gJGlkb9eFb5f-JOr_Wb_5rk,67
|
|
78
|
+
StreamingCommunity-2.7.0.dist-info/top_level.txt,sha256=YsOcxKP-WOhWpIWgBlh0coll9XUx7aqmRPT7kmt3fH0,19
|
|
79
|
+
StreamingCommunity-2.7.0.dist-info/RECORD,,
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# 26.05.24
|
|
2
|
-
|
|
3
|
-
import sys
|
|
4
|
-
import subprocess
|
|
5
|
-
from urllib.parse import quote_plus
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# Internal utilities
|
|
9
|
-
from StreamingCommunity.Util.console import console, msg
|
|
10
|
-
from StreamingCommunity.Api.Template import get_select_title
|
|
11
|
-
from StreamingCommunity.TelegramHelp.telegram_bot import get_bot_instance
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# Logic class
|
|
15
|
-
from StreamingCommunity.Api.Template.config_loader import site_constant
|
|
16
|
-
from .site import title_search, media_search_manager, table_show_manager
|
|
17
|
-
from .film import download_film
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# Variable
|
|
21
|
-
indice = 2
|
|
22
|
-
_useFor = "film"
|
|
23
|
-
_deprecate = False
|
|
24
|
-
_priority = 2
|
|
25
|
-
_engineDownload = "hls"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
def search(string_to_search: str = None, get_onylDatabase: bool = False):
|
|
29
|
-
"""
|
|
30
|
-
Main function of the application for film and series.
|
|
31
|
-
"""
|
|
32
|
-
if site_constant.TELEGRAM_BOT:
|
|
33
|
-
bot = get_bot_instance()
|
|
34
|
-
|
|
35
|
-
if string_to_search is None:
|
|
36
|
-
|
|
37
|
-
# Chiedi la scelta all'utente con il bot Telegram
|
|
38
|
-
string_to_search = bot.ask(
|
|
39
|
-
"key_search",
|
|
40
|
-
f"Inserisci la parola da cercare\noppure 🔙 back per tornare alla scelta: ",
|
|
41
|
-
None
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
if string_to_search == 'back':
|
|
45
|
-
# Riavvia lo script
|
|
46
|
-
# Chiude il processo attuale e avvia una nuova istanza dello script
|
|
47
|
-
subprocess.Popen([sys.executable] + sys.argv)
|
|
48
|
-
sys.exit()
|
|
49
|
-
|
|
50
|
-
else:
|
|
51
|
-
if string_to_search is None:
|
|
52
|
-
string_to_search = msg.ask(f"\n[purple]Insert word to search in [green]{site_constant.SITE_NAME}").strip()
|
|
53
|
-
|
|
54
|
-
# Search on database
|
|
55
|
-
len_database = title_search(quote_plus(string_to_search))
|
|
56
|
-
|
|
57
|
-
# Return list of elements
|
|
58
|
-
if get_onylDatabase:
|
|
59
|
-
return media_search_manager
|
|
60
|
-
|
|
61
|
-
if len_database > 0:
|
|
62
|
-
|
|
63
|
-
# Select title from list
|
|
64
|
-
select_title = get_select_title(table_show_manager, media_search_manager)
|
|
65
|
-
|
|
66
|
-
# Download only film
|
|
67
|
-
download_film(select_title)
|
|
68
|
-
|
|
69
|
-
else:
|
|
70
|
-
if site_constant.TELEGRAM_BOT:
|
|
71
|
-
bot.send_message(f"Nessun risultato trovato riprova", None)
|
|
72
|
-
|
|
73
|
-
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
|
|
74
|
-
|
|
75
|
-
# Retry
|
|
76
|
-
search()
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# 26.05.24
|
|
2
|
-
|
|
3
|
-
import os
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
# Internal utilities
|
|
7
|
-
from StreamingCommunity.Util.console import console
|
|
8
|
-
from StreamingCommunity.Util.os import os_manager
|
|
9
|
-
from StreamingCommunity.Util.message import start_message
|
|
10
|
-
from StreamingCommunity.Lib.Downloader import HLS_Downloader
|
|
11
|
-
from StreamingCommunity.TelegramHelp.telegram_bot import TelegramSession, get_bot_instance
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# Logic class
|
|
15
|
-
from StreamingCommunity.Api.Template.config_loader import site_constant
|
|
16
|
-
from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# Player
|
|
20
|
-
from StreamingCommunity.Api.Player.supervideo import VideoSource
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
def download_film(select_title: MediaItem) -> str:
|
|
24
|
-
"""
|
|
25
|
-
Downloads a film using the provided film ID, title name, and domain.
|
|
26
|
-
|
|
27
|
-
Parameters:
|
|
28
|
-
- title_name (str): The name of the film title.
|
|
29
|
-
- url (str): The url of the video
|
|
30
|
-
|
|
31
|
-
Return:
|
|
32
|
-
- str: output path
|
|
33
|
-
"""
|
|
34
|
-
if site_constant.TELEGRAM_BOT:
|
|
35
|
-
bot = get_bot_instance()
|
|
36
|
-
bot.send_message(f"Download in corso:\n{select_title.name}", None)
|
|
37
|
-
|
|
38
|
-
# Get script_id
|
|
39
|
-
script_id = TelegramSession.get_session()
|
|
40
|
-
if script_id != "unknown":
|
|
41
|
-
TelegramSession.updateScriptId(script_id, select_title.name)
|
|
42
|
-
|
|
43
|
-
# Start message and display film information
|
|
44
|
-
start_message()
|
|
45
|
-
console.print(f"[yellow]Download: [red]{select_title.name} \n")
|
|
46
|
-
|
|
47
|
-
# Set domain and media ID for the video source
|
|
48
|
-
video_source = VideoSource(select_title.url)
|
|
49
|
-
|
|
50
|
-
# Define output path
|
|
51
|
-
title_name = os_manager.get_sanitize_file(select_title.name) + ".mp4"
|
|
52
|
-
mp4_path = os.path.join(site_constant.MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
|
53
|
-
|
|
54
|
-
# Get m3u8 master playlist
|
|
55
|
-
master_playlist = video_source.get_playlist()
|
|
56
|
-
|
|
57
|
-
# Download the film using the m3u8 playlist, and output filename
|
|
58
|
-
r_proc = HLS_Downloader(
|
|
59
|
-
m3u8_url=master_playlist,
|
|
60
|
-
output_path=os.path.join(mp4_path, title_name)
|
|
61
|
-
).start()
|
|
62
|
-
|
|
63
|
-
if site_constant.TELEGRAM_BOT:
|
|
64
|
-
|
|
65
|
-
# Delete script_id
|
|
66
|
-
script_id = TelegramSession.get_session()
|
|
67
|
-
if script_id != "unknown":
|
|
68
|
-
TelegramSession.deleteScriptId(script_id)
|
|
69
|
-
|
|
70
|
-
if "error" in r_proc.keys():
|
|
71
|
-
try:
|
|
72
|
-
os.remove(r_proc['path'])
|
|
73
|
-
except:
|
|
74
|
-
pass
|
|
75
|
-
|
|
76
|
-
return r_proc['path']
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
# 26.05.24
|
|
2
|
-
|
|
3
|
-
# External libraries
|
|
4
|
-
import httpx
|
|
5
|
-
from bs4 import BeautifulSoup
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# Internal utilities
|
|
9
|
-
from StreamingCommunity.Util.console import console
|
|
10
|
-
from StreamingCommunity.Util._jsonConfig import config_manager
|
|
11
|
-
from StreamingCommunity.Util.headers import get_headers
|
|
12
|
-
from StreamingCommunity.Util.table import TVShowManager
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
# Logic class
|
|
16
|
-
from StreamingCommunity.Api.Template.config_loader import site_constant
|
|
17
|
-
from StreamingCommunity.Api.Template.Util import search_domain
|
|
18
|
-
from StreamingCommunity.Api.Template.Class.SearchType import MediaManager
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# Variable
|
|
22
|
-
media_search_manager = MediaManager()
|
|
23
|
-
table_show_manager = TVShowManager()
|
|
24
|
-
max_timeout = config_manager.get_int("REQUESTS", "timeout")
|
|
25
|
-
disable_searchDomain = config_manager.get_bool("DEFAULT", "disable_searchDomain")
|
|
26
|
-
|
|
27
|
-
# Telegram bot instance
|
|
28
|
-
from StreamingCommunity.TelegramHelp.telegram_bot import get_bot_instance
|
|
29
|
-
from StreamingCommunity.Util._jsonConfig import config_manager
|
|
30
|
-
TELEGRAM_BOT = config_manager.get_bool('DEFAULT', 'telegram_bot')
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def title_search(title_search: str) -> int:
|
|
34
|
-
"""
|
|
35
|
-
Search for titles based on a search query.
|
|
36
|
-
|
|
37
|
-
Parameters:
|
|
38
|
-
- title_search (str): The title to search for.
|
|
39
|
-
|
|
40
|
-
Returns:
|
|
41
|
-
int: The number of titles found.
|
|
42
|
-
"""
|
|
43
|
-
if TELEGRAM_BOT:
|
|
44
|
-
bot = get_bot_instance()
|
|
45
|
-
|
|
46
|
-
media_search_manager.clear()
|
|
47
|
-
table_show_manager.clear()
|
|
48
|
-
|
|
49
|
-
# Find new domain if prev dont work
|
|
50
|
-
domain_to_use = site_constant.DOMAIN_NOW
|
|
51
|
-
|
|
52
|
-
if not disable_searchDomain:
|
|
53
|
-
domain_to_use, base_url = search_domain(site_constant.SITE_NAME, f"https://{site_constant.SITE_NAME}.{site_constant.DOMAIN_NOW}")
|
|
54
|
-
|
|
55
|
-
# Send request to search for title
|
|
56
|
-
client = httpx.Client()
|
|
57
|
-
|
|
58
|
-
try:
|
|
59
|
-
response = client.get(
|
|
60
|
-
url=f"https://{site_constant.SITE_NAME}.{domain_to_use}/?story={title_search.replace(' ', '+')}&do=search&subaction=search&titleonly=3",
|
|
61
|
-
headers={'User-Agent': get_headers()},
|
|
62
|
-
timeout=max_timeout
|
|
63
|
-
)
|
|
64
|
-
response.raise_for_status()
|
|
65
|
-
|
|
66
|
-
except Exception as e:
|
|
67
|
-
console.print(f"Site: {site_constant.SITE_NAME}, request search error: {e}")
|
|
68
|
-
raise
|
|
69
|
-
|
|
70
|
-
# Create soup and find table
|
|
71
|
-
soup = BeautifulSoup(response.text, "html.parser")
|
|
72
|
-
|
|
73
|
-
# Inizializza la lista delle scelte
|
|
74
|
-
if TELEGRAM_BOT:
|
|
75
|
-
choices = []
|
|
76
|
-
|
|
77
|
-
for row in soup.find_all('div', class_='col-lg-3 col-md-3 col-xs-4'):
|
|
78
|
-
try:
|
|
79
|
-
|
|
80
|
-
title_element = row.find('h2', class_='titleFilm').find('a')
|
|
81
|
-
title = title_element.get_text(strip=True)
|
|
82
|
-
link = title_element['href']
|
|
83
|
-
|
|
84
|
-
imdb_element = row.find('div', class_='imdb-rate')
|
|
85
|
-
imdb_rating = imdb_element.get_text(strip=True).split(":")[-1]
|
|
86
|
-
|
|
87
|
-
film_info = {
|
|
88
|
-
'name': title,
|
|
89
|
-
'url': link,
|
|
90
|
-
'score': imdb_rating
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
media_search_manager.add_media(film_info)
|
|
94
|
-
|
|
95
|
-
if TELEGRAM_BOT:
|
|
96
|
-
# Crea una stringa formattata per ogni scelta con numero
|
|
97
|
-
choice_text = f"{len(choices)} - {film_info.get('name')} ({film_info.get('url')}) {film_info.get('score')}"
|
|
98
|
-
choices.append(choice_text)
|
|
99
|
-
|
|
100
|
-
except AttributeError as e:
|
|
101
|
-
print(f"Error parsing a film entry: {e}")
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if TELEGRAM_BOT:
|
|
105
|
-
if choices:
|
|
106
|
-
bot.send_message(f"Lista dei risultati:", choices)
|
|
107
|
-
|
|
108
|
-
# Return the number of titles found
|
|
109
|
-
return media_search_manager.get_length()
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# 02.07.24
|
|
2
|
-
|
|
3
|
-
import asyncio
|
|
4
|
-
from urllib.parse import quote_plus
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# Internal utilities
|
|
8
|
-
from StreamingCommunity.Util.console import console, msg
|
|
9
|
-
from StreamingCommunity.Api.Template import get_select_title
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
# Logic class
|
|
13
|
-
from StreamingCommunity.Api.Template.config_loader import site_constant
|
|
14
|
-
from .site import title_search, media_search_manager, table_show_manager
|
|
15
|
-
from .title import download_title
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
# Variable
|
|
19
|
-
indice = 9
|
|
20
|
-
_useFor = "film_serie"
|
|
21
|
-
_deprecate = False
|
|
22
|
-
_priority = 2
|
|
23
|
-
_engineDownload = "tor"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def search(string_to_search: str = None, get_onylDatabase: bool = False):
|
|
27
|
-
"""
|
|
28
|
-
Main function of the application for film and series.
|
|
29
|
-
"""
|
|
30
|
-
|
|
31
|
-
if string_to_search is None:
|
|
32
|
-
string_to_search = msg.ask(f"\n[purple]Insert word to search in [green]{site_constant.SITE_NAME}").strip()
|
|
33
|
-
|
|
34
|
-
# Search on database
|
|
35
|
-
len_database = asyncio.run(title_search(quote_plus(string_to_search)))
|
|
36
|
-
|
|
37
|
-
# Return list of elements
|
|
38
|
-
if get_onylDatabase:
|
|
39
|
-
return media_search_manager
|
|
40
|
-
|
|
41
|
-
if len_database > 0:
|
|
42
|
-
|
|
43
|
-
# Select title from list
|
|
44
|
-
select_title = get_select_title(table_show_manager, media_search_manager)
|
|
45
|
-
|
|
46
|
-
# Download title
|
|
47
|
-
download_title(select_title)
|
|
48
|
-
|
|
49
|
-
else:
|
|
50
|
-
console.print(f"\n[red]Nothing matching was found for[white]: [purple]{string_to_search}")
|
|
51
|
-
|
|
52
|
-
# Retry
|
|
53
|
-
search()
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# 02.07.24
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# Internal utilities
|
|
5
|
-
from StreamingCommunity.Util._jsonConfig import config_manager
|
|
6
|
-
from StreamingCommunity.Util.table import TVShowManager
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# Logic class
|
|
10
|
-
from StreamingCommunity.Api.Template.config_loader import site_constant
|
|
11
|
-
from StreamingCommunity.Api.Template.Util import search_domain
|
|
12
|
-
from StreamingCommunity.Api.Template.Class.SearchType import MediaManager
|
|
13
|
-
from .util.ilCorsarScraper import IlCorsaroNeroScraper
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
# Variable
|
|
17
|
-
media_search_manager = MediaManager()
|
|
18
|
-
table_show_manager = TVShowManager()
|
|
19
|
-
max_timeout = config_manager.get_int("REQUESTS", "timeout")
|
|
20
|
-
disable_searchDomain = config_manager.get_bool("DEFAULT", "disable_searchDomain")
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
async def title_search(word_to_search: str) -> int:
|
|
24
|
-
"""
|
|
25
|
-
Search for titles based on a search query.
|
|
26
|
-
|
|
27
|
-
Parameters:
|
|
28
|
-
- title_search (str): The title to search for.
|
|
29
|
-
|
|
30
|
-
Returns:
|
|
31
|
-
- int: The number of titles found.
|
|
32
|
-
"""
|
|
33
|
-
media_search_manager.clear()
|
|
34
|
-
table_show_manager.clear()
|
|
35
|
-
|
|
36
|
-
# Find new domain if prev dont work
|
|
37
|
-
domain_to_use = site_constant.DOMAIN_NOW
|
|
38
|
-
|
|
39
|
-
if not disable_searchDomain:
|
|
40
|
-
domain_to_use, base_url = search_domain(site_constant.SITE_NAME, f"https://{site_constant.SITE_NAME}.{site_constant.DOMAIN_NOW}")
|
|
41
|
-
|
|
42
|
-
# Create scraper and collect result
|
|
43
|
-
print("\n")
|
|
44
|
-
scraper = IlCorsaroNeroScraper(f"https://{site_constant.SITE_NAME}.{domain_to_use}/", 1)
|
|
45
|
-
results = await scraper.search(word_to_search)
|
|
46
|
-
|
|
47
|
-
for i, torrent in enumerate(results):
|
|
48
|
-
try:
|
|
49
|
-
|
|
50
|
-
media_search_manager.add_media({
|
|
51
|
-
'name': torrent['name'],
|
|
52
|
-
'type': torrent['type'],
|
|
53
|
-
'seed': torrent['seed'],
|
|
54
|
-
'leech': torrent['leech'],
|
|
55
|
-
'size': torrent['size'],
|
|
56
|
-
'date': torrent['date'],
|
|
57
|
-
'url': torrent['url']
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
except Exception as e:
|
|
61
|
-
print(f"Error parsing a film entry: {e}")
|
|
62
|
-
|
|
63
|
-
# Return the number of titles found
|
|
64
|
-
return media_search_manager.get_length()
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# 02.07.24
|
|
2
|
-
|
|
3
|
-
import os
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
# Internal utilities
|
|
7
|
-
from StreamingCommunity.Util.console import console
|
|
8
|
-
from StreamingCommunity.Util.os import os_manager
|
|
9
|
-
from StreamingCommunity.Util.message import start_message
|
|
10
|
-
from StreamingCommunity.Lib.Downloader import TOR_downloader
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# Logic class
|
|
14
|
-
from StreamingCommunity.Api.Template.config_loader import site_constant
|
|
15
|
-
from StreamingCommunity.Api.Template.Class.SearchType import MediaItem
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def download_title(select_title: MediaItem):
|
|
20
|
-
"""
|
|
21
|
-
Downloads a media item and saves it as an MP4 file.
|
|
22
|
-
|
|
23
|
-
Parameters:
|
|
24
|
-
- select_title (MediaItem): The media item to be downloaded. This should be an instance of the MediaItem class, containing attributes like `name` and `url`.
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
start_message()
|
|
28
|
-
console.print(f"[yellow]Download: [red]{select_title.name} \n")
|
|
29
|
-
print()
|
|
30
|
-
|
|
31
|
-
# Define output path
|
|
32
|
-
title_name = os_manager.get_sanitize_file(select_title.name)
|
|
33
|
-
mp4_path = os.path.join(site_constant.MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
|
34
|
-
|
|
35
|
-
# Create output folder
|
|
36
|
-
os_manager.create_path(mp4_path)
|
|
37
|
-
|
|
38
|
-
# Tor manager
|
|
39
|
-
manager = TOR_downloader()
|
|
40
|
-
manager.add_magnet_link(select_title.url)
|
|
41
|
-
manager.start_download()
|
|
42
|
-
manager.move_downloaded_files(mp4_path)
|