From d082ed1d1c0f30f89449c932707154e5fb7f2532 Mon Sep 17 00:00:00 2001 From: cosven Date: Tue, 25 Jun 2024 11:07:51 +0800 Subject: [PATCH] support video_get_web_url --- fuo_ytmusic/provider.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fuo_ytmusic/provider.py b/fuo_ytmusic/provider.py index d359786..0b4886c 100644 --- a/fuo_ytmusic/provider.py +++ b/fuo_ytmusic/provider.py @@ -303,6 +303,9 @@ def video_get(self, identifier): return VideoModel(identifier=song.identifier, source=song.source, title=song.title, artists=song.artists, duration=song.duration, cover=song.pic_url) + def video_get_web_url(self, video) -> str: + return f'https://youtube.com/watch?v={video.identifier}' + def video_get_media(self, video, quality) -> Optional[Media]: return None