群晖 Video Station 刮削器(TMDB)修改

测试连接失败

DNS 污染导致域名解析有问题,写 Hosts 可破

1
2
3
4
5
6
vim /etc/hosts

// 我只加了这两条,可以依据自身网络状况继续添加

54.230.62.121 api.themoviedb.org
13.266.238.82 api.themoviedb.org

搜索不到涩涩内容

尽管已经在账户设置中开启搜索结果中包含成人内容,但那只影响页面搜索

Video Staion 使用的 API 中并未实现

所以我们修改源码

1
2
3
4
5
6
7
8
9
vim /var/packages/VideoStation/target/plugins/syno_themoviedb/util_themoviedb.py

# _get_movie_search_data 中添加 include_adult=true 影响电影的搜索

url = constant.THEMOVIEDB_URL + 'search/movie?include_adult=true&api_key=' + api_key + '&query=' + nameEncode + '& language=' + \

# _get_tv_search_data 中添加 include_adult=true 影响剧集的搜索

url = constant.THEMOVIEDB_URL + "search/tv?include_adult=true&api_key=" + api_key + '&query=' + \

好耶!涩涩!

https://api.themoviedb.org/3/search/tv?api_key=xxx&query=Shoujo%20Sect&include_adult=true

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"page": 1,
"results": [
{
"backdrop_path": "/9EWPzs6KSgZwOvWD8plkcWQjeh0.jpg",
"first_air_date": "2008-07-25",
"genre_ids": [
16
],
"id": 45473,
"name": "Shoujo Sect: Innocent Lovers",
"origin_country": [
"JP"
],
"original_language": "ja",
"original_name": "少女セクト ~Innocent Lovers~",
"overview": "Handa Shinobu and Naitou Momoko have known each other since childhood. Shinobu fell in love with Momoko from the day they first met. Now in high school, Momoko has forgotten about the past, but Shinobu has not. Both follow their own paths but Shinbobu still hopes for Momoko to remember the promise they made long ago.",
"popularity": 4.103,
"poster_path": "/jGpFhasLjo75ZjNrg1OAGs31UEP.jpg",
"vote_average": 7,
"vote_count": 1
}
],
"total_pages": 1,
"total_results": 1
}