diff --git a/src/you_get/common.py b/src/you_get/common.py index 5822f2d4..d80f39c5 100644 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -679,7 +679,8 @@ def download_rtmp_url(url, playpath, title, ext, total_size=0, output_dir='.', r return if player: - launch_player(player, url) + from .processor.rtmpdump import play_rtmpdump_stream + play_rtmpdump_stream(player, url, playpath) return from .processor.rtmpdump import has_rtmpdump_installed, download_rtmpdump_stream diff --git a/src/you_get/processor/rtmpdump.py b/src/you_get/processor/rtmpdump.py index c343bb85..6f291979 100644 --- a/src/you_get/processor/rtmpdump.py +++ b/src/you_get/processor/rtmpdump.py @@ -29,3 +29,7 @@ def download_rtmpdump_stream(url, playpath, title, ext, output_dir='.'): subprocess.call(params) return + +def play_rtmpdump_stream(player, url, playpath): + os.system("rtmpdump -r '%s' -y '%s' -o - | %s -" % (url, playpath, player)) + return