media-downloader 2.0.0__tar.gz → 2.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of media-downloader might be problematic. Click here for more details.
- {media_downloader-2.0.0/media_downloader.egg-info → media_downloader-2.1.1}/PKG-INFO +2 -2
- {media_downloader-2.0.0 → media_downloader-2.1.1}/README.md +1 -1
- {media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader/media_downloader_mcp.py +18 -5
- {media_downloader-2.0.0 → media_downloader-2.1.1/media_downloader.egg-info}/PKG-INFO +2 -2
- {media_downloader-2.0.0 → media_downloader-2.1.1}/pyproject.toml +1 -1
- {media_downloader-2.0.0 → media_downloader-2.1.1}/LICENSE +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/MANIFEST.in +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader/__init__.py +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader/__main__.py +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader/media_downloader.py +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader.egg-info/SOURCES.txt +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader.egg-info/dependency_links.txt +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader.egg-info/entry_points.txt +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader.egg-info/requires.txt +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader.egg-info/top_level.txt +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/requirements.txt +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/setup.cfg +0 -0
- {media_downloader-2.0.0 → media_downloader-2.1.1}/tests/test_mcp.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: media-downloader
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Summary: Download audio/videos from the internet!
|
|
5
5
|
Author-email: Audel Rouhi <knucklessg1@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -38,7 +38,7 @@ Dynamic: license-file
|
|
|
38
38
|

|
|
39
39
|

|
|
40
40
|
|
|
41
|
-
*Version: 2.
|
|
41
|
+
*Version: 2.1.1*
|
|
42
42
|
|
|
43
43
|
Download videos and audio from the internet!
|
|
44
44
|
|
|
@@ -55,7 +55,10 @@ async def download_media(
|
|
|
55
55
|
description="MCP context for progress reporting.", default=None
|
|
56
56
|
),
|
|
57
57
|
) -> str:
|
|
58
|
-
"""
|
|
58
|
+
"""
|
|
59
|
+
Downloads media from a given URL to the specified directory. Download as a video or audio file
|
|
60
|
+
Returns the location of the Downloaded file
|
|
61
|
+
"""
|
|
59
62
|
logger = logging.getLogger("MediaDownloader")
|
|
60
63
|
logger.debug(
|
|
61
64
|
f"Starting download for URL: {video_url}, directory: {download_directory}, audio_only: {audio_only}"
|
|
@@ -105,18 +108,26 @@ async def download_media(
|
|
|
105
108
|
|
|
106
109
|
def media_downloader_mcp():
|
|
107
110
|
parser = argparse.ArgumentParser(description="Run media downloader MCP server.")
|
|
111
|
+
|
|
108
112
|
parser.add_argument(
|
|
109
113
|
"-t",
|
|
110
114
|
"--transport",
|
|
111
115
|
default="stdio",
|
|
112
|
-
choices=["stdio", "http"],
|
|
113
|
-
help="Transport method
|
|
116
|
+
choices=["stdio", "http", "sse"],
|
|
117
|
+
help="Transport method: 'stdio', 'http', or 'sse' [legacy] (default: stdio)",
|
|
114
118
|
)
|
|
115
119
|
parser.add_argument(
|
|
116
|
-
"-s",
|
|
120
|
+
"-s",
|
|
121
|
+
"--host",
|
|
122
|
+
default="0.0.0.0",
|
|
123
|
+
help="Host address for HTTP transport (default: 0.0.0.0)",
|
|
117
124
|
)
|
|
118
125
|
parser.add_argument(
|
|
119
|
-
"-p",
|
|
126
|
+
"-p",
|
|
127
|
+
"--port",
|
|
128
|
+
type=int,
|
|
129
|
+
default=8000,
|
|
130
|
+
help="Port number for HTTP transport (default: 8000)",
|
|
120
131
|
)
|
|
121
132
|
|
|
122
133
|
args = parser.parse_args()
|
|
@@ -129,6 +140,8 @@ def media_downloader_mcp():
|
|
|
129
140
|
mcp.run(transport="stdio")
|
|
130
141
|
elif args.transport == "http":
|
|
131
142
|
mcp.run(transport="http", host=args.host, port=args.port)
|
|
143
|
+
elif args.transport == "sse":
|
|
144
|
+
mcp.run(transport="sse", host=args.host, port=args.port)
|
|
132
145
|
else:
|
|
133
146
|
logger = logging.getLogger("MediaDownloader")
|
|
134
147
|
logger.error("Transport not supported")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: media-downloader
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Summary: Download audio/videos from the internet!
|
|
5
5
|
Author-email: Audel Rouhi <knucklessg1@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -38,7 +38,7 @@ Dynamic: license-file
|
|
|
38
38
|

|
|
39
39
|

|
|
40
40
|
|
|
41
|
-
*Version: 2.
|
|
41
|
+
*Version: 2.1.1*
|
|
42
42
|
|
|
43
43
|
Download videos and audio from the internet!
|
|
44
44
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "media-downloader"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.1.1"
|
|
8
8
|
description = "Download audio/videos from the internet!\nHost an MCP Server for Agentic AI to download videos!"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "Audel Rouhi", email = "knucklessg1@gmail.com" }]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{media_downloader-2.0.0 → media_downloader-2.1.1}/media_downloader.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|