Boycott Douban Database
自建娱乐资源备忘录
by lifishake · github.com/lifishake/wp-boycott-douban-db · website
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/lifishake/wp-boycott-douban-db/archive/refs/heads/main.zipDeclares an update source (https://github.com/lifishake/wp-boycott-douban-db), so updates arrive through the plugin's own updater.
From the readme
wp-boycott-douban-db
在Wordpress本地保存书籍、电影、游戏、音乐专辑信息,并以单幅或列表的形式展示出来。
Tags: infinite scroll, ajax, book, movie, game, album, personal collection, douban, imdb
Requires at least: 4.4
Requires PHP: 5.6
Tested up to: 4.10
Stable tag: 4.9.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
功能
后台保存电影、书籍、游戏、唱片信息
插入到文章中显示
后台半自动从豆瓣、imdb等网站抓取必要的信息。
自建页面以图片墙的形式显示保存的资源
在文章中插入娱乐信息
在文章或页面中插入如下短代码:
[bddbr id='444' /]
在主题中加入信息墙页面
在主题中创建页面模板
修改页面模板,在适当的位置调用如下代码:
bddbthegallery('book'); //book, movie, game, album
使用模板创建空页面(page)
抓取信息
后台“外部链接”输入豆瓣页面后,点击后面的按钮,可以从豆瓣网抓取对应的内容(不包括游戏)直接填入。海报图片不会自动抓取,需要在“图片链接”处再点击一次取得。
电影信息支持通过omdb的API抓取imdb信息,用以对付一些豆瓣没有的条目。该API Key可以去omdbapi官网 申请。后台填入后即可使用。
书籍信息项目
注: 数字字符串表示显示顺序或者查询时排序顺序,▲表示默认未加但支持手动配置修改,⚪表示默认显示到固定位置,×表示不建议改动。下同。
| 意义 | 字段名 | 字段类型 | 列表排序 | 排序方法 | 列表详情位置 | 单幅位置 | 特殊处理 |
|:-----:|:--------------- |:---------:|:----:|:----:|:------:|:----:|:-----------------------:|
| 书名 | displayname | 字符串 | 10 | ASC | ⚪ | ⚪ | - |
| 原名 | originalname | 字符串 | ▲ | - | 01 | 01 | 与书名不同时显示 |
| 别名
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v0.4.2 | May 23, 2022 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.