plexflow 0.0.110__py3-none-any.whl → 0.0.111__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.
@@ -1,6 +1,8 @@
1
1
  from plexflow.core.context.partial_context import PartialContext
2
2
  from typing import List, Tuple
3
3
  from qbittorrentapi.torrents import TorrentDictionary
4
+ from plexflow.core.subtitles.utils.plex_internal_subtitle import PlexInternalSubtitle
5
+ from plexflow.core.subtitles.utils.plex_external_subtitle import PlexExternalSubtitle
4
6
 
5
7
  class MovieAssets(PartialContext):
6
8
  def __init__(self, **kwargs) -> None:
@@ -12,6 +14,12 @@ class MovieAssets(PartialContext):
12
14
  def movie_path(self) -> str:
13
15
  return self.get("assets/movie/path")
14
16
 
17
+ def internal_subtitles(self) -> List[PlexInternalSubtitle]:
18
+ return self.get("assets/subtitles/internal")
19
+
20
+ def external_subtitles(self) -> List[PlexExternalSubtitle]:
21
+ return self.get("assets/subtitles/external")
22
+
15
23
  def subtitle_paths(self) -> List[str]:
16
24
  return self.get("assets/subtitle/path")
17
25
 
@@ -27,6 +35,12 @@ class MovieAssets(PartialContext):
27
35
  def update_subtitle_paths(self, paths: List[str]):
28
36
  self.set("assets/subtitle/path", paths)
29
37
 
38
+ def update_internal_subtitles(self, subtitles: List[PlexInternalSubtitle]):
39
+ self.set("assets/subtitles/internal", subtitles)
40
+
41
+ def update_external_subtitles(self, subtitles: List[PlexExternalSubtitle]):
42
+ self.set("assets/subtitles/external", subtitles)
43
+
30
44
  def update_embedded_subtitles(self, subtitles: List[Tuple[int, str]]):
31
45
  self.set("assets/embedded_subtitles", subtitles)
32
46
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: plexflow
3
- Version: 0.0.110
3
+ Version: 0.0.111
4
4
  Summary: A short description of the package.
5
5
  License: MIT
6
6
  Keywords: keyword1,keyword2,keyword3
@@ -30,7 +30,7 @@ plexflow/core/context/partials/completed_downloads.py,sha256=BM5apreKS9zeuFOT4Eq
30
30
  plexflow/core/context/partials/context.py,sha256=pFzpAFxwCJdqPuhXJqhs6j4Xyvf0GQtzPRMmL4fcjEA,314
31
31
  plexflow/core/context/partials/ids.py,sha256=QoQ6FbX1OIWrE-iuz-G6kSzBlTt1_I1jyfl2JgKge2o,913
32
32
  plexflow/core/context/partials/movie.py,sha256=VXQ2SspFgGSRgDefg4VlHrH2fns3KRuKlU72ps6527o,3861
33
- plexflow/core/context/partials/movie_assets.py,sha256=ZUgNpPDBDw_vjg3DcBP9OI2_zzbOh275GHkTBSuHbOc,1225
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
35
  plexflow/core/context/partials/subtitles.py,sha256=0NhKGkP-sArQswuSyA7puRSjjoobF-3Ah7Pd39QkgTU,535
36
36
  plexflow/core/context/partials/tgx_batch.py,sha256=TduB09oBOQ8CtmPYsHIeNe7AI-ypKw21zQAX-7qktEs,859
@@ -694,7 +694,7 @@ plexflow/utils/video/__pycache__/audio.cpython-312.pyc,sha256=vXBnJwWgTDFdixMBs-
694
694
  plexflow/utils/video/__pycache__/subtitle.cpython-312.pyc,sha256=PCjpCLydGXaRsQy6cikhgsEs8WlComfOoYPiLFqfVMA,2515
695
695
  plexflow/utils/video/audio.py,sha256=tJ_lNwcjVuBQYD5cYOlXpr__eh8-hnReIgNRgIYOpqo,3380
696
696
  plexflow/utils/video/subtitle.py,sha256=qPvvBjlPj0fynJJvGJgGeKt9ey26R-cF6EoLaYt9iXU,1333
697
- plexflow-0.0.110.dist-info/METADATA,sha256=3L0x0raREmHUBONysCFZjiEEFrR_IY1CrxEVah8F6Yg,3051
698
- plexflow-0.0.110.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
699
- plexflow-0.0.110.dist-info/entry_points.txt,sha256=SSLjrLcZa2880346VUIsCG9vcLsquf-RTX9pkdNaTO8,1498
700
- plexflow-0.0.110.dist-info/RECORD,,
697
+ plexflow-0.0.111.dist-info/METADATA,sha256=xdqWRniW9c6cTYuuE-0CQBNfJd2XERt8aEQuPJab8os,3051
698
+ plexflow-0.0.111.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
699
+ plexflow-0.0.111.dist-info/entry_points.txt,sha256=SSLjrLcZa2880346VUIsCG9vcLsquf-RTX9pkdNaTO8,1498
700
+ plexflow-0.0.111.dist-info/RECORD,,