{"id":13842720,"url":"https://github.com/maysrp/TALD","last_synced_at":"2025-07-11T15:32:56.065Z","repository":{"id":67971701,"uuid":"82443129","full_name":"maysrp/TALD","owner":"maysrp","description":"使用Aria2作为后端 通过视频来 采集视频作为自己的视频网站:ThinkPHP Aria2 Libav Dplayer","archived":false,"fork":false,"pushed_at":"2017-04-28T06:56:29.000Z","size":1614,"stargazers_count":72,"open_issues_count":1,"forks_count":25,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-05T17:33:05.393Z","etag":null,"topics":["aria2","gather"],"latest_commit_sha":null,"homepage":"http://nyanya.tv","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maysrp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-02-19T07:37:02.000Z","updated_at":"2023-02-21T08:39:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"50c2ed53-bf6f-46b2-8e37-7c7b225bb0e6","html_url":"https://github.com/maysrp/TALD","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maysrp%2FTALD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maysrp%2FTALD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maysrp%2FTALD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maysrp%2FTALD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maysrp","download_url":"https://codeload.github.com/maysrp/TALD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225737060,"owners_count":17516279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aria2","gather"],"created_at":"2024-08-04T17:01:44.349Z","updated_at":"2024-11-21T13:31:01.816Z","avatar_url":"https://github.com/maysrp.png","language":"PHP","funding_links":[],"categories":["PHP","PHP (184)"],"sub_categories":[],"readme":"## TALD\n\n###环境\n* Linux\n* PHP \u003e5.3 PHP\u003c=5.6 [PHP 请在php.ini中开启scandir exec函数]\n* Mysql\n* Aria2 \n* Livav 视频截图 [若使用FFMPEG请将OndoAction.class.php 中的 avconv 换成 ffmpeg]\n* Apache [Nginx请配置 pathinfo ]\n\n\n\n###定时进程\n\n#### 定时进程详请\n\n/Index/Lib/Action/OndoAction.class.php\n\nOndo下面公共方法\n\n* spider 采集\n* curl 获取下载状况\n* curl_video 更新发布视频\n* curl_image 获取截图\n* union 联合上面全部 [需要耗时较多，PHP建议运行时间调到600s]\n\n\n#### 定时进程配置\n```\ncrontab -e\n```\n\n```\t    \n*/10 * * * * curl http://your_domain/index.php/Ondo/spider\n*/10 * * * * curl http://your_domain/index.php/Ondo/curl\n*/10 * * * * curl http://your_domain/index.php/Ondo/curl_video\n*/10 * * * * curl http://your_domain/index.php/Ondo/curl_image\n```\t    \n\n或者简易版本\n\n```\n*/10 * * * * curl http://your_domain/index.php/Ondo/union\n```\n\n\n### 权限\n需要777权限的文件夹\n* /image\n* /video #若选择NEW，则不需要该文件夹。[OndoAction.class.php 里面 111行 和112行 选择其中一种，不要的那个注释掉,默认为old]\n* /download #若选择NEW，则该文件夹下文件权限必须可写[默认则不需要]\n* /Index/Runtime\n\n### 数据库\n/Index/Conf/config.php\n\ndanmu.sql 导入你的数据库中\n\n###后台\n\n\nhttp://your_domain/index.php/Admin/login\n\n后台文件 /Index/Lib/Action/AdminAction.class.php\n\n\n默认: admin 233\n#### 界面以及功能\n![back.png](http://bilibara.com/images/2017/02/21/back.png)\n\n可以加载全部视频对其删除管理\n\n\n![back_guizhe.png](http://bilibara.com/images/2017/02/21/back_guizhe.png)\n\n可以添加采集中的规则，每个规则可以匹配多个关键词，关键词间请用空格风格开。\n\n\n![back_a.png](http://bilibara.com/images/2017/02/21/back_a.png)\nAria2后台，可以自行添加下载地址[人工添加不会触发规则请放心加入]，后台下载完成后会自动检索出MP4视频文件发布。\n\n#### 验证登入\n\n密码 :: JavaScript md5() -\u003e服务器上 PHP::md5(md5($pass).$salt)\n\n#### 管理视频\n\n进入后台 管理视频时候请注意了 如果采用old 方法时删除视频不带删除 源视频，即/download下的视频将会保持。\n\n### 采集\n/Index/Lib/Action/OndoAction.class.php -放弃吧少年-\n\n采集本次中并未列出，需要大家自己添加,\n\nsxp()中可以使用PHPQuery分析网页，取出其中的下载信息$info，也可以用其他程序导入数据。[请自行设计]\n$info中只要提交3个值\n* $info['type']: 类型 取自你采集的页面中，用于初步判断，如果你采集的页面没有的话请将133行改中if判断改成true。\n* $info['magnet']: 下载地址\n* $info['name']: 下载文件名\n递交给 auto_download($info) 即可下载 。\n\nspider() 用于调用sxp();[通过时间触发]\n\n### 评论 \n\n可以使用多说 有言 等评论模块\n\n/Index/Tpl/Public/comm.html    每个视频下显示评论\n\n/Index/Tpl/Public/duo_top.html   首先显示最新评论[仅800分辨率以上的设备显示]\n\n\n### 播放器\n\n运用[Dplayer](https://github.com/DIYgod/DPlayer)，可以弹幕可以截图等非常强大。\n\n请点击[Dplayer](https://github.com/DIYgod/DPlayer)查看相关搭建文档\n## 感谢\n[Thinkphp 3.1.3](http://www.thinkphp.cn/) \n[Php-aria2](https://github.com/shiny/php-aria2)\n[Dplayer](https://github.com/DIYgod/DPlayer)\n[PHPQuery](https://github.com/TobiaszCudnik/phpquery)\n\n\n==== 未完待续 ====\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaysrp%2FTALD","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaysrp%2FTALD","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaysrp%2FTALD/lists"}