plexflow 0.0.100__py3-none-any.whl → 0.0.102__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,5 +1,5 @@
1
1
  from plexflow.core.context.partial_context import PartialContext
2
- from typing import List
2
+ from typing import List, Tuple
3
3
  from qbittorrentapi.torrents import TorrentDictionary
4
4
 
5
5
  class MovieAssets(PartialContext):
@@ -15,8 +15,21 @@ class MovieAssets(PartialContext):
15
15
  def subtitle_paths(self) -> List[str]:
16
16
  return self.get("assets/subtitle/path")
17
17
 
18
+ def embedded_subtitles(self) -> List[Tuple[int,str]]:
19
+ return self.get("assets/embedded_subtitles")
20
+
21
+ def languaged_subtitle_paths(self) -> List[Tuple[str, str]]:
22
+ return self.get("assets/languaged_subtitle/path")
23
+
18
24
  def update_movie_path(self, path: str):
19
25
  self.set("assets/movie/path", path)
20
26
 
21
27
  def update_subtitle_paths(self, paths: List[str]):
22
28
  self.set("assets/subtitle/path", paths)
29
+
30
+ def update_embedded_subtitles(self, subtitles: List[Tuple[int, str]]):
31
+ self.set("assets/embedded_subtitles", subtitles)
32
+
33
+ def update_languaged_subtitle_paths(self, paths: List[Tuple[str,str]]):
34
+ self.set("assets/languaged_subtitle/path", paths)
35
+
@@ -45,7 +45,7 @@ def search_files(directory: str, extensions: Tuple[str, ...], order_by_size: boo
45
45
  if not extensions or filename.endswith(extensions):
46
46
  filepath = os.path.join(dirpath, filename)
47
47
  files.append((os.path.getsize(filepath), filepath))
48
- files.sort() # Files are now sorted by size
48
+ files.sort(reverse=True) # Files are now sorted by size in decreasing order
49
49
  for _, filepath in files:
50
50
  yield filepath
51
51
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: plexflow
3
- Version: 0.0.100
3
+ Version: 0.0.102
4
4
  Summary: A short description of the package.
5
5
  License: MIT
6
6
  Keywords: keyword1,keyword2,keyword3
@@ -37,6 +37,7 @@ Requires-Dist: json-repair (>=0.19.1,<0.20.0)
37
37
  Requires-Dist: kafka (>=1.3.5,<2.0.0)
38
38
  Requires-Dist: langchain-groq (>=0.1.9,<0.2.0)
39
39
  Requires-Dist: langcodes (>=3.4.0,<4.0.0)
40
+ Requires-Dist: langdetect (>=1.0.9,<2.0.0)
40
41
  Requires-Dist: lxml (>=5.1.0,<6.0.0)
41
42
  Requires-Dist: mistralai (>=1.2.5,<2.0.0)
42
43
  Requires-Dist: numpy (==1.26.4)
@@ -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=GcSOl2hkziI3zFPOG1LHTgE3hKLWjD4DFHEm5DqaYQ4,713
33
+ plexflow/core/context/partials/movie_assets.py,sha256=ZUgNpPDBDw_vjg3DcBP9OI2_zzbOh275GHkTBSuHbOc,1225
34
34
  plexflow/core/context/partials/reports.py,sha256=0W58RwK3VSsVHbF0rhvMNNlZZr01eutwermyvdeEZIs,810
35
35
  plexflow/core/context/partials/subtitles.py,sha256=Eax0rdGeTqEHkt9KNiyv097X3I1Drt9xb19VDalyA4Q,542
36
36
  plexflow/core/context/partials/tgx_batch.py,sha256=TduB09oBOQ8CtmPYsHIeNe7AI-ypKw21zQAX-7qktEs,859
@@ -590,7 +590,7 @@ plexflow/utils/filesystem/__pycache__/__init__.cpython-311.pyc,sha256=Dl4uk7MjHl
590
590
  plexflow/utils/filesystem/__pycache__/__init__.cpython-312.pyc,sha256=MrZFTRvNedQ4IdiZLoFPvoojg5GQMe8BM8LHBzgng80,163
591
591
  plexflow/utils/filesystem/__pycache__/search.cpython-311.pyc,sha256=Bh4bSta5zNnpaGePhb06Ke67aQ3_BZvYKtoeI6FImis,7794
592
592
  plexflow/utils/filesystem/__pycache__/search.cpython-312.pyc,sha256=nicgcb2cU9L-hyVLJiiDxZTBxP1-xVTZDl8SvuGuTzU,7101
593
- plexflow/utils/filesystem/search.py,sha256=ed2ixbx5r2z_xtk19--Dfi5KK9g3HcsaAk0sqszeTSs,6371
593
+ plexflow/utils/filesystem/search.py,sha256=E2Bv4sAjdNMrxHwn-x6QlHmRzimtq6IUzgzHlYjfTcM,6403
594
594
  plexflow/utils/gmail/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
595
595
  plexflow/utils/gmail/__pycache__/mails.cpython-311.pyc,sha256=FAYfZzjLVqpPMjrEYcrOIsohtWrZYYXOZSUHod3r8Qg,7239
596
596
  plexflow/utils/gmail/mails.py,sha256=hQIXiYR5LYeoiSH_lhbVM9criDBnTeCNmpZ5tvuUnsA,4562
@@ -683,7 +683,7 @@ plexflow/utils/video/__pycache__/audio.cpython-312.pyc,sha256=vXBnJwWgTDFdixMBs-
683
683
  plexflow/utils/video/__pycache__/subtitle.cpython-312.pyc,sha256=PCjpCLydGXaRsQy6cikhgsEs8WlComfOoYPiLFqfVMA,2515
684
684
  plexflow/utils/video/audio.py,sha256=tJ_lNwcjVuBQYD5cYOlXpr__eh8-hnReIgNRgIYOpqo,3380
685
685
  plexflow/utils/video/subtitle.py,sha256=LOGONGxs_RzmqtGP-DBKreOzS1eUFEKo75Q6AfnavW0,1290
686
- plexflow-0.0.100.dist-info/METADATA,sha256=nL5AQBMRLPkFy_HV4ZX8Nfhczs1mhDJi7uNVFxOskD8,3008
687
- plexflow-0.0.100.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
688
- plexflow-0.0.100.dist-info/entry_points.txt,sha256=uZc6ohXod3uudTgfeTqnkXBS4Cb7eajdjeqZc3P0PX4,1456
689
- plexflow-0.0.100.dist-info/RECORD,,
686
+ plexflow-0.0.102.dist-info/METADATA,sha256=3cRu8BkdU5mJor87KmtOfWnQK1HRuUjYQmnO20Ke4M4,3051
687
+ plexflow-0.0.102.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
688
+ plexflow-0.0.102.dist-info/entry_points.txt,sha256=uZc6ohXod3uudTgfeTqnkXBS4Cb7eajdjeqZc3P0PX4,1456
689
+ plexflow-0.0.102.dist-info/RECORD,,