diff options
Diffstat (limited to 'youtube_dlc/extractor/ruutu.py')
-rw-r--r-- | youtube_dlc/extractor/ruutu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/extractor/ruutu.py b/youtube_dlc/extractor/ruutu.py index 5db83a4e1..f9f30e3dd 100644 --- a/youtube_dlc/extractor/ruutu.py +++ b/youtube_dlc/extractor/ruutu.py @@ -200,8 +200,8 @@ class RuutuIE(InfoExtractor): return node.get('value') if not formats: - drm = xpath_text(video_xml, './Clip/DRM', default=None) - if not self._downloader.params.get('allow_unplayable_formats') and drm: + if (not self._downloader.params.get('allow_unplayable_formats') + and xpath_text(video_xml, './Clip/DRM', default=None)): raise ExtractorError('This video is DRM protected.', expected=True) ns_st_cds = pv('ns_st_cds') if ns_st_cds != 'free': |