Skip to content

Commit ce1f930

Browse files
committed
Merge branch 'develop' of https://github.com/ljhcage/you-get into ljhcage-develop
2 parents 7fbd4c3 + 094d5a0 commit ce1f930

File tree

17 files changed

+4
-26
lines changed

17 files changed

+4
-26
lines changed

src/you_get/extractors/acfun.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def prepare(self, **kwargs):
4343
currentVideoInfo = json_data.get('currentVideoInfo')
4444

4545
else:
46-
raise NotImplemented
46+
raise NotImplementedError()
4747

4848
if 'ksPlayJson' in currentVideoInfo:
4949
durationMillis = currentVideoInfo['durationMillis']
@@ -193,7 +193,7 @@ def getM3u8UrlFromCurrentVideoInfo(currentVideoInfo):
193193
m3u8_url = getM3u8UrlFromCurrentVideoInfo(currentVideoInfo)
194194

195195
else:
196-
raise NotImplemented
196+
raise NotImplementedError()
197197

198198
assert title and m3u8_url
199199
title = unescape_html(title)

src/you_get/extractors/baidu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ def baidu_pan_download(url):
185185
isprotected = False
186186
sign, timestamp, bdstoken, appid, primary_id, fs_id, uk = baidu_pan_parse(
187187
html)
188-
if sign == None:
188+
if sign is None:
189189
if re.findall(r'\baccess-code\b', html):
190190
isprotected = True
191191
sign, timestamp, bdstoken, appid, primary_id, fs_id, uk, fake_headers, psk = baidu_pan_protected_share(
192192
url)
193193
# raise NotImplementedError("Password required!")
194194
if isprotected != True:
195195
raise AssertionError("Share not found or canceled: %s" % url)
196-
if bdstoken == None:
196+
if bdstoken is None:
197197
bdstoken = ""
198198
if isprotected != True:
199199
sign, timestamp, bdstoken, appid, primary_id, fs_id, uk = baidu_pan_parse(

src/you_get/extractors/facebook.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
__all__ = ['facebook_download']
44

55
from ..common import *
6-
import json
76

87
def facebook_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
98
url = re.sub(r'//.*?facebook.com','//facebook.com',url)

src/you_get/extractors/fc2video.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from ..common import *
66
from hashlib import md5
77
from urllib.parse import urlparse
8-
import re
98

109
#----------------------------------------------------------------------
1110
def makeMimi(upid):

src/you_get/extractors/giphy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
__all__ = ['giphy_download']
44

55
from ..common import *
6-
import json
76

87
def giphy_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
98
html = get_html(url)

src/you_get/extractors/iqiyi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from random import random,randint
1111
import json
1212
from math import floor
13-
from zlib import decompress
1413
import hashlib
1514
import time
1615

src/you_get/extractors/ixigua.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
#!/usr/bin/env python
22
import base64
33

4-
import binascii
5-
64
from ..common import *
7-
import random
8-
import string
9-
import ctypes
105
from json import loads
116
from urllib import request
127

src/you_get/extractors/kuaishou.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
import urllib.request
44
import urllib.parse
5-
import json
65
import re
76

8-
from ..util import log
97
from ..common import get_content, download_urls, print_info, playlist_not_supported, url_size
108

119
__all__ = ['kuaishou_download_by_url']

src/you_get/extractors/kugou.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from json import loads
77
from base64 import b64decode
88
import re
9-
import hashlib
109

1110

1211
def kugou_download(url, output_dir=".", merge=True, info_only=False, **kwargs):

src/you_get/extractors/pixnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
__all__ = ['pixnet_download']
44

55
from ..common import *
6-
import urllib.error
76
from time import time
87
from urllib.parse import quote
98
from json import loads

0 commit comments

Comments
 (0)