[afreecatv] Fix title extraction
authorTithen-Firion <Tithen-Firion@users.noreply.github.com>
Thu, 27 Apr 2017 21:00:15 +0000 (23:00 +0200)
committerSergey M <dstftw@gmail.com>
Thu, 27 Apr 2017 21:00:15 +0000 (04:00 +0700)
youtube_dl/extractor/afreecatv.py

index 78d29c861537fe8e5bbd0dffd1de87e08b411e8a..c8cb91dcba63cd7e532945eedb114f1975750b6f 100644 (file)
@@ -207,11 +207,10 @@ class AfreecaTVIE(InfoExtractor):
                     file_url, video_id, 'mp4', entry_protocol='m3u8_native',
                     m3u8_id='hls',
                     note='Downloading part %d m3u8 information' % file_num)
-                title = title if one else '%s (part %d)' % (title, file_num)
                 file_info = common_entry.copy()
                 file_info.update({
                     'id': format_id,
-                    'title': title,
+                    'title': title if one else '%s (part %d)' % (title, file_num),
                     'upload_date': upload_date,
                     'duration': file_duration,
                     'formats': formats,