forked from ZSAIm/iqiyi-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CommonVar.py
67 lines (37 loc) · 875 Bytes
/
CommonVar.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# status
SHUTDOWN = False
ALLTASKDONE = False
# parse
SEL_RES = None
PARAER_DOMAIN_MAPPING = {
'iqiyi.py': ['iqiyi.com'],
'bilibili.py': ['bilibili.com'],
'tencent.py': ['v.qq'],
'youku.py': ['youku'],
}
PARSER_PATH = 'core'
# REPO = 'https://raw.githubusercontent.com/ZSAIm/iqiyi-parser/master/core/'
REPO = 'https://raw.githubusercontent.com/ZSAIm/iqiyi-parser/zsaim/core/'
# copy link
CPYLINK_SEL_ITEMS = {}
LISTCTRL_ITEMS = []
# download
MAX_CONN = 5
MAX_TASK = 3
BUFFER_SIZE = 20
FILEPATH = ''
BLOCK_SIZE = 512
UNDONE_JOB = ''
# merge
FFMPEG_PATH = ''
MER_VIDEO_AUDIO = object()
MER_CONCAT_SIMPLE = object()
MER_CONCAT_DEMUXER = object()
MER_CONCAT_PROTOCAL = object()
MER_CONVERT_MP4 = object()
MER_CONVERT_FLV = object()
MER_CONVERT_MKV = object()
TARGET_FORMAT = '.mp4'
import wx
# wxID
ID_PARSER_GODOWNLOAD = wx.NewId()