plexflow 0.0.130__py3-none-any.whl → 0.0.132__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.
@@ -164,3 +164,10 @@ class Show(PartialContext):
164
164
 
165
165
  def episode_imdb_codes(self, season: int) -> dict:
166
166
  return self.get(f"episodes/season/{season}/imdb/codes")
167
+
168
+ @property
169
+ def selected_episode_imdb_code(self) -> str:
170
+ episode = self.selected_episode
171
+ season = episode.parentIndex
172
+ codes = self.episode_imdb_codes(season=season)
173
+ return codes.get(episode.index)
@@ -31,3 +31,22 @@ class AutoTorrents:
31
31
  return PiratesParadise().search(query=query, kwargs=kwargs)
32
32
  else:
33
33
  raise ValueError(f"Invalid source: {source}")
34
+
35
+ @staticmethod
36
+ def show(imdb_id: str = None, query: str = None, source: str = 'tpb', headless: bool = True, **kwargs) -> List[Torrent]:
37
+ if source == 'tpb':
38
+ return TPB(**kwargs).search(query=imdb_id if not query else query, headless=headless, **kwargs)
39
+ elif source == 'torrentquest':
40
+ return TorrentQuest(**kwargs).search(query=query)
41
+ elif source == 'extratorrent':
42
+ return ExtraTorrent(**kwargs).search(query=query)
43
+ elif source == 'therarbg':
44
+ return TheRarbg(**kwargs).search(query=imdb_id, headless=headless, **kwargs)
45
+ elif source == 'ext':
46
+ return Ext(**kwargs).search(query=query)
47
+ elif source == 'snowfl':
48
+ return Snowfl(**kwargs).search(query=query)
49
+ elif source == "piratesparadise":
50
+ return PiratesParadise().search(query=query, kwargs=kwargs)
51
+ else:
52
+ raise ValueError(f"Invalid source: {source}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: plexflow
3
- Version: 0.0.130
3
+ Version: 0.0.132
4
4
  Summary: A short description of the package.
5
5
  License: MIT
6
6
  Keywords: keyword1,keyword2,keyword3
@@ -32,7 +32,7 @@ plexflow/core/context/partials/ids.py,sha256=QoQ6FbX1OIWrE-iuz-G6kSzBlTt1_I1jyfl
32
32
  plexflow/core/context/partials/movie.py,sha256=VXQ2SspFgGSRgDefg4VlHrH2fns3KRuKlU72ps6527o,3861
33
33
  plexflow/core/context/partials/movie_assets.py,sha256=qjZTs-lpPfZkQQSKm6CB4aeECX5_YzOom51PxZzmnts,1913
34
34
  plexflow/core/context/partials/reports.py,sha256=0W58RwK3VSsVHbF0rhvMNNlZZr01eutwermyvdeEZIs,810
35
- plexflow/core/context/partials/show.py,sha256=2hvXtLDf8IJxEGJZMui6o_WrILX0SiISSHC-YQjIrIA,5345
35
+ plexflow/core/context/partials/show.py,sha256=SpNGCRV8TYyqWc3_gZekFndvENJSy9sabDtilW_grKg,5580
36
36
  plexflow/core/context/partials/subtitles.py,sha256=0NhKGkP-sArQswuSyA7puRSjjoobF-3Ah7Pd39QkgTU,535
37
37
  plexflow/core/context/partials/tgx_batch.py,sha256=TduB09oBOQ8CtmPYsHIeNe7AI-ypKw21zQAX-7qktEs,859
38
38
  plexflow/core/context/partials/tgx_context.py,sha256=_FuhOvKsFqi_uynHxgC9_QIR2CfYmz-uJCRFtGFJmXI,1641
@@ -406,7 +406,7 @@ plexflow/core/torrents/analyzers/analyzed_torrent.py,sha256=gsAr5RjYVXozWUaP3zSh
406
406
  plexflow/core/torrents/analyzers/analyzer.py,sha256=-KqZpwrrQpu5Aqt94plO5fUr1RQOOdCzKb1dT5P1SoE,1358
407
407
  plexflow/core/torrents/analyzers/torrentquest/__pycache__/analyzer.cpython-312.pyc,sha256=NpoTFmZEWD7_49Qdbr4_CsvIn5F0uOjls-uWa3hgodY,2759
408
408
  plexflow/core/torrents/analyzers/torrentquest/analyzer.py,sha256=f2X3CcYBA9xYZ6kRLkGQ5YK5feXjsw229z5nLWUHMEI,1907
409
- plexflow/core/torrents/auto/__pycache__/auto_torrents.cpython-312.pyc,sha256=9lJlAtKIDRoxpxvCL_oazLZCPhAW1Lh26soE-tZMVVk,2503
409
+ plexflow/core/torrents/auto/__pycache__/auto_torrents.cpython-312.pyc,sha256=rtkezji20w4qGE8aQQ-4ujQ7PbpBV6Ucxb-sLaE_Wvg,3610
410
410
  plexflow/core/torrents/auto/auto_providers/auto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
411
411
  plexflow/core/torrents/auto/auto_providers/auto/__pycache__/__init__.cpython-311.pyc,sha256=qCFNPGmwyRmmvaF4ox321aGG3j1ix-HTZg8LA5kr0QE,197
412
412
  plexflow/core/torrents/auto/auto_providers/auto/__pycache__/__init__.cpython-312.pyc,sha256=vaXlU_2wadR_q6ZWmjygCqx4BjjtyYaHXzC5fD6CI1w,185
@@ -422,7 +422,7 @@ plexflow/core/torrents/auto/auto_providers/auto/__pycache__/show.cpython-311.pyc
422
422
  plexflow/core/torrents/auto/auto_providers/auto/__pycache__/show.cpython-312.pyc,sha256=845WWBpPiVLB9FIc4zJ_1NDw9WFhvFqS13Cc1aneGg8,1761
423
423
  plexflow/core/torrents/auto/auto_providers/auto/torrent.py,sha256=yenzXr-VqmpoEONJdMOKgtstdOSzCIAFphTTm8ZI7B4,1594
424
424
  plexflow/core/torrents/auto/auto_providers/tpb/torrent.py,sha256=8X2i75s3sI9rGcTQ94_0kNkO-7docR9P_I0BRAv7PUQ,1612
425
- plexflow/core/torrents/auto/auto_torrents.py,sha256=Raal3-ZK30o8hOvQrwiWYmiQy7zYkFcKTLi4wQi4K7k,1721
425
+ plexflow/core/torrents/auto/auto_torrents.py,sha256=cP98UKMaWRtqEHZmoSno-7nOpchPvpRme4YpJAH8wWc,2685
426
426
  plexflow/core/torrents/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
427
427
  plexflow/core/torrents/providers/__pycache__/__init__.cpython-311.pyc,sha256=8u9BzsXTcFt1MeuWCG0TjlyZaO7NJjsSfx_OUByR5rE,182
428
428
  plexflow/core/torrents/providers/__pycache__/__init__.cpython-312.pyc,sha256=z6zgerdghp5H7HSd9hi6ZdF3AVAFE92_eITQtdobJyI,168
@@ -714,7 +714,7 @@ plexflow/utils/video/__pycache__/audio.cpython-312.pyc,sha256=kmzGDCHSC1hWyHwRut
714
714
  plexflow/utils/video/__pycache__/subtitle.cpython-312.pyc,sha256=PCjpCLydGXaRsQy6cikhgsEs8WlComfOoYPiLFqfVMA,2515
715
715
  plexflow/utils/video/audio.py,sha256=Pd8OuQHX2QN-lc5iYkB0Vo1OEHmTcvDYH-uKud1f1q4,5262
716
716
  plexflow/utils/video/subtitle.py,sha256=qPvvBjlPj0fynJJvGJgGeKt9ey26R-cF6EoLaYt9iXU,1333
717
- plexflow-0.0.130.dist-info/METADATA,sha256=R2luxozWPl6n-arPMm9EfDh0ut2H2AhOauMmJA1fSdg,2971
718
- plexflow-0.0.130.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
719
- plexflow-0.0.130.dist-info/entry_points.txt,sha256=9RJC3ikOQORHNOn573EdwJOBUnFU_4EGHbtNUM5pjjY,1557
720
- plexflow-0.0.130.dist-info/RECORD,,
717
+ plexflow-0.0.132.dist-info/METADATA,sha256=tMNMebSsdsldEkn03tNHttSwAt8ewZ-c4wXHB_At2Ik,2971
718
+ plexflow-0.0.132.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
719
+ plexflow-0.0.132.dist-info/entry_points.txt,sha256=9RJC3ikOQORHNOn573EdwJOBUnFU_4EGHbtNUM5pjjY,1557
720
+ plexflow-0.0.132.dist-info/RECORD,,