浏览代码

[youtube:history] Enable exractor

Sergey M․ 10 年之前
父节点
当前提交
c6aa838b51
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1 1
      test/test_all_urls.py
  2. 1 3
      youtube_dl/extractor/__init__.py

+ 1 - 1
test/test_all_urls.py

@@ -99,7 +99,7 @@ class TestAllURLsMatching(unittest.TestCase):
     def test_keywords(self):
     def test_keywords(self):
         self.assertMatch(':ytsubs', ['youtube:subscriptions'])
         self.assertMatch(':ytsubs', ['youtube:subscriptions'])
         self.assertMatch(':ytsubscriptions', ['youtube:subscriptions'])
         self.assertMatch(':ytsubscriptions', ['youtube:subscriptions'])
-        # self.assertMatch(':ythistory', ['youtube:history'])
+        self.assertMatch(':ythistory', ['youtube:history'])
         self.assertMatch(':thedailyshow', ['ComedyCentralShows'])
         self.assertMatch(':thedailyshow', ['ComedyCentralShows'])
         self.assertMatch(':tds', ['ComedyCentralShows'])
         self.assertMatch(':tds', ['ComedyCentralShows'])
 
 

+ 1 - 3
youtube_dl/extractor/__init__.py

@@ -808,9 +808,7 @@ from .youtube import (
     YoutubeIE,
     YoutubeIE,
     YoutubeChannelIE,
     YoutubeChannelIE,
     YoutubeFavouritesIE,
     YoutubeFavouritesIE,
-    # disabled because it can wipe the watch history (see #6893)
-    # remember to uncomment test in test/test_all_urls when it's fixed
-    #YoutubeHistoryIE,
+    YoutubeHistoryIE,
     YoutubePlaylistIE,
     YoutubePlaylistIE,
     YoutubeRecommendedIE,
     YoutubeRecommendedIE,
     YoutubeSearchDateIE,
     YoutubeSearchDateIE,