1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-25 15:05:50 +01:00

re-format code to pass flake8

This commit is contained in:
sprhawk 2017-12-26 16:38:51 +08:00
parent d2be5bb5af
commit 951043724f

View File

@ -5,7 +5,6 @@ from .common import InfoExtractor
import json import json
import random as rnd import random as rnd
from os import path
import re import re
from ..compat import ( from ..compat import (
@ -17,6 +16,7 @@ from ..utils import (
js_to_json, js_to_json,
) )
class WeiboIE(InfoExtractor): class WeiboIE(InfoExtractor):
_VALID_URL = r'https?://weibo\.com/[0-9]+/(?P<id>[a-zA-Z0-9]+)' _VALID_URL = r'https?://weibo\.com/[0-9]+/(?P<id>[a-zA-Z0-9]+)'
_TEST = { _TEST = {
@ -111,6 +111,7 @@ class WeiboIE(InfoExtractor):
# TODO more properties (see youtube_dl/extractor/common.py) # TODO more properties (see youtube_dl/extractor/common.py)
} }
class WeiboMobileIE(InfoExtractor): class WeiboMobileIE(InfoExtractor):
_VALID_URL = r'https?://m.weibo.cn/status/(?P<id>[0-9]+)(\?.+)?' _VALID_URL = r'https?://m.weibo.cn/status/(?P<id>[0-9]+)(\?.+)?'
_TEST = { _TEST = {