plexflow 0.0.81__py3-none-any.whl → 0.0.83__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.
- plexflow/core/torrents/results/torrent.py +12 -2
- plexflow/utils/torrent/analyze.py +9 -1
- {plexflow-0.0.81.dist-info → plexflow-0.0.83.dist-info}/METADATA +1 -1
- {plexflow-0.0.81.dist-info → plexflow-0.0.83.dist-info}/RECORD +6 -6
- {plexflow-0.0.81.dist-info → plexflow-0.0.83.dist-info}/WHEEL +0 -0
- {plexflow-0.0.81.dist-info → plexflow-0.0.83.dist-info}/entry_points.txt +0 -0
@@ -9,6 +9,8 @@ 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
14
|
|
13
15
|
@property
|
14
16
|
@abstractmethod
|
@@ -152,11 +154,19 @@ class Torrent(ABC):
|
|
152
154
|
|
153
155
|
@property
|
154
156
|
def has_native_dutch_subtitles(self):
|
155
|
-
return
|
157
|
+
return len(self._native_dutch_subtitles) > 0
|
156
158
|
|
157
159
|
@property
|
158
160
|
def has_native_english_subtitles(self):
|
159
|
-
return
|
161
|
+
return len(self._native_english_subtitles) > 0
|
162
|
+
|
163
|
+
def add_native_dutch_subtitle(self, name: str):
|
164
|
+
if len(name.strip()) > 0:
|
165
|
+
self._native_dutch_subtitles.append(name)
|
166
|
+
|
167
|
+
def add_native_english_subtitle(self, name: str):
|
168
|
+
if len(name.strip()) > 0:
|
169
|
+
self._native_english_subtitles.append(name)
|
160
170
|
|
161
171
|
@property
|
162
172
|
def is_bad_quality(self):
|
@@ -11,7 +11,7 @@ class TorrentReport:
|
|
11
11
|
self._extracted_imdb_code = kwargs.get("extracted_imdb_code")
|
12
12
|
self.hardcoded = kwargs.get("hardcoded")
|
13
13
|
self.korsub = kwargs.get("korsub")
|
14
|
-
self._subtitles = kwargs.get("subtitles")
|
14
|
+
self._subtitles = list(filter(lambda s: s, map(lambda s: s.lower().strip(), kwargs.get("subtitles", []))))
|
15
15
|
|
16
16
|
@property
|
17
17
|
def torrent(self) -> Torrent:
|
@@ -44,6 +44,14 @@ class TorrentReport:
|
|
44
44
|
def subtitles(self) -> list:
|
45
45
|
return self._subtitles
|
46
46
|
|
47
|
+
@property
|
48
|
+
def has_native_dutch_subtitles(self):
|
49
|
+
return 'dutch' in self.subtitles or 'dut' in self.subtitles
|
50
|
+
|
51
|
+
@property
|
52
|
+
def has_native_english_subtitles(self):
|
53
|
+
return 'english' in self.subtitles or 'eng' in self.subtitles
|
54
|
+
|
47
55
|
@property
|
48
56
|
def source(self) -> str:
|
49
57
|
return self.torrent.source
|
@@ -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=
|
521
|
+
plexflow/core/torrents/results/torrent.py,sha256=WJD_YcZP7PSIRLz-0EJF8FzW5_vzWu4EZiqQeygF8Dw,5348
|
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
|
@@ -646,7 +646,7 @@ plexflow/utils/torrent/__pycache__/analyze.cpython-312.pyc,sha256=bkmS6HF05DdGSu
|
|
646
646
|
plexflow/utils/torrent/__pycache__/files.cpython-312.pyc,sha256=s0TsS5xH_R1iit2PseyDlLspXwt37Ll_PN932l4fBQo,3930
|
647
647
|
plexflow/utils/torrent/__pycache__/hash.cpython-311.pyc,sha256=RDp8Sv5NLkUw0r6w6JD8rOH1ksN3NnTv4DzhZuZBouA,2284
|
648
648
|
plexflow/utils/torrent/__pycache__/hash.cpython-312.pyc,sha256=jlbSscMzvGQkHDBP-zB3JB8DMRenvzSRIiOKprFhYQQ,3631
|
649
|
-
plexflow/utils/torrent/analyze.py,sha256=
|
649
|
+
plexflow/utils/torrent/analyze.py,sha256=4f71sz1JZSgOAFdJY31dHomFNCUPlyxft7P3ffrWroU,4902
|
650
650
|
plexflow/utils/torrent/extract/__pycache__/common.cpython-312.pyc,sha256=WTgyNFyySpFEtklNMsrhdvngA_ap8AAY-5-QPHVtxfM,1862
|
651
651
|
plexflow/utils/torrent/extract/__pycache__/ext.cpython-312.pyc,sha256=qRVyjKJFb5P5wGETuI05oqUxUaKvNMzBpk8jB7sHk1E,272185
|
652
652
|
plexflow/utils/torrent/extract/__pycache__/extratorrent.cpython-312.pyc,sha256=a08Mno5zwRLr5VQTzF5OFskW5cHt5kKdhJbxQRqWzF4,3448
|
@@ -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.
|
679
|
-
plexflow-0.0.
|
680
|
-
plexflow-0.0.
|
681
|
-
plexflow-0.0.
|
678
|
+
plexflow-0.0.83.dist-info/METADATA,sha256=_kL4WxrsumU6J9QXHESxxxUdmh7CcH26o5UEyqhBir0,2954
|
679
|
+
plexflow-0.0.83.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
680
|
+
plexflow-0.0.83.dist-info/entry_points.txt,sha256=aEqDHlozu_zjWrl2sibtrqtQHMgU8kSJZrE782CP47g,1362
|
681
|
+
plexflow-0.0.83.dist-info/RECORD,,
|
File without changes
|
File without changes
|