Skip to content

Commit

Permalink
version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxtyson committed Dec 17, 2020
1 parent a83c933 commit 94fcc3b
Show file tree
Hide file tree
Showing 12 changed files with 244 additions and 29 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,19 @@ Tips: 因为资源引擎 `eyunzhu` 时常有不雅水印~~荷官在线发牌~~

## 更新日志

### `v1.0.0`

- 修复 agefans 无法访问的问题(被墙)
- 外挂弹幕支持
- 弹幕显示优化
- 支持播放历史记录

### `v0.9.9`

- 修复 Windows 安装版中弹幕源 bahamut 繁简体转换异常的问题
- 修复引擎 bimibimi 部分视频解析失败的问题和弹幕 undefined 的问题
- 修复 zzfun 接口变化导致无法播放视频的问题
- 修复 agefans 视频无法解析的问题
- 新增弹幕源 youku
- 新增弹幕源 tencent
- 新增资源引擎 meijuxia
Expand Down
30 changes: 15 additions & 15 deletions api/config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"engines": {
"api.engines.yhdm": true,
"api.engines.zzfun": true,
"api.engines.agefans": true,
"api.engines.eyunzhu": false,
"api.engines.bimibimi": true,
"api.engines.meijuxia": true
},
"danmaku": {
"api.danmaku.bilibili": true,
"api.danmaku.bimibimi": true,
"api.danmaku.bahamut": false,
"api.danmaku.youku": true,
"api.danmaku.tencent": true
}
"engines": {
"api.engines.yhdm": true,
"api.engines.zzfun": true,
"api.engines.agefans": true,
"api.engines.eyunzhu": false,
"api.engines.bimibimi": true,
"api.engines.meijuxia": true
},
"danmaku": {
"api.danmaku.bilibili": true,
"api.danmaku.bimibimi": true,
"api.danmaku.bahamut": false,
"api.danmaku.youku": true,
"api.danmaku.tencent": true
}
}
10 changes: 5 additions & 5 deletions api/engines/agefans.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class AgeFans(BaseEngine):
def __init__(self):
self._base_url = "https://www.agefans.tv"
self._base_url = "https://www.agefans.net"
self._search_api = self._base_url + "/search"

def search(self, keyword: str):
Expand Down Expand Up @@ -80,20 +80,20 @@ class AgeFansVideoHandler(VideoHandler):

def __init__(self, video):
VideoHandler.__init__(self, video)
self._base_url = "https://www.agefans.tv"
self._base_url = "https://www.agefans.net"
self._play_api = self._base_url + "/_getplay"
self._client = requests.Session()

