xhboke / douban

基于thinkphp5.1的豆瓣电影API
https://api.xhboke.com/doc/movie/
MIT License
116 stars 21 forks source link

ChineseName 电影的可以了 电视剧的还是不行 #7

Closed iowong closed 3 years ago

iowong commented 3 years ago

微信截图_20210702184220

id=35231321

xhboke commented 3 years ago

直接从标题获取中文名称。 $this->ChineseName = trim(str_replace(array("\n", "\r","(豆瓣)"), "", $this->preg('#<title>([\s\S]*?)<\/title>#', $this->data, 1)[0]));