tis-vlc

3.0.11-8
VLC media player (VLC) is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project
22977 downloads
Download

  Description 

  • package : tis-vlc
  • version : 3.0.11-8
  • architecture : x86
  • categories : Media
  • maintainer : Tranquil IT,Kevin Guerineau,Jimmy PELÉ
  • description : VLC media player (VLC) is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project
  • locale : all
  • target_os : windows
  • min_os_version : 5.1
  • max_os_version :
  • min_wapt_version : 1.5
  • sources : https://www.videolan.org/vlc/
  • installed_size :
  • impacted_process : vlc
  • description_fr : VLC media player (VLC) est un lecteur multimédia français libre issu du projet VideoLAN
  • description_pl : VLC media player – odtwarzacz multimedialny rozwijany przez VideoLAN, rozpowszechniany na licencji GPL
  • description_de : Der VLC media player ist eine freie Mediaplayer-Software
  • description_es : VLC media player es un reproductor y framework multimedia, libre y de código abierto desarrollado por el proyecto VideoLAN
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : VideoLAN
  • licence : GPL-2.0
  • signature_date : 2020-06-19T10:47:26.535000
  • Homepage : https://www.videolan.org/

  Setup.py 

from setuphelpers import *
import platform

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'vlc-%s-win32.exe'
silent_inst_arg = '/S'
uninstall_key = 'VLC media player'


def install():
    # Specific app values
    package_version = control.version.split('-',1)[0]

    # Installing the package
    install_exe_if_needed(bin_name_string % package_version
        ,silentflags=silent_inst_arg
        ,key=uninstall_key
        ,min_version=package_version)

    remove_desktop_shortcut('VLC media player')


def session_setup():
    print("Setting up default preferences for VLC")

    # Specific app values
    user_conf_dir = makepath(user_appdata,'vlc')
    user_conf_file = makepath(user_appdata,'vlc','vlcrc')
    vlcrc_content="""[qt] # Qt interface
qt-notification=0
qt-updates-notif=0
qt-privacy-ask=0
metadata-network-access=0
"""

    if not isfile(user_conf_file):
        if not isdir(user_conf_dir):
            mkdirs(user_conf_dir)
        fichier = open(user_conf_file, "w")
        fichier.write(vlcrc_content)
        fichier.close()
    else:
        fichier = open(user_conf_file,"r")
        data = fichier.read()
        fichier.close()

        if '#qt-notification=1' in data :
            data = data.replace('#qt-notification=1','qt-notification=0')
        if 'qt-notification=1' in data :
            data = data.replace('qt-notification=1','qt-notification=0')
        if '#qt-updates-notif=1' in data :
            data = data.replace('#qt-updates-notif=1','qt-updates-notif=0')
        if 'qt-updates-notif=1' in data :
            data = data.replace('qt-updates-notif=1','qt-updates-notif=0')
        if '#qt-privacy-ask=1' in data :
            data = data.replace('#qt-privacy-ask=1','qt-privacy-ask=0')
        if 'qt-privacy-ask=1' in data :
            data = data.replace('qt-privacy-ask=1','qt-privacy-ask=0')
        if '#metadata-network-access=1' in data :
            data = data.replace('#metadata-network-access=1','metadata-network-access=0')
        if 'metadata-network-access=1' in data :
            data = data.replace('metadata-network-access=1','metadata-network-access=0')
            
        fichier = open(user_conf_file, "w")
        fichier.write(data)
        fichier.close()


def update_package():
    print('Update package content from upstream binary sources')

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

    htmlSource = wgets("http://www.videolan.org/vlc/download-windows.html",proxies=proxy).splitlines()

    for line in htmlSource :
        if 'downloadOS' in line :
            realversion = line[line.find("") + 12 :line.find("</span>")]
            latest_bin = bin_name_string % realversion

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

    # Downloading latest binaires
    if not isfile(latest_bin):
        print('Download ' + latest_bin)
        win_arch = control.architecture.replace('x','win')
        if win_arch == 'win86':
            win_arch = 'win32'
        wget('https://get.videolan.org/vlc/'+ realversion +'/%s/' % win_arch + latest_bin, latest_bin,proxies=proxy)

        pe = PackageEntry().load_control_from_wapt('.')
        pe.version = '%s-%s'%(realversion,int(pe.version.split('-',1)[1])+1)
        pe.save_control_to_wapt('.')
        print('Changing version to ' + pe.version + ' in WAPT\\control')


										

  Changelog 


Changelog software url : https://www.videolan.org/developers/vlc-branch/NEWS

No changelog
  manifest.sha256 
[["WAPT/icon.png","caaf9fa15a3794cc95bd0b2a6000c37ef1cc84c866a5cb15fe5d3bf9f29eb054"],["setup.py","80fa687d7fb733c829eaffd98c7c5b394c40ff036cd0c619cb10f15995a0961a"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["vlc-3.0.11-win32.exe","86a95690916f9f5b86593ef3f146c101d11f5d5e55670613bf88211ca3036aca"],["WAPT/control","349a8155289fcf6ebe8d5e82c27a22b1732d8cf29ec7912e440a4feb2b8089ca"]]