Giter Site home page Giter Site logo

xbmc-addons-chinese's Introduction

项目介绍 Introduction

本项目管理针对中文用户的Kodi插件库。This project is an repository for open source Addon scripts, plugins, and skins for Kodi Media Center. Specially for Chinese Language speaking people.

使用帮助 How To Use

安装插件库 Install Repository

安装本插件库,按照使用的Kodi版本下载相应zip安装包 To install the repository, you need to download the latest repository zip file

然后 And then:

  • 进入Kodi系统 Launch Kodi
  • 选择 系统-设置-插件 Navigate to System | Settings | Add-ons
  • 选择 从zip文件安装 Select Install from zip file
  • 浏览目录找到刚下载的zip安装包 Browse to the directory where the new downloaded zip file is being stored.
  • 选择 确定 Select OK

Kodi的中文显示设置步骤如下 For proper Chinese text display on Kodi, do the following steps:

  • 进入Kodi系统 Launch Kodi
  • 进入 系统-设置-外观-皮肤 Navigate to System | Settings | Appearance | skin
  • 设置皮肤字体为“基于Arial” Change skin-font to "Arial based"

安装插件 Install Add-ons

  • 点击 从库安装 Click Get Add-ons
  • 选择中文插件库 Select Chinese Add-ons Repository
  • 选择你要安装的插件 Select the appropriate Add-ons from the display categories
  • 点击安装插件 Click to install the Add-on

更新插件 Update Add-ons

  • 进入Kodi系统 Launch Kodi
  • 选择 系统-设置-系统 Navigate to System | Settings | System
  • 选择 插件 设置[未知来源]: 开启 Select Add-ons | [Unknown source]: enable
  • 选择 插件 设置[更新官方插件于]: 任何库 Select Add-ons | [- Update official add-ons form]: Any repositories
  • 选择 插件 设置[自动安装更新]:自动安装更新 | Select Add-ons | [updates]: Install update automatically

手动安装插件 Plugins Manual Installation

  • 本项目所有中文插件的安装包保存在repo子目录下。Official releases of all the Chinese plugins can be found in the ./repo sub-directories.

如果你想手动下载而不是通过插件库安装单个插件,可以从repo子目录中找到相应zip安装包,下载并从zip文件安装插件。If for reasons that you need to manually install a specific plugin, you can download the required zip file from the corresponding ./repo sub-directory. Then follow the ** Install Repository ** steps described above to install the zip plugin.

插件功能 Features

视频插件 Video Add-ons

  • 哆啦搜索 - plugin.video.duolasousuo - 哆啦搜索视频插件(new)
  • 韩剧视频 - plugin.video.hanju - 韩剧视频Kodi插件

音乐插件 Music Add-ons

程序插件 Program Add-ons

字幕插件 Subtitle Add-ons

  • assrt.net - service.subtitles.assrt - Search and download subtitles from assrt.net
  • Shooter - service.subtitles.shooter - Shooter subtitle service
  • zimuku - service.subtitles.zimuku - Search and download subtitles from zimuku.la
  • zimuzu - service.subtitles.zimuzu - Search and download subtitles from zimuzu.tv

xbmc-addons-chinese's People

Contributors

frzmtrsprt avatar ileodo avatar malimaliao avatar taxigps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xbmc-addons-chinese's Issues

kodi14 crash by chinese keyboard

archlinux上kodi 14.0,使用ChineseKeyboard.Keyboard可以打字,但点击完成,开始搜索时出现段错误:

12:38:37 T:139652450125568 ERROR: EXCEPTION: Non-Existent Control 310
12:38:37 T:139652450125568 ERROR: EXCEPTION: Non-Existent Control 48

使用xbmc.Keyboard就没有问题。

导致letv等都无法搜索。1ting我设置成了可选依赖,才可以搜索。

LeTV Script Failed

