With XBMC knowing what we have watched and playback progress and being able to create queue lists ect
is their any way to create a plugin that will have XBMC update myanimelist when we have completed watching a file / import a show into a plan to watch que
MAL has an API for being able to change / read our profiles and search db for show details ect
I am just unsure why no ones even bothered trying this yet ?
http://myanimelist.net/modules.php?go=api#
http://mal-api.com/docs/
MasterCATZ
Junior Member Posts: 28 Joined: Feb 2012 Reputation: 0 |
2012-03-18 04:26
Post: #1
(This post was last modified: 2012-05-26 11:01 by MasterCATZ.)
|
| find quote |
kuroshi
Junior Member Posts: 20 Joined: May 2012 Reputation: 0 |
2012-05-24 01:35
Post: #2
Queue* sorry, that was annoying me (I really try not to be a spelling troll, honest! I can barely spell myself! It's just one of those little things, you know...)
More importantly! I ran into this want myself recently, as I have always trouble remembering to update my account. So, I took a crack at it. "plugin" is a little bit kind, to say the least, right now, it's actually independent of XBMC other than calling the json rpc api, but I do plan to make it a plugin, eventually. If you want to help test it and play with it, here's the github: https://github.com/kuruoujou/XBMal I've only tested it in ubuntu 11.10 with Eden, so your results may (and probably will, particularly with windows and mac) vary. I'll be happy to entertain feedback, though. |
| find quote |
MasterCATZ
Junior Member Posts: 28 Joined: Feb 2012 Reputation: 0 |
2012-05-26 11:16
Post: #3
Just used the branch script
FreeBSD# cd /files/Downloads/kuruoujou-XBMal-f7da154/ FreeBSD# python xbmal.py -c config Traceback (most recent call last): File "xbmal.py", line 219, in <module> generateConfig(sys.argv[2]) File "xbmal.py", line 138, in generateConfig tvshows = xbmc.VideoLibrary.GetTVShows()[u'tvshows'] File "/usr/local/lib/python2.7/site-packages/jsonrpclib/jsonrpc.py", line 276, in __call__ return self.__send(self.__name, kwargs) File "/usr/local/lib/python2.7/site-packages/jsonrpclib/jsonrpc.py", line 224, in _request response = self._run_request(request) File "/usr/local/lib/python2.7/site-packages/jsonrpclib/jsonrpc.py", line 242, in _run_request verbose=self.__verbose File "/usr/local/lib/python2.7/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/usr/local/lib/python2.7/xmlrpclib.py", line 1292, in single_request self.send_content(h, request_body) File "/usr/local/lib/python2.7/site-packages/jsonrpclib/jsonrpc.py", line 122, in send_content connection.endheaders() File "/usr/local/lib/python2.7/httplib.py", line 954, in endheaders self._send_output(message_body) File "/usr/local/lib/python2.7/httplib.py", line 814, in _send_output self.send(msg) File "/usr/local/lib/python2.7/httplib.py", line 776, in send self.connect() File "/usr/local/lib/python2.7/httplib.py", line 757, in connect self.timeout, self.source_address) File "/usr/local/lib/python2.7/socket.py", line 571, in create_connection raise err socket.error: [Errno 61] Connection refused FreeBSD# python xbmal.py -c config Traceback (most recent call last): File "xbmal.py", line 219, in <module> generateConfig(sys.argv[2]) File "xbmal.py", line 138, in generateConfig tvshows = xbmc.VideoLibrary.GetTVShows()[u'tvshows'] TypeError: 'NoneType' object has no attribute '__getitem__' |
| find quote |
MasterCATZ
Junior Member Posts: 28 Joined: Feb 2012 Reputation: 0 |
2012-05-26 12:20
Post: #4
ok I used a fresh xbmc
looks like it was not liking my mysql data base added my fail safe shiki and FreeBSD# python xbmal.py -c config Which show is Shiki Season 1? 0) Ashiaraiyashiki no Juunintachi 1) Genji Monogatari 2) Prince of Tennis: Eikokushiki Teikyuu Shiro Kessen! 3) Steel Angel Kurumi 2 4) Gakuen: Chijoku No Zushiki 5) Gosick Recap 6) Level-C 7) Detective Conan: Black History 8) Shiki 9) Utsukushiki Emono-tachi no Gakuen 10) Detective Conan: Black History 2 11) Immorality 12) Kouchuu Ouja Mushiking: Mori no Tami no Densetsu 13) Shiki Specials 14) Kusatta Kyoushi no Houteishiki 15) Genji Tsuushin Agedama 16) Hinomaru Hatanosuke: Bakemonoyashiki no Maki 17) Kouchuu Ouja Mushiking Super Battle Movie: Yami no Kaizou Kouchuu 18) Queen's Blade: Utsukushiki Toushitachi 19) Renketsu Houshiki 20) None of the above 21) Manual Search Your Selection >8 FreeBSD# python xbmal.py Shiki season 1 updated. woohoo it worked ! Great Job |
| find quote |
kuroshi
Junior Member Posts: 20 Joined: May 2012 Reputation: 0 |
2012-05-26 16:08
Post: #5
Great! Glad to hear it. I'm a little interested in why it disliked your mysql database, but I'm not sure why that would have been.
Good luck on your car! |
| find quote |
MasterCATZ
Junior Member Posts: 28 Joined: Feb 2012 Reputation: 0 |
2012-05-26 22:52
Post: #6
it might have been my extra profiles
verified it working with fresh external mysql database any way to use an exact naming match https://github.com/Manromen/script.Trakt...i/Download might have some useful bits of code as well if only they had an option to export / import to/from MAL
(This post was last modified: 2012-05-27 01:09 by MasterCATZ.)
|
| find quote |
kuroshi
Junior Member Posts: 20 Joined: May 2012 Reputation: 0 |
2012-05-27 17:06
Post: #7
That could be useful, though I don't know how well trakt matches the tvdb. The biggest issue with MAL is that it's not very structured. If it had a consistent naming scheme with second seasons, third seasons, etc. or some way to filter out those seasons, /and/ all of the specials were combined (or, alternatively, the tvdb separates the specials appropriately), then it wouldn't be too bad at all. Getting the two to work together isn't an easy thing to do.
I'll certainly take a look at it though, once I get a v0.2 out, which should be today or tomorrow (and should be an actual XBMC plugin!) Quick edit: v0.2 is out, and is now an /actual/ XBMC plugin! Whoo! Lemme know if you have any problems.
(This post was last modified: 2012-05-27 22:12 by kuroshi.)
|
| find quote |
kuroshi
Junior Member Posts: 20 Joined: May 2012 Reputation: 0 |
2012-05-30 02:07
Post: #8
A new post for an important update?
Maybe I should make a new thread in addon development or something. Ah, well... I've released a new version of xbmal, along with a repository to go with it. The new version uses an xml file instead of a flat file to store configuration, so you'll need to run the setup script again. However, the xml file allows for faster future additions. For the time being, I can't update the XBMC wiki due to some weird akismet error that's happening left and right. So, I can't add the addon or the new repository to it, which means the repository auto-installer can't pick up my repository (how sad *sniff*), at least until it's fixed. However, if you want to add the repository, it's available on my github: https://github.com/kuruoujou/kuroshi-xbmc-repo, and a direct link to the zip file: https://github.com/kuruoujou/kuroshi-xbm...-1.0.0.zip Once you add the repository, you can install xbmal from the "get addons" screen, along with any other addons I may eventually make. You can also install the add-on directly using it's zip file, which is available from the same github. Enjoy ^_^ Update: Thanks to Ned Scott, I can now edit the wiki! As such, the Repository Installer addon can now install my repository! Enjoy!
(This post was last modified: 2012-05-30 02:25 by kuroshi.)
|
| find quote |
MasterCATZ
Junior Member Posts: 28 Joined: Feb 2012 Reputation: 0 |
2012-05-30 16:41
Post: #9
sadly not much in the logs to help solve this but I can not get into MAL with this new setup username / pass is correct and also manually added it into the settings.xml file default="" and it still did not work
14:36:24 T:34891237376 NOTICE: -->Python Interpreter Initialized<-- 14:36:24 T:34891237376 DEBUG: Process - The source file to load is /root/.xbmc/addons/script.artwork.downloader/service.py 14:36:24 T:34891238400 NOTICE: -->Python Interpreter Initialized<-- 14:36:24 T:34891238400 DEBUG: Process - The source file to load is /root/.xbmc/addons/script.xbmal/default.py 14:36:24 T:34891237376 DEBUG: Process - Setting the Python path to /root/.xbmc/addons/script.artwork.downloader:/usr/local/share/xbmc/addons/script.module.simplejson/lib:/usr/local/share/xbmc/addons/script.module.pil/lib:/root/.xbmc/addons/script.common.plugin.cache/lib:/root/.xbmc/addons/script.module.elementtree/lib:/usr/local/share/xbmc/addons/script.module.pysqlite/lib:/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg:/usr/local/lib/python2.7/site-packages/Beaker-1.6.3-py2.7.egg:/usr/local/lib/python2.7/site-packages/MarkupSafe-0.15-py2.7-freebsd-9.0-RELEASE-amd64.egg:/usr/local/lib/python2.7/site-packages/Babel-0.9.6-py2.7.egg:/usr/local/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg:/usr/local/lib/python2.7/site-packages/zope.interface-3.8.0-py2.7-freebsd-9.0-RELEASE-amd64.egg:/usr/local/lib/python2.7/site-packages/deluge-1.3.5-py2.7.egg:/usr/local/lib/python2.7/site-packages/cssutils-0.9.8-py2.7.egg:/usr/local/lib/python2.7/site-packages/python_dateutil-1.5-py2.7.egg:/usr/local/lib/python2.7/site-packages/lxml-2.3.4-py2.7-freebsd-9.0-RELEASE-amd64.egg:/usr/local/lib/python2.7/site-packages/mechanize-0.2.5-py2.7.egg:/usr/local/lib/python27.zip:/usr/local/lib/python2.7:/usr/local/lib/python2.7/plat-freebsd9:/usr/local/lib/python2.7/lib-tk:/usr/local/lib/python2.7/lib-old:/usr/local/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages/PIL:/usr/local/lib/python2.7/site-packages/gst-0.10:/usr/local/lib/python2.7/site-packages/gtk-2.0: 14:36:24 T:34891237376 DEBUG: Process - Entering source directory /root/.xbmc/addons/script.artwork.downloader 14:36:24 T:34891237376 DEBUG: Instantiating addon using automatically obtained id of "script.artwork.downloader" dependent on version 2.0 of the xbmc.python api 14:36:24 T:34891238400 DEBUG: Process - Setting the Python path to /root/.xbmc/addons/script.xbmal:/usr/local/share/xbmc/addons/script.module.simplejson/lib:/usr/local/share/xbmc/addons/script.module.pil/lib:/root/.xbmc/addons/script.common.plugin.cache/lib:/root/.xbmc/addons/script.module.elementtree/lib:/usr/local/share/xbmc/addons/script.module.pysqlite/lib:/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg:/usr/local/lib/python2.7/site-packages/Beaker-1.6.3-py2.7.egg:/usr/local/lib/python2.7/site-packages/MarkupSafe-0.15-py2.7-freebsd-9.0-RELEASE-amd64.egg:/usr/local/lib/python2.7/site-packages/Babel-0.9.6-py2.7.egg:/usr/local/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg:/usr/local/lib/python2.7/site-packages/zope.interface-3.8.0-py2.7-freebsd-9.0-RELEASE-amd64.egg:/usr/local/lib/python2.7/site-packages/deluge-1.3.5-py2.7.egg:/usr/local/lib/python2.7/site-packages/cssutils-0.9.8-py2.7.egg:/usr/local/lib/python2.7/site-packages/python_dateutil-1.5-py2.7.egg:/usr/local/lib/python2.7/site-packages/lxml-2.3.4-py2.7-freebsd-9.0-RELEASE-amd64.egg:/usr/local/lib/python2.7/site-packages/mechanize-0.2.5-py2.7.egg:/usr/local/lib/python27.zip:/usr/local/lib/python2.7:/usr/local/lib/python2.7/plat-freebsd9:/usr/local/lib/python2.7/lib-tk:/usr/local/lib/python2.7/lib-old:/usr/local/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages/PIL:/usr/local/lib/python2.7/site-packages/gst-0.10:/usr/local/lib/python2.7/site-packages/gtk-2.0: 14:36:24 T:34891238400 DEBUG: Process - Entering source directory /root/.xbmc/addons/script.xbmal 14:36:24 T:34891244544 NOTICE: -->Python Interpreter Initialized<-- 14:36:24 T:34891244544 DEBUG: Process - The source file to load is /root/.xbmc/addons/script.common.plugin.cache/default.py 14:36:24 T:34891238400 DEBUG: Instantiating addon using automatically obtained id of "script.xbmal" dependent on version 2.0 of the xbmc.python api 14:36:24 T:34891244544 DEBUG: Process - Setting the Python path to /root/.xbmc/addons/script.common.plugin.cache:/usr/local/share/xbmc/addons/script.module.simplejson/lib:/usr/local/share/xbmc/addons/script.module.pil/lib:/root/.xbmc/addons/script.common.plugin.cache/lib:/root/.xbmc/addons/script.module.elementtree/lib:/usr/local/share/xbmc/addons/script.module.pysqlite/lib:/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg:/usr/local/lib/python2.7/site-packages/Beaker-1.6.3-py2.7.egg:/usr/local/lib/python2.7/site-packages/MarkupSafe-0.15-py2.7-freebsd-9.0-RELEASE-amd64.egg:/usr/local/lib/python2.7/site-packages/Babel-0.9.6-py2.7.egg:/usr/local/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg:/usr/local/lib/python2.7/site-packages/zope.interface-3.8.0-py2.7-freebsd-9.0-RELEASE-amd64.egg:/usr/local/lib/python2.7/site-packages/deluge-1.3.5-py2.7.egg:/usr/local/lib/python2.7/site-packages/cssutils-0.9.8-py2.7.egg:/usr/local/lib/python2.7/site-packages/python_dateutil-1.5-py2.7.egg:/usr/local/lib/python2.7/site-packages/lxml-2.3.4-py2.7-freebsd-9.0-RELEASE-amd64.egg:/usr/local/lib/python2.7/site-packages/mechanize-0.2.5-py2.7.egg:/usr/local/lib/python27.zip:/usr/local/lib/python2.7:/usr/local/lib/python2.7/plat-freebsd9:/usr/local/lib/python2.7/lib-tk:/usr/local/lib/python2.7/lib-old:/usr/local/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages/PIL:/usr/local/lib/python2.7/site-packages/gst-0.10:/usr/local/lib/python2.7/site-packages/gtk-2.0: 14:36:24 T:34891244544 DEBUG: Process - Entering source directory /root/.xbmc/addons/script.common.plugin.cache 14:36:24 T:34891244544 DEBUG: Instantiating addon using automatically obtained id of "script.common.plugin.cache" dependent on version 2.0 of the xbmc.python api 14:36:24 T:34891237376 NOTICE: Artwork Downloader: ## Service - Run at startup: False 14:36:24 T:34891237376 NOTICE: Artwork Downloader: ## Service - Delayed startup: -- minutes 14:36:24 T:34891237376 NOTICE: Artwork Downloader: ## Service - Run as service: False 14:36:24 T:34891237376 NOTICE: Artwork Downloader: ## Service - Time: 00:00 14:36:24 T:34891237376 INFO: Scriptresult: Success 14:36:24 T:34891237376 INFO: Python script stopped 14:36:24 T:34891237376 DEBUG: Thread XBPyThread 34891237376 terminating 14:36:24 T:34891244544 NOTICE: StorageServer Module loaded RUN 14:36:24 T:34891244544 NOTICE: StorageClient-0.9.2 Starting server 14:36:24 T:34891244544 NOTICE: StorageServer-0.9.2 Storage Server starting /root/.xbmc/userdata/Database/commoncache.db 14:36:25 T:34891238400 FATAL: ### [XBMAL] - MAL Username or Password Invalid. |
| find quote |
kuroshi
Junior Member Posts: 20 Joined: May 2012 Reputation: 0 |
2012-05-30 16:58
Post: #10
Hmmm...Well, let's see what we can do here to fix this.
Since you say you edited the default attribute in the settings file, I assume you mean the one in [addons directory]/script.xbmal/resources/settings.xml. The first thing you should do is double check your username and password in [userdata]/addon_data/script.xbmal/settings.xml. If those are wrong, then you've found the problem. If those are correct, try replacing [addons directory]/script.xbmal/resources/lib/request.py with this one: https://github.com/kuruoujou/XBMal/raw/m...request.py and restarting XBMC. Assuming MAL still doesn't log in (it will sometimes refuse to log in if you try to do so in rapid succession, within a minute or so of a previous login), post your xbmc log to http://xbmclogs.com/ and put the link here. Hopefully I can get it running for you soon! |
| find quote |

Search
Help