Leverage youtube-dl standard media plugin instead of the mpv internal one

This commit is contained in:
Fabio Manganiello 2019-02-19 13:40:18 +01:00
parent 185aff6be3
commit b5315032c3
1 changed files with 2 additions and 3 deletions

View File

@ -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)