[dramafever] Fix episode fallback
authorSergey M․ <dstftw@gmail.com>
Mon, 4 Jan 2016 19:36:38 +0000 (01:36 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 4 Jan 2016 19:36:38 +0000 (01:36 +0600)
youtube_dl/extractor/dramafever.py

index a14021a9e3af9745f0960d5b9f4c3d80f1f59525..9f5e82f5680ff62b806aa50f0c9f3377fa09d597 100644 (file)
@@ -119,7 +119,7 @@ class DramaFeverIE(DramaFeverBaseIE):
                         episode_fallback = 'Episode'
                         if episode_number:
                             episode_fallback += ' %d' % episode_number
-                        info['episode'] = v.get('title', episode_fallback)
+                        info['episode'] = v.get('title') or episode_fallback
                         info['episode_number'] = episode_number
                         break