Skip to content

Automatically generate description based on resource links from douban,imdb,et al.

License

Notifications You must be signed in to change notification settings

wyl219/pt-gen-cfworker

 
 

Repository files navigation

PT-Gen on Cloudflare Worker

FOSSA Status Build Status

基于 BFDZ/Pt-Gen v0.4.7 改写, 使之可以直接在Cloudflare Worker上使用。

如果你没有构造环境,请直接复制使用 build分支 下的 script.js 文件。

否则请参照 .Travis.yml 文件构造方法,直接使用wrangler搭建Cloudflare-Worker。

本项目请求方法

API Point:

资源搜索 请求字段:

  • search: 搜索字符串
  • source: 见下表 资源来源站点,不填时默认为 douban

简介生成 请求字段(方法1,推荐):

  • url:见下表 链接格式(Regexp)

简介生成 请求字段(方法2):

  • site: 见下表 资源来源站点
  • sid: 资源在对应站点的唯一id

支持资源链接

资源来源站点 搜索支持 链接格式(Regexp)
douban /(?:https?:\/\/)?(?:(?:movie|www)\.)?douban\.com\/(?:subject|movie)\/(\d+)\/?/
imdb /(?:https?:\/\/)?(?:www\.)?imdb\.com\/title\/(tt\d+)\/?/
bangumi /(?:https?:\/\/)?(?:bgm\.tv|bangumi\.tv|chii\.in)\/subject\/(\d+)\/?/
steam × /(?:https?:\/\/)?(?:store\.)?steam(?:powered|community)\.com\/app\/(\d+)\/?/
indienova × /(?:https?:\/\/)?indienova\.com\/game\/(\S+)/
epic × /(?:https?:\/\/)?www\.epicgames\.com\/store\/[a-zA-Z-]+\/product\/(\S+)\/\S?/

License

FOSSA Status

About

Automatically generate description based on resource links from douban,imdb,et al.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.0%
  • HTML 43.0%