Coder Social home page Coder Social logo

zaxtyson / animesearcher Goto Github PK

View Code? Open in Web Editor NEW
675.0 675.0 58.0 15.83 MB

整合第三方网站的视频和弹幕资源, 为白嫖党提供最佳看番追剧体验

License: MIT License

Python 97.55% HTML 2.45%
bilibili cctv danmaku movies player spider

animesearcher's Introduction

                                                       _oo0oo_
                                                      o8888888o
                                                      88" . "88
                                                      (| -_- |)
                                                      0\  =  /0
                                                    ___/`---'\___
                                                  .' \\|     |// '.
                                                 / \\|||  :  |||// \
                                                / _||||| -:- |||||- \
                                               |   | \\\  -  /// |   |
                                               | \_|  ''\---/''  |_/ |
                                               \  .-\__  '-'  ___/-. /
                                             ___'. .'  /--.--\  `. .'___
                                          ."" '<  `.___\_<|>_/___.' >' "".
                                         | | :  `- \`.;`\ _ /`;.`/ - ` : | |
                                         \  \ `_.   \_ __\ /__ _/   .-` /  /
                                     =====`-.____`.___ \_____/___.-`___.-'=====
                                                       `=---='


                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                               菩提本无树   明镜亦非台
                                               本来无BUG    何必常修改

animesearcher's People

Contributors

zaxtyson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

animesearcher's Issues

服务器上的播放问题

  • 我将项目放在服务器上后(已按 @lozyue大佬的方法配置好了 ,后台用的是anime-api,前端访问直接放了web文件夹),可以远程访问,也读取的到数据,但是无法播放,通过抓包后发现:如果在demo.py中填写rt.listen的ip为我的内网地址(172.28.45.85),添加rt.set_domain("...")语句(这里的代表我服务器的外网地址),则在解析播放地址的时候会多出一个外网地址,导致解析失败,例:http://...:6001/...*:6001/video/af5fc9d1a0ffab847b07788eb392d6da/proxy_player。

  • 如果在demo.py中填写rt.listen的ip为我的内网地址(172.28.45.85),并且没有添加rt.set_domain("...")语句,则解析的播放地址不会多出一个外网地址,但是解析地址的host是我的内网地址,也无法解析,例:http://172.28.45.85:6001/video/af5fc9d1a0ffab847b07788eb392d6da/proxy_player

  • 如果能得到解答真的是太谢谢了

一些优化建议

大佬好,体验过程中,发现这样一些对于服务器端运行不友好的问题,希望能够在下版本得到解决。
1.主页番表更新不显示图片(跨域问题),暂时解决:<meta name="referrer" content="no-referrer" />
2.开启https协议,并修改前后端相应代码后,可以正常访问和搜索,但视频和弹幕无法加载。为了云端的传输安全,建议对此优化。
3.视频播放界面,如果播放了一个已经失效的资源,则用户再次切换同一视频源的另一合集有效视频时,还是提示失效。(强制刷新正常播放)

一个小小的建议

建议开头加上
#!/bin/python
或者其他更好的写法

不然可能会当成 shell 脚本运行。。。

前端代码没有开源?

你好,目前仓库中的前端代码是打包后的js文件,没有找到用于本地构建的源码,请问是否是遗漏了?

弹幕显示问题(有图)

观看2小时以上长度的影片,弹幕列表显示弹幕到1:59:52后就没了,之后的弹幕似乎无法显示。(弹幕源是b站)

请将pip install 变更至 pip3 install,python更改为python3.8

rt,直接pip install装完之后老提示不对,然后包括后面python运行也报错 SyntaxError: invalid syntax,此时若以python3 app.py运行直接会报各种库缺失。我改为pip3 install+python3.8 app.py之后才可以正常使用,感觉是因为系统自带的是2.7的python?

想请教开发者一个问题

运行打包好的版本后,在浏览器中是使用 file:// 这样的协议访问的。

请问这是什么原理呢。。这样是如何请求到服务端 api 的呢?

忽然用不了了。?

Hi,
非常感谢你们的开发,海外党直接就是一个吹的爆。之前用着非常的巴适,今天打开之后不知道为什么用不了了,具体就是,不管搜索什么都是显示0条结果。试了linux和windows以及改localhost端口啥的包括清理缓存,还是啥都搜不到,救救孩子我想看番

FreeBSD上出现错误

在运行python3.8 -m pip install -r requirements.txt后出现。
用3.7和3.9出现同样问题,似乎是说没有这个版本?
IMG_20210313_213329

关于运行app.py时的库缺失报错

使用pip install -r requirements.txt安装库时出现了许多报错,故手动逐条安装requirements.txt中的库。但是运行app.py时依然出现了数次库缺失的报错,都按照报错内容安装了对应库。但最终这个“google”库缺失的问题无法解决,因为通过pip list,我可以确定“google”库正确安装了。希望获知原因。python 版本3.8.5
Traceback (most recent call last): File "D:\Applition\MST\AnimeSearcher-master\app.py", line 1, in <module> from api.router import APIRouter File "D:\Applition\MST\AnimeSearcher-master\api\router.py", line 9, in <module> from api.core.agent import Agent File "D:\Applition\MST\AnimeSearcher-master\api\core\agent.py", line 8, in <module> from api.core.scheduler import Scheduler File "D:\Applition\MST\AnimeSearcher-master\api\core\scheduler.py", line 7, in <module> from api.core.loader import ModuleLoader File "D:\Applition\MST\AnimeSearcher-master\api\core\loader.py", line 15, in <module> class ModuleLoader(object): File "D:\Applition\MST\AnimeSearcher-master\api\core\abc.py", line 11, in singleton instance = cls() File "D:\Applition\MST\AnimeSearcher-master\api\core\loader.py", line 33, in __init__ self.load_full_module(module) File "D:\Applition\MST\AnimeSearcher-master\api\core\loader.py", line 40, in load_full_module self.load_search_module(module) File "D:\Applition\MST\AnimeSearcher-master\api\core\loader.py", line 47, in load_search_module py_module = import_module(module) File "C:\Users\Misachu\anaconda3\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "D:\Applition\MST\AnimeSearcher-master\api\danmaku\bilibili\__init__.py", line 4, in <module> from google.protobuf.json_format import MessageToDict ModuleNotFoundError: No module named 'google'

经过nginx反向代理后,接口返回的URL错误

config.py 使用默认选项

host = "127.0.0.1"
port = 6001
domain = "http://localhost"

nginx 的部分配置:

  location /anime-api {
    proxy_redirect off;
    proxy_pass http://127.0.0.1:6001/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $http_host;

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }

GET /anime-api/anime/search/hello

[
    {
        "category": "\u641e\u7b11/\u65e5\u5e38",
        "cover_url": "http://puui.qpic.cn/fans_admin/0/3_380704150_1578035783024/0",
        "description": "",
        "module": "api.anime.zzzfun",
        "score": 80,
        "title": "Hello!! \u9ec4\u91d1\u62fc\u56fe",
        "url": "http://localhost:6001/anime/7a7a7a66756e7c333931"
    },
    {
        "category": "\u604b\u7231",
        "cover_url": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2594685581.jpg",
        "description": "",
        "module": "api.anime.zzzfun",
        "score": 80,
        "title": "HELLO WORLD",
        "url": "http://localhost:6001/anime/7a7a7a66756e7c31383633"
    }
]

可以看到url部分错误,应该为http://$HOST/anime-api/anime/*
修改domain = "http://$HOST/anime-api/"返回url为http://$HOST/anime-api/:6001/anime/*
修改port = 80,报端口被nginx占用

linux下报错

Traceback (most recent call last):
  File "ui.pyw", line 45, in <module>
    ui = SimpleUI()
  File "ui.pyw", line 17, in __init__
    self.init_ui()
  File "ui.pyw", line 22, in init_ui
    self.ui.wm_iconbitmap(f"{PATH}/logo.ico")
  File "/usr/lib/python3.8/tkinter/__init__.py", line 2071, in wm_iconbitmap
    return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
_tkinter.TclError: bitmap "/home/poly/AnimeSearcher/logo.ico" not defined

已经安装好依赖包 python: 3.8

网站资源多线路而且还有多个解析接口的问题

描述:我写好了一个新网站的资源引擎,但是稍微有一点问题,那个网站的对于同一个资源可能有多个资源链接,每个链接还有多个解析端口(例:第一集有阿里云的资源链接,还有腾讯云的资源链接,阿里云的那个资源链接可以用解析接口1播放,也可以用解析接口2播放,但是偶尔有些资源用某些接口解析不了)
问题:我现在是把每一个资源的资源链接放在一起作为一个播放线路(接口为默认获取的那个),但是这样的话如果这个资源链接的默认解析接口无法播放,我就无法切换成另一个接口了(不知道如何展现其他解析接口)。
我的想法:1.不修改前端框架的前提下,好像只能直接把其他的解析接口放到各条线路中(例:播放线路1:第一集、第一集备用解析接口1、第一集备用解析接口2),但是这样好像很不美观,所以不太想这么写。2.修改前端代码,将其他解析接口放在播放器下方(例:播放第一集的时候,播放器下方显示第一集备用解析接口1、第一集备用解析接口2),但是这样的话,感觉也会让使用者感觉不舒服,因为还有其他的线路。。
不知道两位大佬 @zaxtyson @lozyue 有没有什么想法呢,期待+感谢~

HTTPS问题

我将此项目部署到了我的服务器上并配置了SSL证书开启了HTTPS
但该项目有些资源是http协议 会被blocked
麻烦修复谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.