Posts: 793
Joined: Oct 2010
Reputation:
17
You also need to update the md5
Posts: 15
Joined: Mar 2012
Reputation:
0
It looks like the script I found to generate this may not be returning the proper value.
m = md5.new( open( "addons.xml" ).read() ).hexdigest()
'4cd0121bb7f0eecfda839e956acbc7f7'
I changed the value to what an md5 checker said was valid
'071C31D797438BE316B4BB20D582C8E4'
It still is not prompting for update when xbmc starts. Is this something that xbmc will only check once a day or something?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
2012-04-06, 17:12
(This post was last modified: 2012-04-06, 17:18 by spiff.)
addon.xml is irrelevant in the context. addons.xml run the show. You then md5 this file. This checksum is checked on a 6h interval on each client. The seed for the checksum is irrelevant, all that matters is that it changes when the repository changes.
Posts: 15
Joined: Mar 2012
Reputation:
0
Is there a way to force the check while I am trying to test this?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
Of course. Context menu...
Posts: 15
Joined: Mar 2012
Reputation:
0
2012-04-06, 17:22
(This post was last modified: 2012-04-06, 17:24 by LRFalk01.)
Okay. I believe the md5 is now valid. The repo has the plugin as version 0.0.5, and I have 0.0.4 installed. At some point will xbmc check the repo and install the new version automatically?
The update option for the add-on is greyed out. Am I looking at the wrong context menu?
(I am very sorry for my ignorance)
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
Yes that is not even a context menu. Context menu = right click menu (c on a keyboard). Open that on the correct context, your repository, and voila.
Posts: 15
Joined: Mar 2012
Reputation:
0
I found the force refresh option and ran it. Add-on automatically updated. Thank you very much for help.
Posts: 17,249
Joined: Aug 2007
Reputation:
566
Hitcher
Team-Kodi Member
Posts: 17,249
Slightly off-topic but the addons_xml_generator.py doesn't append 'addons.xml' to the generated code.
ie 7d0ac33f501a84d52778045750acc63c instead of 7d0ac33f501a84d52778045750acc63c addons.xml
So running the md5 file doesn't actually check anything.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
We just compare file contents so as long as it is consequent it is fine
Posts: 15
Joined: Mar 2012
Reputation:
0
That turned out to be a good thing seeing how the python script isn't generating the correct md5 anyway. I'll have to work on getting the script to work correctly. Thanks for the heads up Hitcher.
Posts: 15
Joined: Mar 2012
Reputation:
0
Fixed the md5 not vailid issue on the generator script. It looks like it was an issue with how python opens files in Windows. Open the the file in 'rb' mode to fix the md5 not being right, also appended the file name. TeraCopy validates the file now. Everything is golden now. Thanks again everyone.
Posts: 17,249
Joined: Aug 2007
Reputation:
566
Hitcher
Team-Kodi Member
Posts: 17,249
2012-04-06, 18:01
(This post was last modified: 2012-04-06, 18:02 by Hitcher.)
Just noticed this myself as well.
I was previously using Little MD5-Creator to make them but have recently switched over to a more automated repo updater for my skins so as to eliminate human error.
EDIT: Care to post the updated script?
Thanks.
PS. Might also be worth editing the wiki link.