Cleanup some code and fix typos

:ci skip dl
This commit is contained in:
pukkandan
2021-02-12 20:32:49 +05:30
parent 1ea2412927
commit 068693675e
15 changed files with 50 additions and 31 deletions
+2 -2
View File
@@ -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':