mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
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:
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user