plexflow 0.0.84__py3-none-any.whl → 0.0.86__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.
@@ -21,3 +21,13 @@ class Torrents(PartialContext):
21
21
  return
22
22
  source = next(iter(torrents)).source
23
23
  self.set(f"torrents/{source}", torrents)
24
+
25
+ def update_subtitled(self, torrents: List[Torrent]):
26
+ if len(torrents) == 0:
27
+ return
28
+ source = next(iter(torrents)).source
29
+ self.set(f"subtitled/torrents/{source}", torrents)
30
+
31
+ def from_subtitled_source(self, source: str) -> List[Torrent]:
32
+ return self.get(f"subtitled/torrents/{source}")
33
+
@@ -9,8 +9,9 @@ class Torrent(ABC):
9
9
  This is an abstract base class that represents a Torrent.
10
10
  Any class that inherits from this must implement all the properties.
11
11
  """
12
- _native_dutch_subtitles = []
13
- _native_english_subtitles = []
12
+ def __init__(self):
13
+ self._native_dutch_subtitles = []
14
+ self._native_english_subtitles = []
14
15
 
15
16
  @property
16
17
  @abstractmethod
@@ -161,12 +162,10 @@ class Torrent(ABC):
161
162
  return len(self._native_english_subtitles) > 0
162
163
 
163
164
  def add_native_dutch_subtitle(self, name: str):
164
- if len(name.strip()) > 0:
165
- self._native_dutch_subtitles.append(name)
165
+ self._native_dutch_subtitles.append(name)
166
166
 
167
167
  def add_native_english_subtitle(self, name: str):
168
- if len(name.strip()) > 0:
169
- self._native_english_subtitles.append(name)
168
+ self._native_english_subtitles.append(name)
170
169
 
171
170
  @property
172
171
  def is_bad_quality(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: plexflow
3
- Version: 0.0.84
3
+ Version: 0.0.86
4
4
  Summary: A short description of the package.
5
5
  License: MIT
6
6
  Keywords: keyword1,keyword2,keyword3
@@ -33,7 +33,7 @@ plexflow/core/context/partials/reports.py,sha256=0W58RwK3VSsVHbF0rhvMNNlZZr01eut
33
33
  plexflow/core/context/partials/subtitles.py,sha256=Eax0rdGeTqEHkt9KNiyv097X3I1Drt9xb19VDalyA4Q,542
34
34
  plexflow/core/context/partials/tgx_batch.py,sha256=TduB09oBOQ8CtmPYsHIeNe7AI-ypKw21zQAX-7qktEs,859
35
35
  plexflow/core/context/partials/tgx_context.py,sha256=_FuhOvKsFqi_uynHxgC9_QIR2CfYmz-uJCRFtGFJmXI,1641
36
- plexflow/core/context/partials/torrents.py,sha256=U6tjdsH0qIPwe9b7XZ5ChNIos68WEKn9VgCQe0A8MQ0,772
36
+ plexflow/core/context/partials/torrents.py,sha256=GtO4rlb7V2N-4QEWt-ODssEsdUlQ2o0lTo_BFI5i3lw,1109
37
37
  plexflow/core/context/partials/universal_torrents.py,sha256=yohdSEhspSdvmrI6NeBB2Racb7yS2kz7qyFat6gNw6k,563
38
38
  plexflow/core/context/partials/watchlist.py,sha256=XL4H3AXHhyuhuImm3OBfrOmlc9rMvVhBJJGumQijM-c,1108
39
39
  plexflow/core/context/plexflow_context.py,sha256=_Le01owaf_0hW6BwMCvMKrKX0IRHyWGWGYTzxCWmdSE,904
@@ -518,7 +518,7 @@ plexflow/core/torrents/results/__pycache__/torrent.cpython-311.pyc,sha256=Sxfylb
518
518
  plexflow/core/torrents/results/__pycache__/torrent.cpython-312.pyc,sha256=gVBo7bTDY_6m9MmdgYy6fcnnoVQkXZiRI2iDANyG5RA,7776
519
519
  plexflow/core/torrents/results/__pycache__/universal.cpython-312.pyc,sha256=fWAmvqL76rp3K0_ydGNEHFJe-05duOvvo76ZpYjZQYE,14162
520
520
  plexflow/core/torrents/results/__pycache__/utils.cpython-312.pyc,sha256=vqEt3jQLzZ-K_E9WV0kKz4K79AScvcg2xyOUTlAcu70,1136
521
- plexflow/core/torrents/results/torrent.py,sha256=WJD_YcZP7PSIRLz-0EJF8FzW5_vzWu4EZiqQeygF8Dw,5348
521
+ plexflow/core/torrents/results/torrent.py,sha256=Fvb_JWX8dCfYOWFbUG4VFM46vlUgCCC2Sdok-7LfZfk,5314
522
522
  plexflow/core/torrents/results/universal.py,sha256=ycprOMT1Px8IthmB82YhmnxeNt7P3GAcrOlEkpKoaQk,7706
523
523
  plexflow/core/torrents/results/utils.py,sha256=abiiO_QQYDpA5aMyO8WFPxnGu5sL5xfACezE5bwrnJU,691
524
524
  plexflow/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -675,7 +675,7 @@ plexflow/utils/video/__pycache__/audio.cpython-312.pyc,sha256=vXBnJwWgTDFdixMBs-
675
675
  plexflow/utils/video/__pycache__/subtitle.cpython-312.pyc,sha256=PCjpCLydGXaRsQy6cikhgsEs8WlComfOoYPiLFqfVMA,2515
676
676
  plexflow/utils/video/audio.py,sha256=tJ_lNwcjVuBQYD5cYOlXpr__eh8-hnReIgNRgIYOpqo,3380
677
677
  plexflow/utils/video/subtitle.py,sha256=LOGONGxs_RzmqtGP-DBKreOzS1eUFEKo75Q6AfnavW0,1290
678
- plexflow-0.0.84.dist-info/METADATA,sha256=yuQCxZ1FFKQgVD95w6kYL88H1P_7GDBdKOFkF3dfIug,2954
679
- plexflow-0.0.84.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
680
- plexflow-0.0.84.dist-info/entry_points.txt,sha256=aEqDHlozu_zjWrl2sibtrqtQHMgU8kSJZrE782CP47g,1362
681
- plexflow-0.0.84.dist-info/RECORD,,
678
+ plexflow-0.0.86.dist-info/METADATA,sha256=WRMDXiGNY9F5FqAra_o4dAjl60H6yPcS39FKLW5GzVk,2954
679
+ plexflow-0.0.86.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
680
+ plexflow-0.0.86.dist-info/entry_points.txt,sha256=aEqDHlozu_zjWrl2sibtrqtQHMgU8kSJZrE782CP47g,1362
681
+ plexflow-0.0.86.dist-info/RECORD,,