There is Script failed on the LeTV plugin. Here is the error from the log.
17:31:23 T:38112 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "C:\Users\mix\AppData\Roaming\Kodi\addons\plugin.video.letv\default.py", line 1068, in
progListMovie(name, url, cat, filtrs, page, listpage)
File "C:\Users\mix\AppData\Roaming\Kodi\addons\plugin.video.letv\default.py", line 326, in progListMovie
p_dx = int(vlist[i]['duration'])
ValueError: invalid literal for int() with base 10: ''
-->End of Python script error report<--
17:31:23 T:38248 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.letv/?cat=%e5%85%a8%e9%83%a8&filtrs=%26o%3d9&listpage&mode=1&name=%e7%94%b5%e5%bd%b1&page=1&url=http%3a%2f%2flist.letv.com%2flistn%2fc1_t-1_a-1_y-1_s1_lg-1_ph-1_md_o9_d1_p.html
17:31:23 T:38248 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.letv/?cat=%e5%85%a8%e9%83%a8&filtrs=%26o%3d9&listpage&mode=1&name=%e7%94%b5%e5%bd%b1&page=1&url=http%3a%2f%2flist.letv.com%2flistn%2fc1_t-1_a-1_y-1_s1_lg-1_ph-1_md_o9_d1_p.html) failed

doubantv 刮削器无法获取图片

使用了doubantv刮削器可以成功找到剧集,不过无法获取图片,同时下载的图片的也无法在更改海报一栏更改,没有内容。

乐视已经挂了

乐视插件用的是flvcd解析,flvcd已经挂了,所以乐视也挂了

kodi有新特性吗?

kodi14已经进archlinux的软件库了。
我们要区分xbmc13和kodi14吗?
加新特性前搞个xbmc的分支?master留给kodi?

Get some error While using SUBHD

The first time I use sub hd everything seem correct, download extract zip got the sub I wanted. But after that I cannot open any other subs. When I try to download another subs using sub hd add-on, it will download, but always unzip the zip file which is the first time when I use this add-on. So whatever I do this add-on only open the first zip file. I try to reinstall this add on, not work.
The KODI is install on Android TV using Android 5.1

Play m3u8 directly for letv

测试了一下从 youtube-dl 得到的 letv 的 m3u8 文件,kodi 15.2 可以作为一个视频无缝播放,不需要手动合并视频。

script.module.keyboard.chinese 错误

我使用xbmc13.2百度云插件进行账户添加时后台显示错误,请帮忙解决。
环境,ubuntu 14.04,xbmc 13.2
日志信息:
23:50:00 T:139987762030336 NOTICE: Thread LanguageInvoker start, auto delete: false
23:50:00 T:139987762030336 NOTICE: -->Python Interpreter Initialized<--
23:50:00 T:139987762030336 NOTICE: [xbmcswift2] Request for "/add_user/" matches rule for function "add_user"
23:50:01 T:139988837767104 ERROR: file : XML file doesnt contain
23:50:01 T:139987762030336 ERROR: EXCEPTION: Non-Existent Control 48
23:50:01 T:139987762030336 ERROR: EXCEPTION: Non-Existent Control 309
23:50:01 T:139987762030336 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: Non-Existent Control 309
Traceback (most recent call last):
File "/home/cc/.xbmc/addons/script.module.keyboard.chinese/lib/ChineseKeyboard.py", line 108, in onInit
self.getControl(CTL_BUTTON_LAYOUT).setLabel("")
RuntimeError: Non-Existent Control 309
-->End of Python script error report<--

繁體中文電視劇和電影的資料

請問這個有繁體中文電視劇和電影的資料嗎?

能否把它提升到像你之前做的Shooter字幕插件一樣能夠設定自動將顯示字幕自動轉換成繁體中文?

如果不行的話有沒有能夠在windows系統裡以下這改變android字體的方法把簡體字在windows內全改為繁體中文? 謝謝!

DroidSansFallback 簡轉繁 完整字型 修正檔V.05.3

http://www.mobile01.com/topicdetail.php?f=566&t=2266568

檔案下載 http://www.mediafire.com/download/1z89ltik401os6q/DroidSansFallback_V.05.3.zip

更換字型前注意事項:

若你已取得root權限.
若手機有s-on保護. 則需要作s-off,才能使用root explorer替換字體.
若手機有s-on保護. 有安裝clockworkmod recovery,沒作s-off,可以使用刷機方式.將字體刷入替換.

若你要更改的是中文字體的話.建議你使用root explorer 這個app來進行更換.
網路上可以找到的相關文章也比較多...

  1. 使用此軟體更換前.建議你必需將你舊有要替換的字型備份.以防你想要換回來...
    若沒備份到的話.. 可以到下面網站下載 android手機字型..
    https://github.com/grays/droid-fonts/tree/master/droid

