Skip to content

Commit

Permalink
support video_get_web_url
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven committed Jun 25, 2024
1 parent 4ddab45 commit d082ed1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fuo_ytmusic/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d082ed1

Please sign in to comment.