Skip to content

Commit

Permalink
1. 修复腾讯视频不能使用VIP问题</br> 2.替换部分失效导航网站 </br> 3. pkg支持Mac M1安装
Browse files Browse the repository at this point in the history
  • Loading branch information
红力 committed Jan 17, 2023
1 parent e474eab commit 3ae102b
Show file tree
Hide file tree
Showing 6 changed files with 238 additions and 118 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

| 更新日期 | 更新内容 |
| ---- | --- |
|2023-1-17| 1. 修复腾讯视频不能使用VIP问题</br> 2.替换部分失效导航网站 </br> 3. pkg支持Mac M1安装 |
|2022-11-08| 1. 删除不可用视VIP源,添加新的VIP源</br> 2.删除抖音网页版源 </br> 3. 解决一些不友好操作,并更新安装包。 |
|2020-05-26| 1. 移除部分视频源</br> 2.增加抖音网页版源 </br> 3. 并更新包。 |
|2020-04-02| 修改证书问题 |
Expand Down
10 changes: 8 additions & 2 deletions VipVideo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/* Begin PBXBuildFile section */
4F03FC9123C05BFE00292A72 /* NSString+HLAddition.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F03FC9023C05BFE00292A72 /* NSString+HLAddition.m */; };
4F2081C729769C66004F2EC6 /* HLRegexMatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F2081C629769C66004F2EC6 /* HLRegexMatcher.m */; };
4F2DDCAB2311275E00A105C5 /* vlist.json in Resources */ = {isa = PBXBuildFile; fileRef = 4F2DDCAA2311275E00A105C5 /* vlist.json */; };
4FA3209B248B579C00DEA984 /* HybridNSURLProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 4FA3209A248B579C00DEA984 /* HybridNSURLProtocol.m */; };
4FA3209E248B5D1800DEA984 /* NSURLProtocol+WKWebVIew.m in Sources */ = {isa = PBXBuildFile; fileRef = 4FA3209D248B5D1800DEA984 /* NSURLProtocol+WKWebVIew.m */; };
Expand All @@ -30,6 +31,8 @@
/* Begin PBXFileReference section */
4F03FC8F23C05BFE00292A72 /* NSString+HLAddition.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSString+HLAddition.h"; sourceTree = "<group>"; };
4F03FC9023C05BFE00292A72 /* NSString+HLAddition.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSString+HLAddition.m"; sourceTree = "<group>"; };
4F2081C529769C66004F2EC6 /* HLRegexMatcher.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HLRegexMatcher.h; sourceTree = "<group>"; };
4F2081C629769C66004F2EC6 /* HLRegexMatcher.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HLRegexMatcher.m; sourceTree = "<group>"; };
4F2DDCAA2311275E00A105C5 /* vlist.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = vlist.json; sourceTree = "<group>"; };
4FA32099248B579C00DEA984 /* HybridNSURLProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HybridNSURLProtocol.h; sourceTree = "<group>"; };
4FA3209A248B579C00DEA984 /* HybridNSURLProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HybridNSURLProtocol.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -97,6 +100,8 @@
C72BBE181F9DE8B000C5141E /* VipURLManager.m */,
C7240AB01FA17AF7000684F1 /* JSONKit.h */,
C7240AAF1FA17AF7000684F1 /* JSONKit.m */,
4F2081C529769C66004F2EC6 /* HLRegexMatcher.h */,
4F2081C629769C66004F2EC6 /* HLRegexMatcher.m */,
);
path = Helper;
sourceTree = "<group>";
Expand Down Expand Up @@ -231,6 +236,7 @@
4FA3209E248B5D1800DEA984 /* NSURLProtocol+WKWebVIew.m in Sources */,
4FA3209B248B579C00DEA984 /* HybridNSURLProtocol.m in Sources */,
C7240AB11FA17AF7000684F1 /* JSONKit.m in Sources */,
4F2081C729769C66004F2EC6 /* HLRegexMatcher.m in Sources */,
C72BBE281F9DE8B000C5141E /* HLHomeWindowController.m in Sources */,
C72BBE241F9DE8B000C5141E /* MainMenu.m in Sources */,
4FC0FB0623C824F200ADD778 /* HLCollectionViewItem.m in Sources */,
Expand Down Expand Up @@ -371,7 +377,7 @@
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = VipVideo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 1.0.9;
PRODUCT_BUNDLE_IDENTIFIER = com.lhl.macvipvideo;
PRODUCT_NAME = VIPVideo;
Expand All @@ -390,7 +396,7 @@
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = VipVideo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 1.0.9;
PRODUCT_BUNDLE_IDENTIFIER = com.lhl.macvipvideo;
PRODUCT_NAME = VIPVideo;
Expand Down
20 changes: 20 additions & 0 deletions VipVideo/Helper/HLRegexMatcher.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// HLRegexMatcher.h
// VipVideo
//
// Created by 李红力 on 2023/1/17.
// Copyright © 2023 SV. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HLRegexMatcher : NSObject