2.使用root explorer,要覆蓋你的/system/fonts前
請先檢查你的剩餘空間 夠不夠你覆蓋新的字型
進入手機system/fonts 目錄,在最上方會寫xxx mb used,xxx mb free,
檢查看free 大小,是否有超過你將要放入字型的大小?
如圖 紅框處

ps.放不下可以參考
另篇文章: 換字型.空間不足.解決方案...

3.字型檔案置換好後.檢查檔案大小.是否為置換後的大小.
有時因為從電腦將字型復製到手機sdcard內.太早將sdcard從電腦移除.造成資料沒完全寫入sdcard內
然後你再從不完整的字型檔案.複制到手機內.造成字型都是口口口口的狀況.

4.更改該字型的權限為644.. 三讀一寫 如圖

5.網上爬文看看自己要更改的手機型號,有沒有什麼特殊字型檔案名稱等等.
像在/system/fonts裡面 有無以下字型
MHeiC-Medium-Big5HKSCS.ttf(moto 系列手機 內含-標準繁體字型)
MHeiMedium18030C.ttf (moto 系列手機 內含-標準簡體字型)
MTLmr3m.ttf (CM7 nightly 版本內含 部份簡繁字型)
DroidSansJapanese.ttf (CM7 nightly 版本內含 部份簡繁字型)
gcsh00d-hkscs.ttf (DHD Runny v6.0 Rom 版本內含 部份簡繁字型)
ucsh00d_c.ttf (DHD Runny v6.0 Rom 版本內含 部份簡繁字型)
手機內有這些字型存在時,
讀取中文字型的時會去優先抓這幾個檔案.有字在內就會從中輸出..若沒的話
才會去抓取DroidSansFallback.ttf字型的字來使用...
若有的話,置入好簡轉繁字型後..
請先將以上所列的字型 先行備份..再將其從/system/fonts/刪除

權限設定好後.手機重新開機再試用.簡轉繁才會生效..

此補丁不會造成
像是 游泳的"游" 變成遊..
注音的一變成 l, 注音的"尸"變成 屍...倉頡的尸 變成屍..等等

更不會有如 "鹹"豐皇帝 "誇"父追日 這樣怪異的狀況發生...:)

[CNTV-LIVE] Several channels not working

hi there,

Several channels (e.g. cctv5) won't work with "unknown error". Cctv1 works fine though.. I'm using it in Australia.
Logs are provided below. Would you please kindly have a check? Thanks in advance :)

