Jump to content

Kodi/Xbmc frodo 12 on QNAP HD-Station and XBMB3C addons


youl94

Recommended Posts

HI,

 

I tried to make work the XBMC3C addons on a QNAP x69.

On this QNAP machine, i can't upgrade 'Xbmc 12.3 Frodo' to Kodi 14 due a limitation of the chipset...

 

so,

 

I have get  "Confluence frodo Skin" here https://github.com/faush01/XBMC.Confluence.XBMB3C.Frodo

Ihave installed Mediabrowser repository and installed video extension..

 

XBMC get V.0.9.770

 

I have configured it, restarting xbmc..

 

At this point everything is ok...

 

Now i'm connected to my MB3 server Version 3.0.5518.3, and i see my files with fanart, ... year :)

 

BUT !

 

When i start a movies, i have script error :

15:15:54 T:139891354617600  NOTICE: ===== XBMB3C START =====
15:15:54 T:139891354617600  NOTICE: XBMB3C -> running Python: sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
15:15:54 T:139891354617600  NOTICE: XBMB3C -> running XBMB3C: 0.9.770
15:15:54 T:139891354617600  NOTICE: 12.3 Git:20131212-9ed3e58
15:15:54 T:139891354617600  NOTICE: XBMB3C -> Platform: Linux/RPi
15:15:54 T:139891354617600  NOTICE: XBMB3C -> LogLevel:  0
15:15:54 T:139891354617600   DEBUG: LocalizeStrings: no translation available in currently set gui language, at path /root/.xbmc/addons/plugin.video.xbmb3c/resources/language/French
15:15:54 T:139891354617600   DEBUG: LocalizeStrings: no strings.po file exist at /root/.xbmc/addons/plugin.video.xbmb3c/resources/language/English, fallback to strings.xml
15:15:54 T:139891354617600   DEBUG: JSONRPC: Incoming request: { "jsonrpc": "2.0", "method": "Application.GetProperties", "params": {"properties": ["version", "name"]}, "id": 1 }
15:15:54 T:139891354617600   DEBUG: JSONRPC: Calling application.getproperties
15:15:54 T:139891354617600  NOTICE: XBMB3C 0 -> Version : 12.3 - {u'major': 12, u'tag': u'stable', u'minor': 3, u'revision': u'20131212-9ed3e58'}
15:15:54 T:139891354617600  NOTICE: XBMB3C 1 -> XBMB3C Connection Manager Called
15:15:54 T:139891354617600  NOTICE: XBMB3C 1 -> XBMB3C server already set
15:15:54 T:139891354617600  NOTICE: PLAY ACTION URL PARTS : ['MYIP:8096', 'ac50fed8dc5beedae41f184a707b121c']
15:15:54 T:139891354617600   DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
15:15:54 T:139891354617600   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
15:15:55 T:139891354617600  NOTICE: XBMB3C getPlayUrl
15:15:55 T:139891354617600  NOTICE: XBMB3C isNetworkQualitySufficient -> TRUE bit rate
15:15:55 T:139891354617600  NOTICE: XBMB3C getPlayUrl -> Direct Play
15:15:55 T:139891354617600   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: 'xbmcgui.ListItem' object has no attribute 'setArt'
                                            Traceback (most recent call last):
                                              File "/root/.xbmc/addons/plugin.video.xbmb3c/default.py", line 39, in <module>
                                                MainModule.MainEntryPoint()
                                              File "/root/.xbmc/addons/plugin.video.xbmb3c/resources/lib/MainModule.py", line 1659, in MainEntryPoint
                                                PLAY(param_url, pluginhandle)
                                              File "/root/.xbmc/addons/plugin.video.xbmb3c/resources/lib/MainModule.py", line 759, in PLAY
                                                setListItemProps(server, id, listItem, result)
                                              File "/root/.xbmc/addons/plugin.video.xbmb3c/resources/lib/MainModule.py", line 967, in setListItemProps
                                                setArt(listItem,'poster', downloadUtils.getArtwork(result, "Primary"))
                                              File "/root/.xbmc/addons/plugin.video.xbmb3c/resources/lib/MainModule.py", line 1181, in setArt
                                                list.setArt({name:path})
                                            AttributeError: 'xbmcgui.ListItem' object has no attribute 'setArt'
                                            -->End of Python script error report<--
