ytdl-sub/ytdl_subscribe/entries/youtube.py
2022-03-30 07:56:19 +00:00

11 lines
299 B
Python

from ytdl_subscribe.entries.entry import Entry
class YoutubeVideo(Entry):
@property
def title(self) -> str:
# Try to get the track, fall back on title
if self.kwargs_contains('track'):
return self.kwargs('track')
return super(YoutubeVideo, self).title