12:08:28 3503.885254 T:1958146608 DEBUG: RunScriptWithParams - calling plugin CNTV Live **网络电视台直播('plugin://plugin.video.cntv-live/','-1','?stream=cctv5')
12:08:28 3503.885742 T:1526117408 NOTICE: Thread LanguageInvoker start, auto delete: false
12:08:28 3503.885986 T:1526117408 INFO: initializing python engine.
12:08:28 3503.886230 T:1526117408 DEBUG: CPythonInvoker(104, /home/osmc/.kodi/addons/plugin.video.cntv-live/addon.py): start processing
12:08:28 3504.238525 T:1526117408 NOTICE: -->Python Interpreter Initialized<--
12:08:28 3504.238770 T:1526117408 DEBUG: CPythonInvoker(104, /home/osmc/.kodi/addons/plugin.video.cntv-live/addon.py): the source file to load is "/home/osmc/.kodi/addons/plugin.video.cntv-live/addon.py"
12:08:28 3504.239258 T:1526117408 DEBUG: CPythonInvoker(104, /home/osmc/.kodi/addons/plugin.video.cntv-live/addon.py): setting the Python path to /home/osmc/.kodi/addons/plugin.video.cntv-live:/usr/share/kodi/addons/script.module.simplejson/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0
12:08:28 3504.239502 T:1526117408 DEBUG: CPythonInvoker(104, /home/osmc/.kodi/addons/plugin.video.cntv-live/addon.py): entering source directory /home/osmc/.kodi/addons/plugin.video.cntv-live
12:08:28 3504.239502 T:1526117408 DEBUG: CPythonInvoker(104, /home/osmc/.kodi/addons/plugin.video.cntv-live/addon.py): instantiating addon using automatically obtained id of "plugin.video.cntv-live" dependent on version 2.1.0 of the xbmc.python api
12:08:29 3505.307129 T:1526117408 WARNING: Attempt to use invalid handle -1
12:08:29 3505.308350 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30000"
msgid "未知错误"
12:08:29 3505.308594 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30002"
msgid "暂不支持此频道播放"
12:08:29 3505.308594 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30003"
msgid "频道"
12:08:29 3505.308594 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30004"
msgid "视频质量 (kbps)"
12:08:29 3505.308838 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30005"
msgid "节目单"
12:08:29 3505.308838 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30006"
msgid "启用 IPTV 节目单"
12:08:29 3505.308838 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30007"
msgid "下载央视频道的节目单"
12:08:29 3505.309082 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30008"
msgid "下载卫视频道的节目单"
12:08:29 3505.309082 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30009"
msgid "**网络电视台直播"
12:08:29 3505.309082 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30010"
msgid "下载频道 information"
12:08:29 3505.309326 T:1526117408 ERROR: POParser: missing msgstr line in entry. Failed entry:
msgctxt "#30011"
msgid "试"
12:08:29 3505.309326 T:1526117408 DEBUG: POParser: loaded 0 strings from file /home/osmc/.kodi/addons/plugin.video.cntv-live/resources/language/Chinese (Simple)/strings.po
12:08:29 3505.310547 T:1526117408 DEBUG: POParser: loaded 11 strings from file /home/osmc/.kodi/addons/plugin.video.cntv-live/resources/language/English/strings.po
12:08:29 3505.310791 T:1526117408 DEBUG: DialogProgress::StartModal called
12:08:29 3505.311035 T:1526117408 DEBUG: ------ Window Init (DialogProgress.xml) ------
12:08:33 3508.940918 T:1526117408 NOTICE: Trying stream hls1
12:08:35 3511.163330 T:1526117408 NOTICE: Loading URL http://v.cctv.com/flash/live_back/nettv_dianpian/p.mp4
12:08:35 3511.165283 T:1526117408 NOTICE: Traceback (most recent call last):
File "/home/osmc/.kodi/addons/plugin.video.cntv-live/addon.py", line 123, in main
auth = urlparse.parse_qs(urlparse.urlparse(url)[4])["AUTH"][0]
KeyError: 'AUTH'

优酷视频插件,只能解析40分钟以下的视频

看日志,是以m3u8列表解析的,例如下面这个日志:

09:21:01 T:13060  NOTICE: DVDPlayer: Opening: http://pl.youku.com/playlist/m3u8?vid=233777711&ts=1437441661&ctype=12&token=9099&keyframe=1&sid=943744166239512584a36&ev=1&type=hd2&ep=eyaXHU2JV8gG5yDWjT8bYiTmJXQJXPwJ9RiChtVjAdQtSOG2&oip=3063342984

但这个m3u8文件只包含前40分钟的视频(或者顶多40分零几秒)。测试了其他电视剧和电影,超过40分钟的视频的长度都只会显示40分钟(或者40分零几秒),绝对不会出现41分钟以上的视频。

CNTV is not working

I am in Australia. The CNTV live used to work well, but it cannot find the stream now.
I am using Raspberry PI B with Kodi.

不知道在哪里说,想请教关于droidsansfallback和dejavu sans丢失'不'等字问题

看到您5年前的回复:
http://trac.kodi.tv/ticket/6397#comment:25
然后想问您最后怎么解决的,那个unicode的fallback哪里能看出区别来?
我和您脚本一样。现在找到的droidsans字体是从https://github.com/android/platform_frameworks_base/tree/master/data/fonts 下的fallback和fallbackfull。但是合并的是dejavu lgc sans (dejavu sans网站可以找到)。
结果两个做出来的都丢失那几个字。我是把dejavu sans所有的斜体,紧凑,粗体等都合并了。

想问问您的解决方式。我在github里的账号是uboats。是否方便给您的邮件地址?

乐视已经失效

本来就没几个好用的国内视频插件,乐视也失效了。很明显这几年除了视频网站加强防视频解析,网友也不大愿意做中文视频网站的插件了。热情逐渐消退。

Letv script error

Error occurred when run Letv. Here is the log. I can provide more information if you need. Thanks a lot.