15:15:55 T:139891354617600 WARNING: The python script "/root/.xbmc/addons/plugin.video.xbmb3c/default.py" has left several classes in memory that we couldn't clean up. The classes include: Addon
15:15:55 T:139891354617600    INFO: Python script stopped
15:15:55 T:139891354617600   DEBUG: Thread XBPyThread 139891354617600 terminating
15:15:55 T:139893588571968   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
15:15:55 T:139893588571968   ERROR: XBMC.PlayMedia could not play media: plugin://plugin.video.xbmb3c/?url=MYIP:8096,;ac50fed8dc5beedae41f184a707b121c&mode=12
15:15:55 T:139893588571968   DEBUG: waiting for python thread 13 (/root/.xbmc/addons/plugin.video.xbmb3c/default.py) to stop
15:15:55 T:139893588571968   DEBUG: python thread 13 (/root/.xbmc/addons/plugin.video.xbmb3c/default.py) destructed
15:15:55 T:139891908273920  NOTICE: ThemeThread playback complete restarting thread



I have remplace ip by MYIP in this logfile.

 

So i have check MainModule.py

 

Orignal code : ligne 1181

def setArt (list,name,path):
    if name=='thumb' or name=='fanart_image' or name=='small_poster' or name=='tiny_poster'  or name == "medium_landscape" or name=='medium_poster' or name=='small_fanartimage' or name=='medium_fanartimage' or name=='fanart_noindicators':
        list.setProperty(name, path)
    else:#elif xbmcVersionNum >= 13:
        list.setArt({name:path})
    return list

I don't know how to resolve this ! May be someone can help ?

 

I have tried older version of XBMB3C addons, like 0.9.0 and 0.9.5, but no success to.

Link to comment
Share on other sites

im85288

Is it possible for you to get a Gotham version of XBMC installed? The problem is the list.setArt method is only compatible with Gotham onwards.

 

Alternatively, you could try changing the part where it says list.setArt to list.setProperty(name,path) as in the line above...but you will not get as much artwork as expected.

Link to comment
Share on other sites

Thanx man,

 

i understand now, i don't think Gotham is ready for QNAP TS-x69 machine, this dev team work only on new machine TS-x70 and >

may be later..

 

i will try second solution, thanx again.

Link to comment
Share on other sites

Well done!

 

I have replace all listArt by list.setProperty(name,path)

And in 'List.py' i have insert this :

if extraData.get('id') !=None:

At lin 1559, just before :

list.setProperty('id', extraData.get('id'))

And it work !

So i can't acces in view list, but i can append or see newer media.. it is suffisant for my use :) on my Qnap 469 ^^

 

Thanx again man !

Link to comment
Share on other sites

FYI

 

Today, i have take the time to correct py files for my configuration :

 

I use Xbmc 12.3 on Qnap TS-469 Pro, my tweak is based on XBMB3C v0.9.770 and MB3 server Version 3.0.5518.3

 

You need replace 3 files in this directory :

/share/MD0_DATA/.qpkg/HD_Station/share/MD0_DATA/.qpkg/XBMC/root/.xbmc/addons/plugin.video.xbmb3c/resources/lib/

I have modified :

 

List.py

MainModule.py

PersonInfo.py

 

And now this addon ROX on my Xbmc FRODO :D, execpt to list 3DVideo.. but i haven't 3D TV ^^, so..

 

 

I can't post file in this forum.. check next 3 post to copy/past

 

edit : i found how attached files ;) just rename it before replace..

List.py.rename.txt

MainModule.remane.txt

PersonInfo.py.rename.txt

Edited by youl94
Link to comment
Share on other sites

Angelblue05

@@youl94

 

Lord jeebus! Can you edit your posts? It's really not good to post the entire file code directly in your post. It makes scrolling difficult. Instead, you can attach modified files. Thank you! ^_^  

Edited by Angelblue05
  • Like 1
Link to comment
Share on other sites

im85288

Also please base your changes on the latest from github if you would like them included as quite a lot has changed since the version in the stable repo. The best approach here would be to fork the repo and submit pull requests.

 

In case your not aware of the repo location it is here: https://github.com/MediaBrowser/MediaBrowser.Kodi

 

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...