+ (BOOL)isValidVideoUrl:(NSString *)url;


@end

NS_ASSUME_NONNULL_END
63 changes: 63 additions & 0 deletions VipVideo/Helper/HLRegexMatcher.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
//
// HLRegexMatcher.m
// VipVideo
//
// Created by 李红力 on 2023/1/17.
// Copyright © 2023 SV. All rights reserved.
//

#import "HLRegexMatcher.h"

@implementation HLRegexMatcher

+ (BOOL)isValidVideoUrl:(NSString *)url
{
NSArray *regexs = @[@"/https://v.qq.com/x/cover/[a-zA-Z0-9]+.html/",
@"/https://v.qq.com/x/cover/[a-zA-Z0-9]+/[a-zA-Z0-9]+.html",
@"/v.qq.com/x/page/",
@"/https?://m.v.qq.com/x/m/play?.*cid.*/",
@"/m.v.qq.com/x/play.html?cid=/",
@"/m.v.qq.com/play.html?cid=/",
@"/m.v.qq.com/cover/.*html/",
@"/www.iqiyi.com/",
@"/m.iqiyi.com/",
@"/www.iq.com/play/",
@"/m.youku.com/alipay_video/id_/",
@"/m.youku.com/video/id_/",
@"/v.youku.com/v_show/id_/",
@"/www.bilibili.com/video/",
@"/www.bilibili.com/bangumi/",
@"/m.bilibili.com/bangumi/",
@"/m.bilibili.com/video/",
@"/m.mgtv.com/b/",
@"/mgtv.com/b|l/",
@"/tv.sohu.com/v/",
@"/m.tv.sohu.com/",
@"/film.sohu.com/album/",
@"/le.com/ptv/vplay/",
@"/play.tudou.com/v_show/id_/",
@"/v.pptv.com/show/",
@"/vip.1905.com/play/",
@"/www.1905.com/vod/play/",
];

for (NSString *regex in regexs) {
if ([HLRegexMatcher isValidString:url regex:regex]) {
return YES;
}
if ([url containsString:regex]) {
return YES;
}
}

return NO;
}

// 利用正则匹配字符串。如果合法,则返回YES,否则,NO
+ (BOOL)isValidString:(NSString *)string regex:(NSString *)regex
{
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF CONTAINS %@", regex];
return [predicate evaluateWithObject:string];
}

