update python version and capture individual exception for torrent element & bump patch

This commit is contained in:
mhdzumair
2023-10-17 00:10:08 +05:30
parent 65a6781f61
commit dad2732a88
4 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ {
"projectName": "mediafusion", "projectName": "mediafusion",
"lastCommit": "4e29d83" "lastCommit": "65a6781"
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"id": "mhdzumair.addons.mediafusion", "id": "mhdzumair.addons.mediafusion",
"version": "3.4.1", "version": "3.4.2",
"name": "Media Fusion", "name": "Media Fusion",
"contactEmail": "mhdzumair@gmail", "contactEmail": "mhdzumair@gmail",
"description": "Watch Tamil, Hindi, Malayalam, Kannada, English, and dubbed movies & series with the Media Fusion add-on. Source: https://github.com/mhdzumair/MediaFusion", "description": "Watch Tamil, Hindi, Malayalam, Kannada, English, and dubbed movies & series with the Media Fusion add-on. Source: https://github.com/mhdzumair/MediaFusion",
+1 -1
View File
@@ -1 +1 @@
python-3.11.5 python-3.11.6
+15 -8
View File
@@ -138,14 +138,21 @@ async def process_movie(
return return
for torrent_element in torrent_elements: for torrent_element in torrent_elements:
await download_and_save_torrent( try:
torrent_element, await download_and_save_torrent(
scraper=scraper, torrent_element,
page=page, scraper=scraper,
metadata=metadata.copy(), page=page,
media_type=media_type, metadata=metadata.copy(),
page_link=page_link, media_type=media_type,
) page_link=page_link,
)
except Exception as e:
logging.error(
f"Error processing torrent {page_link}: {e}",
exc_info=True,
stack_info=True,
)
return True return True
except Exception as e: except Exception as e: