[fc2] Fix refer
authorSergey M․ <dstftw@gmail.com>
Mon, 31 Aug 2015 15:12:21 +0000 (21:12 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 31 Aug 2015 15:12:21 +0000 (21:12 +0600)
youtube_dl/extractor/fc2.py

index 2443846c83808a6cc55c051d48aa8bb4f32ef491..5c1137e94c4445605d678b2bf7e6c3d12e96280e 100644 (file)
@@ -83,7 +83,7 @@ class FC2IE(InfoExtractor):
 
         title = self._og_search_title(webpage)
         thumbnail = self._og_search_thumbnail(webpage)
-        refer = url.replace('/content/', '/a/content/')
+        refer = url.replace('/content/', '/a/content/') if '/a/content/' not in url else url
 
         mimi = hashlib.md5((video_id + '_gGddgPfeaf_gzyr').encode('utf-8')).hexdigest()