Skip to content

Commit

Permalink
Remove setting MPV file title as this can error
Browse files Browse the repository at this point in the history
Tracking: #3
  • Loading branch information
Douile committed Sep 25, 2023
1 parent 7afd195 commit a5abbf9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions friends_queue/video_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ def append(self, item: VideoQueueItem):
# [1]: https://github.com/mpv-player/mpv/blob/8536aaac3c2c22b77a596d0645ac99be20c0186a/player/lua/ytdl_hook.lua#L545
if item.audio_url is not None:
args["audio_file"] = item.audio_url
if item.title is not None:
# Title is restricted to certain characters
args["force_media_title"] = item.title.replace("#", "")

self._player.loadfile(item.video_url or item.url, mode="append-play", **args)

# Append to self after as player might error
Expand Down

0 comments on commit a5abbf9

Please sign in to comment.