peak3d development roadmap
#59
Thanks for the info.

My addon already searches those locations for it first and copies if found.
I copy just so it's platform independent and easier to remove when re-installing.
Instead of first checking if link, then unlink else remove.

Code:
addon_path = xbmc.translatePath(addon.getAddonInfo('path')).decode("utf-8")
paths = [os.path.join(addon_path, filename), os.path.join(addon_path, 'lib', filename), os.path.join(os.sep, 'usr', 'lib', filename)]
    for path in paths:
        if os.path.exists(path):
            try:
                shutil.copy(path, download_path)
                os.chmod(download_path, 0755)
                return
            except:
                continue

The addon also stores the inpustream version in addon settings.
So, each time it's called, it checks the versions still match and both files exists in CDM.
If either of those fail - it simply runs the install code.
Code:
if (addon.getAddonInfo('version') == installed and
                os.path.exists(os.path.join(cdm_path, config.WIDEVINECDM_DICT[system_])) and
                    os.path.exists(os.path.join(cdm_path, config.SSD_WV_DICT[system_]))):

This way, if CDM is deleted, or addon data deleted or inpustream updates - it forces a re-install.

I currently use the major version of inputstream when building path to online libssd.
eg. inpustream 1.X will point to /1.0/windows64/ssd_wv.dll
whereas inpustream 2.X will point to /2.0/windows64/ssd_wv.dll

I hope that a ssd_wv for 2.X will also work on all other 2.X versions.
i think this may not be the case however.
But, for later versions - hopefully most platforms should have it included anyway.

The one good thing about libssd is that it's very quick to compile.
I compile it for i386 as I couldn't find any already compiled for it.
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average


