2014-05-12, 22:34
(2014-05-12, 07:40)trizt Wrote:(2014-05-12, 06:32)nexus667 Wrote: How do you apply the patch?
nexus:a $ git apply ../azdrama.diff
error: patch failed: addon.xml:1
error: addon.xml: patch does not apply
error: patch failed: default.py:10
error: default.py: patch does not apply
error: patch failed: resources/settings.xml:1
error: resources/settings.xml: patch does not apply
i have version="1.0.14"
There been some changes between the official azdrama name 1.0.13 and 1.0.14, so I have a new patch for azdrama-1.0.14.diff
This can be applied with patch -p 1 < azdrama.1.0.14.diff if you are located in the plugin.video.azdrama directory.
That worked better.
bash-3.2# patch -p 1 < azdrama-1.0.14.diff
patching file default.py
patching file resources/language/english/strings.xml
patching file resources/settings.xml
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file resources/settings.xml.rej
I had to do the settings.xml changes manually.
Plugin won't load:
16:11:37 T:4504690688 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndentationError'>
Error Contents: ('expected an indented block', ('/Users/rfw/Library/Application Support/XBMC/addons/plugin.video.azdrama/default.py', 31, 14, " addDir('Recent Updates','http://'+domain+'/recently-updated/',2,'')\n"))
IndentationError: ('expected an indented block', ('/Users/rfw/Library/Application Support/XBMC/addons/plugin.video.azdrama/default.py', 31, 14, " addDir('Recent Updates','http://'+domain+'/recently-updated/',2,'')\n"))
-->End of Python script error report<--
16:11:37 T:140735227941648 ERROR: GetDirectory - Error getting plugin://plugin.video.azdrama/
16:11:37 T:140735227941648 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.azdrama/) failed