def set_cookie(self):
# 计算 k2 的值
# https://www.agefans.tv/age/static/js/s_runtimelib.js?ver=202008211700 __getplay_pck()
# https://cdn.jinfu.love/age/static/js/s_runtimelib2.js?ver=202010240154 __getplay_pck()
t1 = self._client.cookies.get("t1")
logger.debug(f"Get cookie t1={t1}")
t = (int(t1) // 1000) >> 5
k2 = (t * (t % 4096) + 39382) * (t % 4096) + t
k2 = (t * (t % 4096) * 3 + 83215) * (t % 4096) + t
k2 = str(k2)
# 计算 t2 的值, 生成一个后三位包含 k2 最后一位的数时间戳
# https://www.agefans.tv/age/static/js/s_dett.js?ver=202008211700 __getplay_pck2()
# https://cdn.jinfu.love/age/static/js/s_dett.js?ver=202010240154 __getplay_pck2()
k2_last = k2[-1]
t2 = ""
while True:
Expand Down
12 changes: 8 additions & 4 deletions api/engines/bimibimi.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ def get_real_url(self):
real_url = data["url"]
parse_js = data.get("parse")
if parse_js: # 需要进一步处理
parse_api = re.search(r'{"(http.+?)"}', parse_js).group(1)
url = parse_api + real_url
resp = self.get(url)
real_url = resp.json().get("url") or "error"
logger.debug(parse_js)
parse_apis = re.findall(r'"(https?://.+?)"', parse_js) # 可能存在多个解析接口
for api in parse_apis:
url = api + real_url
resp = self.get(url)
real_url = resp.json().get("url")
if real_url is not None:
break # 已经得到了
elif "qq.com" in real_url:
resp = self.head(real_url, allow_redirects=False)
real_url = resp.headers.get("Location") # 重定向之后才是直链
Expand Down
96 changes: 96 additions & 0 deletions web/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Web UI

AnimeSearcher前端UI项目

By Lozyue


## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

Year, Nothing need to do haha!

It's just a simple Vue3.0 project. Easy to Modify & Build.


## 技术依赖

- 核心基于非完全MVVM框架 `Vue`
- 前端路由`vue-router`
- Material Design Component `Vuetify`
- Promise 的 HTTP 通信组件库 `axios`
- H5弹幕播放器 `DPlayer`
- 加载条 `NProgress`


### Release

- v1.0.0 @2020-14-25

- v0.9.9 @2020-10-25

- v0.9.8 差点正式版

- v0.9.6 体验版

- v0.9.5 不正式体验版

- v0.9.3 beta弹幕体验版

- v0.9.0 beta体验版


### Process

- v1.0.0 Updated @2020-12-15
- √ 增加观看记录提示消息条回调点击事件,支持直接跳转
- √ 增加快捷键F、W切换网页全屏和页面全屏,全屏时鼠标中键滚动可调整音量
- √ 修复了增强了更新检测算法,可检测到子版本
- √ 加入首页观看历史记录展示修改面板
- √ 合并弹幕player消息条hover滚动
- √ 修复读取存储播放设置为空时产生的中断

- v1.0.0-beta
- 优化了播放器设置项
- 修改Dplayer样式,移除多余按钮,弹幕样式速度和UI显示优化,倍速移动到外部
- 增加本地观看历史记录,最多保存16个
- 自动检测跳转上次播放进度并提示;搜索结果组件home也结果卡片比例调整,强制等高(Description部分可能会部分遮挡,等待重构)

- fixed bugs 弹幕自动匹配去掉了每轮进行的准确度过低数字搜索匹配,修改了footerMsg错序的问题;修正排序或逆序时右侧选集框定位滞留问题;优化换集显示 @2020-10-21

- v0.9.9 更新!增加了TV板块,优化各种设置项,集成消息队列核心支持搜索弹幕源,增加沉浸模式,增加弹幕的分类开关,增加新番表 @2020-10-21

- 增加了主题切换美化界面,增加了点击定位,追海贼王等长剧不用再苦翻列表了;修复选择弹幕,工具栏设置不同步等一些bug,增强弹幕匹配规则 @2020-10-01

- fixed some bugs @2020-09-11

- v0.9.8优化了排序的实现方法。为搜索记录增加单条删除键。视频页回车搜索新窗口打开。重构了搜索结果路由,前后前进更流畅。

- v0.9.7增加简单搜索记录,更新了HelloWorld页,为Home页卡片增加默认图(手动PS的哦),更改了排序方式,补充了弹幕引擎设置

- v0.9.6修复限流造成的切换代理失败及代理时手动选择弹幕卡住的bugs

- v0.9.5完成了工具栏的各小按钮功能,选择弹幕功能。优化细节,修复几个bugs

- v0.9.4再次增强了自动匹配,增加了nprogress加载条,选集按钮标题修改,Dplayer出错回调增加节流限制,增加视频底部工具栏,选择弹幕功能暂未完成。

- v0.9.3增加了视频弹幕,自动匹配当前弹幕。略优化了Dplayer错误处理(暂未做限流throttle处理)@2020-08-30

- v0.9.1增加了配置项,修复代理通道无法切换的bug,任存在切换卡住的dplayer内部bug,再次手动选集可缓解。
Binary file added web/favicon.ico
Binary file not shown.
Binary file added web/img/TVlogo.590914dc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/img/history.daf03d78.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<title>AnimeSearcher</title>
<link rel=stylesheet href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css>
<link href=js/about.998230dd.js rel=prefetch>
<link href=js/app.e76bdc60.js rel=preload as=script>
<link href=js/chunk-vendors.1f5b0c27.js rel=preload as=script>
<link href=js/about.7bf2b6d7.js rel=prefetch>
<link href=js/app.8099ce56.js rel=preload as=script>
<link href=js/chunk-vendors.1a1c563c.js rel=preload as=script>
</head>
<body>
<noscript><strong>We're sorry but AnimeSearcher doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong></noscript>
<div id=app></div>
<script src=js/chunk-vendors.1f5b0c27.js></script>
<script src=js/app.e76bdc60.js></script>
<script src=js/chunk-vendors.1a1c563c.js></script>
<script src=js/app.8099ce56.js></script>
</body>
</html>
1 change: 1 addition & 0 deletions web/js/about.7bf2b6d7.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/js/app.8099ce56.js

Large diffs are not rendered by default.

105 changes: 105 additions & 0 deletions web/js/chunk-vendors.1a1c563c.js

Large diffs are not rendered by default.

0 comments on commit 94fcc3b

Please sign in to comment.