fix artist too
This commit is contained in:
parent
3673a07249
commit
a4c78b94b2
1 changed files with 2 additions and 8 deletions
|
|
@ -39,10 +39,7 @@ class YoutubeVideoVariables(EntryVariables):
|
||||||
pulled via yt-dlp. Use with caution.
|
pulled via yt-dlp. Use with caution.
|
||||||
"""
|
"""
|
||||||
# Try to get the track, fall back on title
|
# Try to get the track, fall back on title
|
||||||
if self.kwargs_contains("track"):
|
return self.kwargs_get("track", super().title)
|
||||||
return self.kwargs("track")
|
|
||||||
|
|
||||||
return super().title
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def track_title_sanitized(self) -> str:
|
def track_title_sanitized(self) -> str:
|
||||||
|
|
@ -64,10 +61,7 @@ class YoutubeVideoVariables(EntryVariables):
|
||||||
NOTE: Even if a video has music metadata, this variable does not always get pulled via
|
NOTE: Even if a video has music metadata, this variable does not always get pulled via
|
||||||
yt-dlp. Use with caution.
|
yt-dlp. Use with caution.
|
||||||
"""
|
"""
|
||||||
if self.kwargs_contains("artist"):
|
return self.kwargs_get("artist", self.kwargs("channel"))
|
||||||
return self.kwargs("artist")
|
|
||||||
|
|
||||||
return self.kwargs("channel")
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def artist_sanitized(self) -> str:
|
def artist_sanitized(self) -> str:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue