Enhance metadata handling and optimize torrent processing

Added `parsed_data` support for more robust torrent metadata extraction and improved season/episode assignment logic. Refined IMDB integration to handle null ratings and streamline title-year searches. Database index and query filters updated for better flexibility and accuracy.
This commit is contained in:
mhdzumair
2024-12-22 00:13:31 +05:30
parent 4edd1dc898
commit 10a6f2e051
8 changed files with 52 additions and 30 deletions
@@ -39,7 +39,7 @@ class TorrentDownloadAndParsePipeline:
return item
torrent_metadata = torrent.extract_torrent_metadata(
response.body, item.get("is_parse_ptt", True)
response.body, item.get("parsed_data")
)
if settings.adult_content_filter_in_torrent_title and torrent_metadata.get(
+1 -1
View File
@@ -85,7 +85,7 @@ class SportVideoSpider(scrapy.Spider):
"poster": poster,
"background": poster,
"webpage_url": torrent_page_link,
"is_parse_ptt": False,
"parsed_data": {"title": title.strip()},
"source": "sport-video.org.ua",
"is_add_title_to_poster": True,
"catalog": category,