hardware: nexus player
Platform: Android x86 32-bit, Kodi (14.0-BETA3 Git:2014-11-16-88a9a44-dirty)
letv 1.3.6

21:00:58 T:18446744073616400272 NOTICE: -->Python Interpreter Initialized<--
21:01:01 T:18446744073616094920 NOTICE: Thread BackgroundLoader start, auto delete: false
21:01:11 T:18446744073612775496 NOTICE: Previous line repeats 1 times.
21:01:11 T:18446744073612775496 ERROR: Unable to find plugin
21:01:11 T:18446744073602767760 ERROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://
21:01:11 T:18446744073602767760 ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed
21:01:11 T:18446744073621570768 NOTICE: Thread BackgroundLoader start, auto delete: false
21:01:14 T:18446744073602767760 NOTICE: Previous line repeats 1 times.
21:01:14 T:18446744073602767760 ERROR: static bool CCharsetConverter::CInnerConverter::customConvert(const string&, const string&, const INPUT&, OUTPUT&, bool) [with INPUT = std::basic_string; OUTPUT = std::basic_string; std::string = std::basic_string]: iconv_open() for "UTF8" -> "UTF-8" failed, errno = 22 (Invalid argument)
21:01:14 T:18446744073602767760 WARNING: bool CXBMCTinyXML::Parse(const string&, TiXmlEncoding): "UTF-8" charset was used instead of detected charset "UTF8" for file "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.letv/resources/settings.xml"
21:01:16 T:18446744073621478440 NOTICE: Thread LanguageInvoker start, auto delete: false
21:01:16 T:18446744073621478440 NOTICE: -->Python Interpreter Initialized<--
21:01:16 T:18446744073602767760 ERROR: Control 50 in window 10025 has been asked to focus, but it can't
21:01:16 T:18446744073621478440 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named ChineseKeyboard
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.letv/default.py", line 5, in
import ChineseKeyboard
ImportError: No module named ChineseKeyboard
-->End of Python script error report<--
21:01:16 T:18446744073602767760 ERROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://plugin.video.letv/
21:01:16 T:18446744073602767760 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.letv/) failed

整合搜索/播放地址查询功能

我看到说明中有中文,应该不会是外国人,所以我就用中文简单介绍一下我的目的。

我原本想自己做一个可以聚合搜索的播放插件,实事求是的说,我认为现在网上能找到的播放中文视频源的插件,都不太好(主要在于时效性上)。于是我希望自己可以做一个,但是XBMC相关的资料,即使是官方网站http://kodi.tv的说明,我认为不是很详细,导致我自己开发XBMC的插件进展缓慢,加之我本身对python并不熟悉。所以我想找现有的项目,请求合并我提供的数据源(稍后会有介绍)。我目前提供的功能有按分类/关键字搜索视频资源,并提供相应的播放地址。因此,希望此项目的作者可以对我的数据源做相关适配。接下来是我现在已完成的相关接口说明:(聚合搜索暂时没有找到比较通用的方法,因此暂时只支持iqiyi,返回的数据格式也没有进行封装,而视频解析目前支持iqiyi/youku/letv。)(以下提及内容花括号内容需要进行替换,测试基地址为http://disk-ss-1-gam2046.tenxapp.com/,保留两天,过期没有反馈我就撤销这个地址,还是我自己去做插件了)

分类检索

  • GET /list -> 获得支持的网站列表
[
  {
    "name": "爱奇艺视频",
    "site": "iqiyi.json"
  },
  {
    "name": "优酷视频",
    "site": "youku.json"
  }
]
  • GET /list?site={iqiyi.json}&name={main} -> 获得该网站的分类列表
{
  "name": "main",
  "must": true,
  "description": "第一级分类 -> 类型",
  "list": [
    [
      "娱乐", // <- 分类名称
      "locals" // <- 子分类name
    ],
    [
      "风云榜",
      "locals"
    ]
  ]
}
  • 其中list就是该网站的分类,继续GET /list?site={iqiyi.json}&name={locals}取得二级分类,以此类推。直到返回值为ended,代表这是最后一级分类,不再有子分类。
  • 选择完全部分类后,GET /search?name={iqiyi.json}main={娱乐}&locals={内地}&types={全部}&page={page}&subItem=ended

