2014-05-25, 01:42
For me it does not work yet. I still get the error
Zooming into it, seems that in the download action
osdb_server = OSDBServer()
url = osdb_server.download("", params["link"])
the URL returns a "None" which obviously does not download well. I don't know if the link needs to be a real url or a number.
Can it be that the plugin does not work when un-authenticated?
Code:
22:52:32 T:1901651144 DEBUG: CPythonInvoker(10, /mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi/service.py): start processing
22:52:32 T:1901651144 NOTICE: -->Python Interpreter Initialized<--
22:52:32 T:1901651144 DEBUG: CPythonInvoker(10, /mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi/service.py): the source file to load is /mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi/service.py
22:52:32 T:1901651144 DEBUG: CPythonInvoker(10, /mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi/service.py): setting the Python path to /mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi:/mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/script.module.simplejson/lib:/data/data/org.xbmc.xbmc/cache/apk/assets/addons/script.module.pil/lib:/mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/script.common.plugin.cache/lib:/data/data/org.xbmc.xbmc/cache/apk/assets/addons/xbmc.debug/:/:/data/app/org.xbmc.xbmc-2.apk/assets/python2.6/lib/python26.zip:/data/app/org.xbmc.xbmc-2.apk/assets/python2.6/lib/python2.6:/data/app/org.xbmc.xbmc-2.apk/assets/python2.6/lib/python2.6/plat-linux3:/data/app/org.xbmc.xbmc-2.apk/assets/python2.6/lib/python2.6/lib-tk:/data/app/org.xbmc.xbmc-2.apk/assets/python2.6/lib/python2.6/lib-old:/data/app/org.xbmc.xbmc-2.apk/assets/python2.6/lib/python2.6/lib-dynload
22:52:32 T:1901651144 DEBUG: CPythonInvoker(10, /mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi/service.py): entering source directory /mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi
22:52:32 T:1901651144 DEBUG: CPythonInvoker(10, /mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi/service.py): instantiating addon using automatically obtained id of "service.subtitles.podnapisi" dependent on version 2.1.0 of the xbmc.python api
22:52:33 T:1901651144 DEBUG: ### [__main__] - Download using 'ZipFile' method
22:52:33 T:1901651144 DEBUG: ### [__main__] - Download using 'old' method
22:52:33 T:1901651144 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 'strip'
Traceback (most recent call last):
File "/mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi/service.py", line 199, in <module>
subs = Download(url,params["filename"])
File "/mnt/internal_sd/Android/data/org.xbmc.xbmc/files/.xbmc/addons/service.subtitles.podnapisi/service.py", line 121, in Download
f = urllib.urlopen(url)
File "/home/jenkins/workspace/XBMC-Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-14/lib/python2.6/urllib.py", line 86, in urlopen
File "/home/jenkins/workspace/XBMC-Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-14/lib/python2.6/urllib.py", line 177, in open
File "/home/jenkins/workspace/XBMC-Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-14/lib/python2.6/urllib.py", line 1032, in unwrap
AttributeError: 'NoneType' object has no attribute 'strip'
-->End of Python script error report<--
22:52:33 T:1758375800 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
22:52:33 T:1758375800 DEBUG: Window DialogKaiToast.xml was already loaded
22:52:33 T:1758375800 DEBUG: Alloc resources: 0.01m
22:52:33 T:1901651144 INFO: Python script stopped
22:52:33 T:1901651144 DEBUG: Thread LanguageInvoker 1901651144 terminating
22:52:33 T:1914951720 DEBUG: bool XFILE::CPluginDirectory::WaitOnScriptResult(const CStdString&, int, const CStdString&, bool) - plugin exited prematurely - terminating
22:52:33 T:1914951720 ERROR: static bool XFILE::CDirectory::GetDirectory(const CStdString&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://service.subtitles.podnapisi/?action=download&link=3076029&ID=3076029&filename=The.Big.Bang.Theory.S07E18.720p.WEB-DL.DD5.1.H.264-YFN
Zooming into it, seems that in the download action
osdb_server = OSDBServer()
url = osdb_server.download("", params["link"])
the URL returns a "None" which obviously does not download well. I don't know if the link needs to be a real url or a number.
Can it be that the plugin does not work when un-authenticated?