forked from platypush/platypush
Leverage youtube-dl standard media plugin instead of the mpv internal one
This commit is contained in:
parent
185aff6be3
commit
b5315032c3
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue