]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[dplay] Try secure api for no tld (Closes #9282)
authorSergey M․ <dstftw@gmail.com>
Sat, 23 Apr 2016 09:59:30 +0000 (15:59 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 23 Apr 2016 09:59:30 +0000 (15:59 +0600)
youtube_dl/extractor/dplay.py

index 66bbfc6ca0b32ad37feaaa42d1480214cb8d89d2..ef68ef087824b4063a3f7cf372c19950e5866039 100644 (file)
@@ -99,7 +99,7 @@ class DPlayIE(InfoExtractor):
                     video_id, f4m_id=protocol, fatal=False))
 
         domain_tld = domain.split('.')[-1]
-        if domain_tld in ('se', 'dk'):
+        if domain_tld in ('se', 'dk', 'no'):
             for protocol in PROTOCOLS:
                 self._set_cookie(
                     'secure.dplay.%s' % domain_tld, 'dsc-geo',