def test_unicode_title_2444_py2(self): self._test_args( [ "streamlink", "-p", "mpv", "-t", u"★".encode( get_filesystem_encoding()), "http://test.se", "test" ], "mpv --force-media-title=" + u"★".encode(get_filesystem_encoding()) + " -", )
def test_open_player_with_unicode_author_vlc_py2(self): self._test_args([ "streamlink", "-p", "c:\\Program Files\\VideoLAN\\vlc.exe", "--title", "{author}", "http://test.se", "test" ], "c:\\Program Files\\VideoLAN\\vlc.exe --input-title-format \"" + u"Tѥst Āuƭhǿr".encode(get_filesystem_encoding()) + "\" -")
def test_open_player_with_unicode_author_pot_py2(self): self._test_args( ["streamlink", "-p", "\"c:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe\"", "--title", "{author}", "http://test.se/stream", "hls", "--player-passthrough", "hls"], "\"c:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe\" \"http://test.se/playlist.m3u8\\" + u"Tѥst Āuƭhǿr".encode(get_filesystem_encoding()) + "\"", passthrough=True )
def test_output_vlc_unicode_title_windows_py2(popen): po = PlayerOutput("vlc.exe", title=UNICODE_TITLE) popen().poll.side_effect = lambda: None po.open() popen.assert_called_with("vlc.exe --input-title-format \"" + UNICODE_TITLE.encode(get_filesystem_encoding()) + "\" -", bufsize=ANY, stderr=ANY, stdout=ANY, stdin=ANY)
def test_open_player_with_unicode_author_vlc_py2(self): self._test_args( [ "streamlink", "-p", "c:\\Program Files\\VideoLAN\\vlc.exe", "--title", "{title} - {author} - {category}", "http://test.se", "test", ], 'c:\\Program Files\\VideoLAN\\vlc.exe --input-title-format "Test Title - ' + u'Tѥst Āuƭhǿr - No Category"'.encode(get_filesystem_encoding()) + " -", )