Revert "fix 自定义订阅插件增加识别按钮"

This reverts commit 1b2f09b95f48d3bdd299bd775bbe8a9ce570a07b.
This commit is contained in:
thsrite 2023-09-13 09:21:56 +08:00
parent 0cb75d689c
commit 01a153902e

View File

@ -65,7 +65,6 @@ class RssSubscribe(_PluginBase):
_clear: bool = False _clear: bool = False
_clearflag: bool = False _clearflag: bool = False
_action: str = "subscribe" _action: str = "subscribe"
_recognization: str = "Y"
_save_path: str = "" _save_path: str = ""
def init_plugin(self, config: dict = None): def init_plugin(self, config: dict = None):
@ -90,7 +89,6 @@ class RssSubscribe(_PluginBase):
self._filter = config.get("filter") self._filter = config.get("filter")
self._clear = config.get("clear") self._clear = config.get("clear")
self._action = config.get("action") self._action = config.get("action")
self._recognization = config.get("recognization")
self._save_path = config.get("save_path") self._save_path = config.get("save_path")
if self._enabled or self._onlyonce: if self._enabled or self._onlyonce:
@ -221,7 +219,7 @@ class RssSubscribe(_PluginBase):
'component': 'VCol', 'component': 'VCol',
'props': { 'props': {
'cols': 12, 'cols': 12,
'md': 4 'md': 6
}, },
'content': [ 'content': [
{ {
@ -238,7 +236,7 @@ class RssSubscribe(_PluginBase):
'component': 'VCol', 'component': 'VCol',
'props': { 'props': {
'cols': 12, 'cols': 12,
'md': 4 'md': 6
}, },
'content': [ 'content': [
{ {
@ -253,26 +251,6 @@ class RssSubscribe(_PluginBase):
} }
} }
] ]
},
{
'component': 'VCol',
'props': {
'cols': 12,
'md': 4
},
'content': [
{
'component': 'VSelect',
'props': {
'model': 'recognization',
'label': '识别',
'items': [
{'title': '', 'value': 'Y'},
{'title': '', 'value': 'N'}
]
}
}
]
} }
] ]
}, },
@ -425,7 +403,6 @@ class RssSubscribe(_PluginBase):
"clear": False, "clear": False,
"filter": False, "filter": False,
"action": "subscribe", "action": "subscribe",
"recognization": "Y",
"save_path": "" "save_path": ""
} }
@ -548,9 +525,7 @@ class RssSubscribe(_PluginBase):
"include": self._include, "include": self._include,
"exclude": self._exclude, "exclude": self._exclude,
"proxy": self._proxy, "proxy": self._proxy,
"clear": self._clear, "clear": self._clear
"action": self._action,
"recognization": self._recognization,
}) })
def check(self): def check(self):
@ -630,7 +605,6 @@ class RssSubscribe(_PluginBase):
continue continue
else: else:
if self._action == "download": if self._action == "download":
if str(self._recognization) == "Y":
if mediainfo.type == MediaType.TV: if mediainfo.type == MediaType.TV:
if no_exists: if no_exists:
exist_info = no_exists.get(mediainfo.tmdb_id) exist_info = no_exists.get(mediainfo.tmdb_id)