From c79868de3ef2ea75b66672ecdd8d83d1d9ef3f3f Mon Sep 17 00:00:00 2001 From: Jimmy Kiselak Date: Fri, 28 Aug 2015 11:47:21 -0400 Subject: [PATCH] check for specific vlc paths on windows --- lbrynet/lbryfile/client/LBRYFileDownloader.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lbrynet/lbryfile/client/LBRYFileDownloader.py b/lbrynet/lbryfile/client/LBRYFileDownloader.py index 9f066f54a..e8bbe1921 100644 --- a/lbrynet/lbryfile/client/LBRYFileDownloader.py +++ b/lbrynet/lbryfile/client/LBRYFileDownloader.py @@ -262,7 +262,15 @@ class LBRYFileOpener(LBRYFileDownloader): class LBRYFileOpenerFactory(LBRYFileDownloaderFactory): def can_download(self, sd_validator): - return bool(which('vlc')) + if which('vlc'): + return True + elif os.name == "nt": + paths = [r'C:\Program Files\VideoLAN\VLC\vlc.exe', + r'C:\Program Files (x86)\VideoLAN\VLC\vlc.exe'] + for p in paths: + if os.path.exists(p): + return True + return False def _make_downloader(self, stream_hash, payment_rate_manager, stream_info, upload_allowed): return LBRYFileOpener(stream_hash, self.peer_finder, self.rate_limiter, self.blob_manager,