Messages In This Thread
peak3d development roadmap - by peak3d - 2017-01-09, 15:25
RE: peak3d development roadmap - by M4tt0 - 2017-01-09, 17:00
RE: peak3d development roadmap - by nickr - 2017-01-09, 23:13
RE: peak3d development roadmap - by RockerC - 2017-01-10, 09:20
RE: peak3d development roadmap - by da-anda - 2017-01-10, 11:27
RE: peak3d development roadmap - by marantz - 2017-01-12, 13:49
RE: peak3d development roadmap - by peak3d - 2017-01-16, 13:55
RE: peak3d development roadmap - by Atreyu - 2017-01-18, 09:19
RE: peak3d development roadmap - by Meiden - 2017-02-23, 10:03
RE: peak3d development roadmap - by docwra - 2017-02-24, 17:45
RE: peak3d development roadmap - by peak3d - 2017-04-02, 22:34
RE: peak3d development roadmap - by peak3d - 2017-04-03, 12:44
RE: peak3d development roadmap - by peak3d - 2017-04-03, 13:07
RE: peak3d development roadmap - by RockerC - 2017-04-04, 11:27
RE: peak3d development roadmap - by peak3d - 2017-04-05, 19:39
RE: peak3d development roadmap - by DHaych88 - 2017-04-24, 04:41
RE: peak3d development roadmap - by DHaych88 - 2017-04-26, 02:18
RE: peak3d development roadmap - by peak3d - 2017-06-27, 11:48
RE: peak3d development roadmap - by docwra - 2017-06-27, 12:29
RE: peak3d development roadmap - by peak3d - 2017-06-27, 12:32
RE: peak3d development roadmap - by peak3d - 2017-06-27, 13:04
peak3d development roadmap - by Memphiz - 2017-06-27, 20:09
RE: peak3d development roadmap - by peak3d - 2017-06-27, 21:40
peak3d development roadmap - by Memphiz - 2017-06-28, 07:31
RE: peak3d development roadmap - by peak3d - 2017-06-28, 09:33
peak3d development roadmap - by Memphiz - 2017-07-05, 08:47
RE: peak3d development roadmap - by bsoriano - 2017-07-08, 19:29
RE: peak3d development roadmap - by peak3d - 2017-07-10, 14:43
RE: peak3d development roadmap - by peak3d - 2017-08-06, 07:30
RE: peak3d development roadmap - by V8MEM - 2017-08-06, 09:16
RE: peak3d development roadmap - by peak3d - 2017-08-06, 09:35
RE: peak3d development roadmap - by peak3d - 2017-08-08, 10:25
RE: peak3d development roadmap - by brulsmurf - 2017-08-07, 11:30
RE: peak3d development roadmap - by peak3d - 2017-08-08, 10:24
RE: peak3d development roadmap - by brulsmurf - 2017-08-08, 14:51
RE: peak3d development roadmap - by enen92 - 2017-08-07, 16:08
RE: peak3d development roadmap - by JinJin - 2017-08-07, 20:06
RE: peak3d development roadmap - by enen92 - 2017-08-08, 14:58
RE: peak3d development roadmap - by dr88dr88 - 2017-08-08, 18:12
RE: peak3d development roadmap - by brulsmurf - 2017-08-08, 20:12
RE: peak3d development roadmap - by peak3d - 2017-08-10, 10:36
RE: peak3d development roadmap - by Majide - 2017-08-10, 22:43
RE: peak3d development roadmap - by peak3d - 2017-08-11, 12:45
RE: peak3d development roadmap - by peak3d - 2017-08-22, 07:45
RE: peak3d development roadmap - by Milhouse - 2017-08-24, 02:52
RE: peak3d development roadmap - by matthuisman - 2017-08-24, 03:57
RE: peak3d development roadmap - by Milhouse - 2017-08-24, 04:17
RE: peak3d development roadmap - by Milhouse - 2017-08-24, 05:38
RE: peak3d development roadmap - by Milhouse - 2017-08-24, 06:01
RE: peak3d development roadmap - by peak3d - 2017-08-24, 08:27
RE: peak3d development roadmap - by Milhouse - 2017-08-24, 10:35
RE: peak3d development roadmap - by peak3d - 2017-08-24, 12:39
RE: peak3d development roadmap - by JinJin - 2017-08-24, 11:32
RE: peak3d development roadmap - by peak3d - 2017-08-24, 13:50
RE: peak3d development roadmap - by Milhouse - 2017-08-24, 14:06
RE: peak3d development roadmap - by Milhouse - 2017-08-24, 23:59
RE: peak3d development roadmap - by Milhouse - 2017-08-25, 01:11
RE: peak3d development roadmap - by glennguy - 2017-08-26, 14:36
RE: peak3d development roadmap - by glennguy - 2017-08-29, 14:52
RE: peak3d development roadmap - by Martijn - 2017-09-05, 16:58
RE: peak3d development roadmap - by micahg - 2017-09-08, 05:08
RE: peak3d development roadmap - by peak3d - 2017-09-08, 08:59
RE: peak3d development roadmap - by micahg - 2017-09-08, 15:54
RE: peak3d development roadmap - by micahg - 2017-09-17, 03:27
RE: peak3d development roadmap - by peak3d - 2017-09-17, 20:46
RE: peak3d development roadmap - by micahg - 2017-09-18, 03:29
RE: peak3d development roadmap - by Ed76 - 2019-01-12, 18:54
RE: peak3d development roadmap - by peak3d - 2019-01-13, 11:44
RE: peak3d development roadmap - by Varstahl - 2019-05-03, 09:26
RE: peak3d development roadmap - by CiNcH - 2019-01-18, 09:54
RE: peak3d development roadmap - by peak3d - 2019-01-23, 17:33
RE: peak3d development roadmap - by CiNcH - 2019-01-23, 17:43
RE: peak3d development roadmap - by peak3d - 2019-01-23, 18:01
RE: peak3d development roadmap - by afedchin - 2019-01-25, 14:13
RE: peak3d development roadmap - by CiNcH - 2019-01-25, 14:15


Logout Mark Read Team Forum Stats Members Help
peak3d development roadmap51