其中page为查询的页数,可用于翻页,每页20条记录,返回结果为目标网站的元数据格式,没有做转换。

关键字检索

  • 第一步与分类检索一致,获得支持的网站,然后将name用于后续的搜索
  • GET /search?name={iqiyi.json}&s={搜索的关键字}&page={page}返回目标网站原生数据结构

获得视频播放地址(以iqiyi为例)

  • GET /query?site={iqiyi.json}&url={http:///}其中site为检索中第一步获得的name属性,url为目标播放地址,例如http://www.iqiyi.com/v_19rrl59sqw.html,返回结果为固定格式,如下:
[
  {
    "extractor": "iqiyi",
    "fulltitle": "国务院:超生人员等黑户将可正常落户",
    "id": "624a1ac390b6ae0caa4318004cadc48b_part1",
    "playlist": "国务院:超生人员等黑户将可正常落户",
    "title": "国务院:超生人员等黑户将可正常落户",
    "_filename": "国务院:超生人员等黑户将可正常落户-624a1ac390b6ae0caa4318004cadc48b_part1.f4v",
    "playlist_index": 1,
    "playlist_id": "624a1ac390b6ae0caa4318004cadc48b",
    "filesize": 18966760,
    "webpage_url_basename": "v_19rrl59sqw.html",
    "display_id": "624a1ac390b6ae0caa4318004cadc48b_part1",
    "format": "h5 - unknown",
    "requested_subtitles": null,
    "preference": 2,
    "format_id": "h5",
    "playlist_title": "国务院:超生人员等黑户将可正常落户",
    "url": "http://218.205.82.146/videos/v0/20160114/38/a1/2f346d01ae91dffd88fbef2bd3d00d72.f4v?key=02e791bf1d2f9c43d2bd9ce043c22989f&src=iqiyi.com&tn=1452764732&qyid=7095833ad3e04e2b85c8cca9a3d4ca21&su=fcd533109b0c4d9fb1d35b5f905fd6f9&bt=&client=&z=&ct=&uuid=700b45b7-56976e40-a0",
    "extractor_key": "Iqiyi",
    "http_headers": {
      "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7",
      "Accept-Language": "en-us,en;q=0.5",
      "Accept-Encoding": "gzip, deflate",
      "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
      "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/20.0 (Chrome)"
    },
    "ext": "f4v",
    "webpage_url": "http://www.iqiyi.com/v_19rrl59sqw.html",
    "formats": [
      {
        "format": "h6 - unknown",
        "url": "http://218.205.82.133/videos/v0/20160114/7d/b4/65ad26745aa8a3c0959f0017f3095afa.f4v?key=0d4a8dda31b7429912bd9ce043c22989f&src=iqiyi.com&tn=1452764732&qyid=080c85e437da4ea8a5b271eaf0b8cb54&su=fcd533109b0c4d9fb1d35b5f905fd6f9&bt=&client=&z=&ct=&uuid=700b45b7-56976e40-a0",
        "http_headers": {
          "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7",
          "Accept-Language": "en-us,en;q=0.5",
          "Accept-Encoding": "gzip, deflate",
          "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
          "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/20.0 (Chrome)"
        },
        "ext": "f4v",
        "filesize": 15063585,
        "format_id": "h6",
        "preference": 1
      },
      {
        "format": "h5 - unknown",
        "url": "http://218.205.82.146/videos/v0/20160114/38/a1/2f346d01ae91dffd88fbef2bd3d00d72.f4v?key=02e791bf1d2f9c43d2bd9ce043c22989f&src=iqiyi.com&tn=1452764732&qyid=7095833ad3e04e2b85c8cca9a3d4ca21&su=fcd533109b0c4d9fb1d35b5f905fd6f9&bt=&client=&z=&ct=&uuid=700b45b7-56976e40-a0",
        "http_headers": {
          "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7",
          "Accept-Language": "en-us,en;q=0.5",
          "Accept-Encoding": "gzip, deflate",
          "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
          "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/20.0 (Chrome)"
        },
        "ext": "f4v",
        "filesize": 18966760,
        "format_id": "h5",
        "preference": 2
      }
    ],
    "n_entries": 3
  },
  // .... 略,可能存在多个与之类似的段落
]

大部分内容我想应该不需要说明,其中可能存在多个这样的段落(json中表现为数组),每个段落代表一个分段,数量根据不同网站有所不同(不同网站分段规则不同)。

在每个段落内(即数组内每个元素),存在http_headers字段,指明请求视频的HTTP Headers,由于部分网站解析的视频地址与cookie绑定(例如优酷),建议将这个HTTP头带上。formats字段对应于一个数组,代表一个视频的不同清晰度,数组靠前(即下标越小,0为最清楚)的,清晰度越高。在外层提供的url字段默认是最高清晰度的。如果视频长度较大,分段数量会比较多,第一次(服务端我设计有缓存机制,一定时间内不会重复解析,加快响应速度)请求时会需要比较长的时间,客户端不要关闭socket连接(timeout)。

由于部分网站(如iqiyi)对解析出来的播放地址存在有效期,超过一定时效,该地址自动失效,可能需要再次请求上面的地址已获得新的播放地址(iqiyi似乎是10分钟)

以上所有请求如果处理正确均返回HTTP CODE 200,否则为其他状态码。另外接收数据的时候需要检查一个HTTP Headers,部分请求由于数据量较大会使用gzip。


期待作者的答复,感谢

YouKu TV causes Kodi to hang on playback

YouKu TV v1.6.2.
When selecting a movie to playback, it keeps showing "Waiting...." notification. Any key presses to get kodi to abort this mode has no effect. The only way to get out of this mode is to close kodi and restart.

最近更新的iqiyi插件也挂了

现在就剩下Youku插件能用了,但是优酷是分段视频,每段三分钟,用鼠标定位只能定位到当段视频的三分钟内,定位到其他的段就会跳回起点 蛋疼

[新手问题] 关于开发一个XBMC 插件的整个流程

我的开发环境是: Py Charm + Mac OS X

我是一个新手,对以下问题不是很明白:

  1. XBMC是一个C++编译好的库,只是对外暴露了python调用的接口?
  2. 我在引用 import xbmc, xbmcplugin, xbmcgui, xbmcaddon的时候, 会报模块不存在,那么不知道大家在本地是怎么调试的?是不是一定要部署到kodi平台上去运行才能调试?

请把酷我音乐盒加入插件库

linux下没有好用的在线音乐播放器,找来找去,只能回到xbmc的老路上,发现有酷我音乐盒插件,googlecode上的老库有这个插件,但是googlecode被墙,无法安装更新,github上的新库又没有这个插件,希望开发人员加入此插件

Chinese Keyboard 失效?

错误日志如下:

20:11:50 T:140632160974592 NOTICE: getHttpData: http://pv.sohu.com/suv/?t?=1438452710866725_1920_1080?r?=
20:12:11 T:140632160974592 NOTICE: Thread BackgroundLoader start, auto delete: false
20:12:22 T:140632588805888 NOTICE: Thread LanguageInvoker start, auto delete: false
20:12:22 T:140632588805888 NOTICE: -->Python Interpreter Initialized<--
20:12:22 T:140632588805888 ERROR: Exception
20:12:22 T:140632588805888 ERROR: TypeError
20:12:22 T:140632588805888 ERROR: :
20:12:22 T:140632588805888 ERROR: "'NoneType' object is not callable"
20:12:22 T:140632588805888 ERROR: in
20:12:22 T:140632588805888 ERROR: 'lxml.etree._ExceptionContext._store_raised'
20:12:22 T:140632588805888 ERROR: ignored
20:12:22 T:140632588805888 ERROR: Exception
20:12:22 T:140632588805888 ERROR: TypeError
20:12:22 T:140632588805888 ERROR: :
20:12:22 T:140632588805888 ERROR: "'NoneType' object is not callable"
20:12:22 T:140632588805888 ERROR: in
20:12:22 T:140632588805888 ERROR: 'lxml.etree._ExceptionContext._store_raised'
20:12:22 T:140632588805888 ERROR: ignored
20:12:22 T:140632588805888 ERROR: Exception
20:12:22 T:140632588805888 ERROR: TypeError
20:12:22 T:140632588805888 ERROR: :
20:12:22 T:140632588805888 ERROR: "'NoneType' object is not callable"
20:12:22 T:140632588805888 ERROR: in
20:12:22 T:140632588805888 ERROR: 'lxml.etree._ExceptionContext._store_raised'
20:12:22 T:140632588805888 ERROR: ignored
20:12:22 T:140632588805888 ERROR: Exception
20:12:22 T:140632588805888 ERROR: TypeError
20:12:22 T:140632588805888 ERROR: :
20:12:22 T:140632588805888 ERROR: "'NoneType' object is not callable"
20:12:22 T:140632588805888 ERROR: in
20:12:22 T:140632588805888 ERROR: 'lxml.etree._ExceptionContext._store_raised'
20:12:22 T:140632588805888 ERROR: ignored
20:12:24 T:140633791784896 ERROR: file : XML file doesnt contain
20:12:24 T:140632588805888 ERROR: EXCEPTION: Non-Existent Control 48
20:12:24 T:140632588805888 ERROR: EXCEPTION: Non-Existent Control 309
20:12:24 T:140632588805888 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: Non-Existent Control 309
Traceback (most recent call last):
File "/home/fan/.kodi/addons/script.module.keyboard.chinese/lib/ChineseKeyboard.py", line 108, in onInit
self.getControl(CTL_BUTTON_LAYOUT).setLabel("")
RuntimeError: Non-Existent Control 309
-->End of Python script error report<--

乐视,pps搜索功能无法使用

kodi 15.0
19:39:20 T:140626836154112 ERROR: 'lxml.etree._ExceptionContext._store_raised'
19:39:20 T:140626836154112 ERROR: ignored
19:39:20 T:140626836154112 ERROR: Exception
19:39:20 T:140626836154112 ERROR: TypeError
19:39:20 T:140626836154112 ERROR: :
19:39:20 T:140626836154112 ERROR: "'NoneType' object is not callable"
19:39:20 T:140626836154112 ERROR: in
19:39:20 T:140626836154112 ERROR: 'lxml.etree._ExceptionContext._store_raised'
19:39:20 T:140626836154112 ERROR: ignored
19:39:20 T:140626836154112 ERROR: Exception
19:39:20 T:140626836154112 ERROR: TypeError
19:39:20 T:140626836154112 ERROR: :
19:39:20 T:140626836154112 ERROR: "'NoneType' object is not callable"
19:39:20 T:140626836154112 ERROR: in
19:39:20 T:140626836154112 ERROR: 'lxml.etree._ExceptionContext._store_raised'
19:39:20 T:140626836154112 ERROR: ignored
19:39:20 T:140626836154112 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'NoneType' object has no attribute 'text'
Traceback (most recent call last):
File "/home/test/.kodi/addons/plugin.video.ppstream/default.py", line 1572, in
searchPPS()
File "/home/test/.kodi/addons/plugin.video.ppstream/default.py", line 782, in searchPPS
keyboard = Apps('','请输入搜索内容')
File "/home/test/.kodi/addons/script.module.keyboard.chinese/lib/ChineseKeyboard.py", line 402, in init
self.initWindowXML()
File "/home/test/.kodi/addons/script.module.keyboard.chinese/lib/ChineseKeyboard.py", line 448, in initWindowXML
px = int(it.posx.text)
AttributeError: 'NoneType' object has no attribute 'text'
-->End of Python script error report<--
19:39:20 T:140628190537664 ERROR: GetDirectory - Error getting plugin://plugin.video.ppstream/?mode=31
19:39:20 T:140628190537664 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.ppstream/?mode=31) failed
19:39:20 T:140626836154112 NOTICE: Thread LanguageInvoker start, auto delete: false

Chinese Keyboard失效导致大量插件无法安装

使用的OSMC 2015.06-1,系统有安装Python 2.7.9。Chinese Keyboard被表示为不兼容,显示“依耐性为找到。请联系插件作者”。然后导致大量的插件都不能安装,包括搜狐视频、B站、一听、酷我、以及所有的字幕插件、等等。

请教一下,mtime的刮削器接收poster不正常

用mtime的刮削器,很奇怪,有时候能显示电影的poster,有时候无法显示,不知道是什么原因。

PS:在新浪博客上提交留言始终失败,只能来这里提交了。

非常感谢!

automatically play next episode?

This is a common issue with Youku/Sina/Letv etc etc, that it does not jump to the next episode after the video is done.

I think there must be a setting somewhere, since this is a pretty basic feature right?

fusion not work

Looks like fusion is now fun.tv and all the elements structure has been changed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.