From ed85007039c2cd23638a318f1750160f99e703a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Tue, 28 Jan 2014 18:55:06 +0100 Subject: [PATCH] [ninegag] Use unicode_literals --- youtube_dl/extractor/ninegag.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/youtube_dl/extractor/ninegag.py b/youtube_dl/extractor/ninegag.py index ea986c00e7..2b7236be5c 100644 --- a/youtube_dl/extractor/ninegag.py +++ b/youtube_dl/extractor/ninegag.py @@ -1,3 +1,5 @@ +from __future__ import unicode_literals + import json import re @@ -9,13 +11,13 @@ class NineGagIE(InfoExtractor): _VALID_URL = r'^https?://(?:www\.)?9gag\.tv/v/(?P[0-9]+)' _TEST = { - u"url": u"http://9gag.tv/v/1912", - u"file": u"1912.mp4", - u"info_dict": { - u"description": u"This 3-minute video will make you smile and then make you feel untalented and insignificant. Anyway, you should share this awesomeness. (Thanks, Dino!)", - u"title": u"\"People Are Awesome 2013\" Is Absolutely Awesome" + "url": "http://9gag.tv/v/1912", + "file": "1912.mp4", + "info_dict": { + "description": "This 3-minute video will make you smile and then make you feel untalented and insignificant. Anyway, you should share this awesomeness. (Thanks, Dino!)", + "title": "\"People Are Awesome 2013\" Is Absolutely Awesome" }, - u'add_ie': [u'Youtube'] + 'add_ie': ['Youtube'] } def _real_extract(self, url): @@ -25,7 +27,7 @@ class NineGagIE(InfoExtractor): webpage = self._download_webpage(url, video_id) data_json = self._html_search_regex(r'''(?x)