Browse Source

[youtube:history] Explain why it has disabled and skip test

Jaime Marquínez Ferrándiz 10 years ago
parent
commit
f005f96ea5
2 changed files with 3 additions and 1 deletions
  1. 1 1
      test/test_all_urls.py
  2. 2 0
      youtube_dl/extractor/__init__.py

+ 1 - 1
test/test_all_urls.py

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

+ 2 - 0
youtube_dl/extractor/__init__.py

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