mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-25 18:25:35 +02:00
ruff: enable C4 lint
This commit is contained in:
@@ -2,7 +2,6 @@ import logging
|
|||||||
|
|
||||||
from media_manager.indexer.schemas import IndexerQueryResult
|
from media_manager.indexer.schemas import IndexerQueryResult
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
from xml.etree.ElementTree import Element
|
|
||||||
from email.utils import parsedate_to_datetime
|
from email.utils import parsedate_to_datetime
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
|
|
||||||
@@ -33,9 +32,7 @@ class TorznabMixin:
|
|||||||
item.find("enclosure").attrib["type"] != "application/x-bittorrent"
|
item.find("enclosure").attrib["type"] != "application/x-bittorrent"
|
||||||
)
|
)
|
||||||
|
|
||||||
attributes: list[Element] = [
|
attributes = list(item.findall("torznab:attr", xmlns))
|
||||||
x for x in item.findall("torznab:attr", xmlns)
|
|
||||||
]
|
|
||||||
for attribute in attributes:
|
for attribute in attributes:
|
||||||
if is_usenet:
|
if is_usenet:
|
||||||
if attribute.attrib["name"] == "usenetdate":
|
if attribute.attrib["name"] == "usenetdate":
|
||||||
|
|||||||
Reference in New Issue
Block a user