mcp-server-youtube-info 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

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.
@@ -28,7 +28,7 @@ def extract_info(video_id: str) -> dict:
28
28
 
29
29
  @mcp.tool()
30
30
  def thumbnail(video_id: str) -> str:
31
- """YouTubeのサムネイル画像URLを取得します。
31
+ """YouTubeのサムネイルURLを取得します。
32
32
 
33
33
  Args:
34
34
  video_id (str): YouTube動画ID
@@ -38,7 +38,10 @@ def thumbnail(video_id: str) -> str:
38
38
  """
39
39
  try:
40
40
  info = extract_info(video_id)
41
- return info.get('thumbnail')
41
+ thumbnail_url = info.get('thumbnail')
42
+ if not thumbnail_url:
43
+ raise Exception("サムネイルURLが見つかりません")
44
+ return thumbnail_url
42
45
  except Exception as e:
43
46
  raise Exception(f"サムネイルの取得に失敗しました: {str(e)}")
44
47
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-server-youtube-info
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A YouTube information retrieval server implementation for Model Context Protocol (MCP)
5
5
  Project-URL: Homepage, https://github.com/yareyaredesuyo/mcp-servers
6
6
  Project-URL: Repository, https://github.com/yareyaredesuyo/mcp-servers.git
@@ -18,7 +18,6 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
18
  Requires-Python: >=3.10
19
19
  Requires-Dist: argparse>=1.4.0
20
20
  Requires-Dist: fastmcp>=2.5.2
21
- Requires-Dist: pytube>=15.0.0
22
21
  Requires-Dist: yt-dlp>=2025.5.22
23
22
  Description-Content-Type: text/markdown
24
23
 
@@ -0,0 +1,7 @@
1
+ mcp_server_youtube_info/__init__.py,sha256=KD9wJz_1DlOz4LWl_zjMosWuGt_45YImmAEY4rFAHcY,1638
2
+ mcp_server_youtube_info/__main__.py,sha256=uqSLNeSh8GpjfJjyKqL_tvsDIryo3G_SYCmTqtDnPhs,58
3
+ mcp_server_youtube_info/server.py,sha256=w7QU7hr_BO5uaiAXl4gd0ZQ-5kMOToc0HGrejyrdUTk,1655
4
+ mcp_server_youtube_info-0.1.1.dist-info/METADATA,sha256=ia1nvP44mF7vBDUt8tO3PFVtdkf3GdGWovRewsSol_I,3690
5
+ mcp_server_youtube_info-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
6
+ mcp_server_youtube_info-0.1.1.dist-info/entry_points.txt,sha256=CVOJ38APpxqkwNxKV4Bb7kHLC_Zbg8ZjnAevxUONEkk,73
7
+ mcp_server_youtube_info-0.1.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- mcp_server_youtube_info/__init__.py,sha256=KD9wJz_1DlOz4LWl_zjMosWuGt_45YImmAEY4rFAHcY,1638
2
- mcp_server_youtube_info/__main__.py,sha256=uqSLNeSh8GpjfJjyKqL_tvsDIryo3G_SYCmTqtDnPhs,58
3
- mcp_server_youtube_info/server.py,sha256=gwMJf8AWHttuY6x8f-iwUDGjAOdkBDUFtbpz-RNouEg,1519
4
- mcp_server_youtube_info-0.1.0.dist-info/METADATA,sha256=uYkGsfmHpJHE58PGm_NBPrxgtmcoBIxjXoTOnixnaQo,3720
5
- mcp_server_youtube_info-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
6
- mcp_server_youtube_info-0.1.0.dist-info/entry_points.txt,sha256=CVOJ38APpxqkwNxKV4Bb7kHLC_Zbg8ZjnAevxUONEkk,73
7
- mcp_server_youtube_info-0.1.0.dist-info/RECORD,,