1+ import webbrowser
2+ import ui
3+ import base64
4+
5+ # 这里存放8ca58e770b78c0e7a7063c279ae0a11dd45962953fae4c2130add25a3d172020ce94c002b2b6e62a47d3
6+ ENCODED_CARD = "cWl5dWU=" # 如果你卡密不同,把引号里的换成你上一步得到的码
7+
8+ def open_iqy (sender ):
9+ webbrowser .open ('https://www.iqiyi.com' )
10+
11+ def open_tx (sender ):
12+ webbrowser .open ('https://v.qq.com' )
13+
14+ def open_yq (sender ):
15+ webbrowser .open ('https://www.youku.com/' )
16+
17+ def play_vip (sender ):
18+ url = 'https://jx.xmflv.cc/?url='
19+ video = sender .superview ['entry' ].text
20+ webbrowser .open (url + video )
21+
22+ def clear_text (sender ):
23+ sender .superview ['entry' ].text = ''
24+
25+ def verify_card (sender ):
26+ card_entry = sender .superview ['card_entry' ]
27+ input_card = card_entry .text .strip ()
28+ # 解码存储的 Base64,得到真实卡密
29+ correct_card = base64 .b64decode (ENCODED_CARD ).decode ()
30+ if input_card == correct_card :
31+ play_btn = sender .superview ['play_btn' ]
32+ play_btn .enabled = True
33+ ui .alert ('验证成功' , '卡密正确,现在可以使用VIP播放功能了!' , '好的' )
34+ card_entry .text = ''
35+ else :
36+ ui .alert ('验证失败' , '卡密错误,无法使用VIP播放功能。' , '重试' )
37+
38+ if __name__ == '__main__' :
39+ v = ui .View ()
40+ v .name = 'VIP视频破解软件'
41+ v .background_color = 'white'
42+ v .frame = (0 , 0 , 480 , 260 )
43+
44+ # 视频链接行
45+ label_movie_link = ui .Label ()
46+ label_movie_link .text = '网页视频链接:'
47+ label_movie_link .frame = (20 , 20 , 100 , 30 )
48+ v .add_subview (label_movie_link )
49+
50+ entry_movie_link = ui .TextField ()
51+ entry_movie_link .frame = (125 , 20 , 260 , 30 )
52+ entry_movie_link .border_width = 1
53+ entry_movie_link .border_color = (0.8 , 0.8 , 0.8 )
54+ entry_movie_link .corner_radius = 5
55+ entry_movie_link .name = 'entry'
56+ v .add_subview (entry_movie_link )
57+
58+ btn_clear = ui .Button ()
59+ btn_clear .title = '清空'
60+ btn_clear .frame = (400 , 20 , 50 , 30 )
61+ btn_clear .background_color = (0.9 , 0.9 , 0.9 )
62+ btn_clear .corner_radius = 5
63+ btn_clear .action = clear_text
64+ v .add_subview (btn_clear )
65+
66+ # 平台按钮行
67+ btn_iqy = ui .Button ()
68+ btn_iqy .title = '爱奇艺'
69+ btn_iqy .frame = (25 , 70 , 80 , 40 )
70+ btn_iqy .background_color = (0.2 , 0.6 , 1.0 )
71+ btn_iqy .tint_color = 'white'
72+ btn_iqy .corner_radius = 8
73+ btn_iqy .action = open_iqy
74+ v .add_subview (btn_iqy )
75+
76+ btn_tx = ui .Button ()
77+ btn_tx .title = '腾讯视频'
78+ btn_tx .frame = (125 , 70 , 80 , 40 )
79+ btn_tx .background_color = (0.0 , 0.8 , 0.4 )
80+ btn_tx .tint_color = 'white'
81+ btn_tx .corner_radius = 8
82+ btn_tx .action = open_tx
83+ v .add_subview (btn_tx )
84+
85+ btn_youku = ui .Button ()
86+ btn_youku .title = '优酷视频'
87+ btn_youku .frame = (225 , 70 , 80 , 40 )
88+ btn_youku .background_color = (1.0 , 0.3 , 0.2 )
89+ btn_youku .tint_color = 'white'
90+ btn_youku .corner_radius = 8
91+ btn_youku .action = open_yq
92+ v .add_subview (btn_youku )
93+
94+ btn_play = ui .Button ()
95+ btn_play .title = '播放VIP视频'
96+ btn_play .frame = (325 , 70 , 125 , 40 )
97+ btn_play .background_color = (0.6 , 0.2 , 0.8 )
98+ btn_play .tint_color = 'white'
99+ btn_play .corner_radius = 8
100+ btn_play .action = play_vip
101+ btn_play .enabled = False
102+ btn_play .name = 'play_btn'
103+ v .add_subview (btn_play )
104+
105+ # 提示标签
106+ lab_remind = ui .Label ()
107+ lab_remind .text = '提示:将视频链接复制到框内,点击播放VIP视频'
108+ lab_remind .frame = (50 , 125 , 400 , 20 )
109+ lab_remind .text_color = (0.4 , 0.4 , 0.4 )
110+ lab_remind .alignment = ui .ALIGN_CENTER
111+ v .add_subview (lab_remind )
112+
113+ # 卡密验证行
114+ label_card = ui .Label ()
115+ label_card .text = '卡密:'
116+ label_card .frame = (50 , 155 , 50 , 30 )
117+ v .add_subview (label_card )
118+
119+ entry_card = ui .TextField ()
120+ entry_card .frame = (100 , 155 , 200 , 30 )
121+ entry_card .border_width = 1
122+ entry_card .border_color = (0.8 , 0.8 , 0.8 )
123+ entry_card .corner_radius = 5
124+ entry_card .placeholder = '输入卡密以解锁VIP播放'
125+ entry_card .name = 'card_entry'
126+ v .add_subview (entry_card )
127+
128+ btn_verify = ui .Button ()
129+ btn_verify .title = '验证卡密'
130+ btn_verify .frame = (320 , 155 , 100 , 30 )
131+ btn_verify .background_color = (0.9 , 0.5 , 0.2 )
132+ btn_verify .tint_color = 'white'
133+ btn_verify .corner_radius = 5
134+ btn_verify .action = verify_card
135+ v .add_subview (btn_verify )
136+
137+ # 作者标签
138+ author_label = ui .Label ()
139+ author_label .text = '作者:七月'
140+ author_label .frame = (0 , 205 , 480 , 25 )
141+ author_label .text_color = (0.5 , 0.5 , 0.5 )
142+ author_label .alignment = ui .ALIGN_CENTER
143+ author_label .font = ('<system>' , 12 )
144+ v .add_subview (author_label )
145+
146+ v .present ('sheet' )
0 commit comments