@end
209 changes: 121 additions & 88 deletions VipVideo/Helper/vlist.json
Original file line number Diff line number Diff line change
@@ -1,94 +1,101 @@
{
"new_version_info":
{
"latest_version":"1.6",
"updateMessage": "",
"update": "0",
"needLimit":"0"
"new_version_info":{
"latest_version":"1.6",
"updateMessage":"",
"update":"0",
"needLimit":"0"
},
"i_new_version_info":
{
"i_latest_version":"1.6",
"i_updateMessage": "",
"i_update": "0",
"i_needLimit":"0"
"i_new_version_info":{
"i_latest_version":"1.6",
"i_updateMessage":"",
"i_update":"0",
"i_needLimit":"0"
},
"platformlist": [
"platformlist":[
{
"name": "CCTV",
"icon": "",
"url": "http://tv.cctv.com/live/cctv5/"
}
,
{
"name": "爱奇艺",
"icon": "爱奇艺",
"canvip": 1,
"url": "https://www.iqiyi.com/"
},
{
"name": "腾讯视频",
"icon": "腾讯",
"canvip": 1,
"url": "https://v.qq.com/"
},{
"name": "芒果",
"icon": "芒果",
"canvip": 1,
"url": "https://www.mgtv.com/"
}
, {
"name": "bilibili",
"icon": "bilibili",
"canvip": 0,
"url": "https://www.bilibili.com/"
}, {
"name": "漫岛",
"icon": "漫岛",
"url": "https://www.mddm.tv/"
}, {
"name": "美剧",
"icon": "美剧",
"url": "https://91mjw.vip/all"
},
{
"name": "韩剧",
"icon": "韩剧",
"url": "https://www.kan.cc/"
},
{
"name": "日剧",
"icon": "日剧",
"url": "http://www.wwmulu.com/"
}, {
"name": "新视觉影院",
"icon": "4080",
"url": "https://www.finebv.com/"
}, {
"name": "第一影院",
"icon": "4080",
"url": "https://www.yitv.cc/"
},{
"name": "音乐破解",
"icon": "",
"url": "https://music.sonimei.cn/"
}
, {
"name": "历史记录",
"icon": "",
"url": "history"
}
, {
"name": "更新日志",
"icon": "",
"url": "https://github.com/iodefog/VipVideo/blob/master/README.md"
"name":"CCTV",
"icon":"",
"url":"http://tv.cctv.com/live/cctv5/"
},
{
"name":"爱奇艺",
"icon":"爱奇艺",
"canvip":1,
"url":"https://www.iqiyi.com/"
},
{
"name":"腾讯视频",
"icon":"腾讯",
"canvip":1,
"url":"https://v.qq.com/"
},
{
"name":"芒果",
"icon":"芒果",
"canvip":1,
"url":"https://www.mgtv.com/"
},
{
"name":"bilibili",
"icon":"bilibili",
"canvip":0,
"url":"https://www.bilibili.com/"
},
{
"name":"漫岛",
"icon":"漫岛",
"url":"https://www.mddm.tv/"
},
{
"name":"美剧",
"icon":"美剧",
"url":"https://91mjw.vip/all"
},
{
"name":"韩剧",
"icon":"韩剧",
"url":"https://www.kan.cc/"
},
{
"name":"日剧",
"icon":"日剧",
"url":"http://www.wwmulu.com/"
},
{
"name":"新视觉影院",
"icon":"4080",
"url":"https://www.finebv.com/"
},
{
"name":"1905",
"icon":"4080",
"url":"https://vip.1905.com/"
},
{
"name":"大师兄影视",
"icon":"",
"url":"https://dsxys.pro/"
},
{
"name":"天空影视",
"icon":"",
"url":"https://www.yskj1.com/"
},
{
"name":"历史记录",
"icon":"",
"url":"history"
},
{
"name":"更新日志",
"icon":"",
"url":"https://github.com/iodefog/VipVideo/blob/master/README.md"
}
],

"list": [
"list":[
{
"name": "原地址-(提示:本软件免费无广告,不要花钱购买)",
"url": ""
"name":"原地址-(提示:本软件免费无广告,不要花钱购买)",
"url":""
},
{
"name":"4.21-6",
Expand All @@ -99,7 +106,7 @@
"url":"http://www.82190555.com/index/qqvod.php?url="
},
{
"name":"api-1",
"name":"OK",
"url":"https://okjx.cc/?url="
},
{
Expand All @@ -126,7 +133,6 @@
"name":"api-7",
"url":"https://www.nxflv.com/?url="
},

{
"name":"api-8",
"url":" https://www.ckplayer.vip/jiexi/?url="
Expand All @@ -144,9 +150,36 @@
"url":"https://jx.qqwtt.com/?url="
},
{
"name":"api-12",
"name":"纯净1",
"url":"https://z1.m1907.top/?jx="
},
{
"name":"B站1",
"url":"https://jx.jsonplayer.com/player/?url="
},
{
"name":"爱豆",
"url":"https://jx.aidouer.net/?url="
},
{
"name":"CHok",
"url":"https://www.gai4.com/?url="
},
{
"name":"RDHK",
"url":"https://jx.rdhk.net/?v="
},
{
"name":"人人迷",
"url":"https://jx.blbo.cc:4433/?url="
},
{
"name":"思古3",
"url":"https://jsap.attakids.com/?url="
},
{
"name":"听乐",
"url":"https://jx.dj6u.com/?url="
}
]
}

Loading

0 comments on commit 3ae102b

Please sign in to comment.