浏览代码

[southpark:de] Add test for non-ASCII in URLs

Sergey M․ 10 年之前
父节点
当前提交
bd690a9f93
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      youtube_dl/extractor/southpark.py

+ 8 - 0
youtube_dl/extractor/southpark.py

@@ -45,6 +45,14 @@ class SouthParkDeIE(SouthParkIE):
             'title': 'The Government Won\'t Respect My Privacy',
             'title': 'The Government Won\'t Respect My Privacy',
             'description': 'Cartman explains the benefits of "Shitter" to Stan, Kyle and Craig.',
             'description': 'Cartman explains the benefits of "Shitter" to Stan, Kyle and Craig.',
         },
         },
+    }, {
+        # non-ASCII characters in initial URL
+        'url': 'http://www.southpark.de/alle-episoden/s18e09-hashtag-aufwärmen',
+        'playlist_count': 4,
+    }, {
+        # non-ASCII characters in redirect URL
+        'url': 'http://www.southpark.de/alle-episoden/s18e09',
+        'playlist_count': 4,
     }]
     }]