tis-plex

1.4.1.940-3
Working on Windows 10 or later (64-bits only) - Plex brings together all the media that matters to you. Your personal collection will look beautiful alongside stellar streaming content. Enjoy Live TV & DVR, a growing catalog of great web shows, news, and podcasts. It's finally possible to enjoy all the media you love in a single app, on any device, no matter where you are.
771 downloads
Download
default icon

  Description 

  • package : tis-plex
  • version : 1.4.1.940-3
  • architecture : x64
  • categories : Media
  • maintainer : WAPT Team,Jimmy PELÉ
  • description : Working on Windows 10 or later (64-bits only) - Plex brings together all the media that matters to you. Your personal collection will look beautiful alongside stellar streaming content. Enjoy Live TV & DVR, a growing catalog of great web shows, news, and podcasts. It's finally possible to enjoy all the media you love in a single app, on any device, no matter where you are.
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.5
  • sources : https://www.plex.tv/media-server-downloads/#plex-app
  • installed_size : 290070528
  • impacted_process : Plex.exe
  • description_fr : Fonctionne sur Windows 10 or supérieur (64-bits seulement) - Plex est un logiciel client-serveur de gestion multimédia qui permet d'accéder aux films, séries, musiques et photos sur le serveur peu importe où le client se situe, s'il a une connexion Internet.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Plex, Inc.
  • licence : Freemium, GPLv2
  • signature_date : 2020-02-27T21:39:33.688999
  • Homepage : https://www.plex.tv/
  • Depends :

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'Plex-%s-x86_64.exe'
silent_args = '/S'
uninstallkey_app = 'Plex'


def install():
    # Specific app values
    package_version = control.version.split('-',1)[0]
    package_version_split = package_version.split('.')
    short_package_version = '%s.%s.%s' % (package_version_split[0],package_version_split[1],package_version_split[2])
    #print(short_package_version)

	# Getting the used storage on programfiles before installation (place it on the top)
    get_disk_free_space_before = get_disk_free_space(programfiles)

    # Installing the package
    install_exe_if_needed(bin_name_string % package_version
        ,silentflags=silent_args
        ,key=uninstallkey_app
        ,min_version=short_package_version
        ,accept_returncodes=[0,3010,1223])

    killalltasks(control.impacted_process)

	# Return used storage of the program. (place it on the bottom)
    get_disk_free_space_after = get_disk_free_space(programfiles)
    free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
    print("Storage used: " + str(free_space_after_diff))


def update_package():
    print('Download/Update package content from upstream binary sources')
    import json

    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Specific app values
    app_name = control.name
    url_api = 'https://plex.tv/api/downloads/6.json'

    # Getting latest informations from Github API
    json_load = json.loads(wgets(url_api,proxies=proxy))

    version = json_load['computer']['Windows']['version'].split('-')[0]
    url_dl = json_load['computer']['Windows']['releases'][0]['url']

    latest_bin = bin_name_string % version

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxy)

		# Change version of the package
        print('Writing ' + version + '-0 in WAPT\\control')
        from waptpackage import PackageEntry
        pe = PackageEntry()
        pe.load_control_from_wapt(os.getcwd())

        pe.version = version + '-0'
        pe.save_control_to_wapt(os.getcwd())
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)


if __name__ == '__main__':
    update_package()


										

  Changelog 



https://forums.plex.tv/t/plex-for-mac-and-windows/446435/10
									
  manifest.sha256