From b5315032c3c494495de3a66f59382918b2a1c014 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 19 Feb 2019 13:40:18 +0100 Subject: [PATCH] Leverage youtube-dl standard media plugin instead of the mpv internal one --- platypush/plugins/media/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/media/__init__.py b/platypush/plugins/media/__init__.py index 4acb62d84..c56eade6d 100644 --- a/platypush/plugins/media/__init__.py +++ b/platypush/plugins/media/__init__.py @@ -145,9 +145,8 @@ class MediaPlugin(Plugin): if resource.startswith('youtube:') \ or resource.startswith('https://www.youtube.com/watch?v='): - if self.__class__.__name__ == 'MediaChromecastPlugin' or \ - self.__class__.__name__ == 'MediaMpvPlugin': - # The Chromecast and mpv have already their way to handle YouTube + if self.__class__.__name__ == 'MediaChromecastPlugin': + # The Chromecast has already its native way to handle YouTube return resource resource = self._get_youtube_content(resource)