tis-lidarr icon

lidarr

Paquet d’installation silencieuse pour lidarr

2.12.4.4658-1

  • package: tis-lidarr
  • name: lidarr
  • version: 2.12.4.4658-1
  • maintainer: Amel FRADJ
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 69.07 Mo

package           : tis-lidarr
version           : 2.12.4.4658-1
architecture      : x86
section           : base
priority          : optional
name              : lidarr
categories        : 
maintainer        : Amel FRADJ
description       : Lidarr is a music collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new tracks from your favorite artists and will grab, sort and rename them
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Lidarr est un gestionnaire de collection musicale pour les utilisateurs de Usenet et de BitTorrent. Il peut surveiller plusieurs flux RSS à la recherche de nouveaux morceaux de vos artistes préférés et les attrapera, les triera et les renommera
description_pl    : Lidarr to menedżer kolekcji muzycznych dla użytkowników Usenetu i BitTorrenta. Może monitorować wiele kanałów RSS w poszukiwaniu nowych utworów ulubionych wykonawców, a następnie pobierać je, sortować i zmieniać ich nazwy
description_de    : Lidarr ist ein Musiksammlungsmanager für Usenet- und BitTorrent-Nutzer. Es kann mehrere RSS-Feeds auf neue Tracks von Ihren Lieblingskünstlern überwachen und wird sie erfassen, sortieren und umbenennen
description_es    : Lidarr es un gestor de colecciones de música para usuarios de Usenet y BitTorrent. Puede monitorizar múltiples canales RSS en busca de nuevas canciones de tus artistas favoritos y las recogerá, ordenará y renombrará
description_pt    : O Lidarr é um gestor de colecções de música para utilizadores da Usenet e do BitTorrent. Ele pode monitorizar vários feeds RSS para novas faixas dos seus artistas favoritos e irá agarrá-las, ordená-las e renomeá-las
description_it    : Lidarr è un gestore di raccolte musicali per utenti Usenet e BitTorrent. È in grado di monitorare più feed RSS alla ricerca di nuovi brani dei vostri artisti preferiti e di prenderli, ordinarli e rinominarli
description_nl    : Lidarr is een muziekverzamelprogramma voor Usenet- en BitTorrent-gebruikers. Het kan meerdere RSS-feeds controleren op nieuwe tracks van je favoriete artiesten en deze ophalen, sorteren en hernoemen
description_ru    : Lidarr - это менеджер музыкальных коллекций для пользователей Usenet и BitTorrent. Он может отслеживать несколько RSS-каналов на предмет новых треков от ваших любимых исполнителей и захватывать, сортировать и переименовывать их
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : a3be8f95-c122-486d-89dc-c216399de124
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ca7542d6deb531d9e0c8af93a76d8ea295666a52fa3fe1f8cb919c3cd02357f3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-16T07:12:11.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : rIsjIvqq0NPgyba6SaG2jqzsfkT3HS4kISflk+46e8TmImtwwt5oSaWgNoc4QW743qyHOsmRXZysydDIDQPENupPf3HrlJGMHToO+ikg55/8I9ww2RyKrbkUVRpip/yx5NlGcVtvik1oETkNkBJdrOWeYlph4AqsbcyscYdzz3qkHO6M1QBxS9f/1fvFjs684jG4+gkC2gqgzV28FLuL9BgmBB9o/xhdDkDDqa8pN2EzEg6OwkAjvI2iKRYODBmDKIbjT0rrwwRecSt8UCU0Il6XUCaKZeYjVQ/RJ9tfBNg9pRpCt315a6buBmOunUolaIzD2/6Hrx5uJe6q7Ss+ww==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
 {
   "key":"{56C1065D-3523-4025-B76D-6F73F67F7F93}_is1",
   "name":"Lidarr version 2.4.0",
   "version":"2.4.0",
   "install_date":"2024-06-24 00:00:00",
   "install_location":"C:\\ProgramData\\Lidarr\\",
   "uninstall_string":"\"C:\\ProgramData\\Lidarr\\unins000.exe\"",
   "publisher":"Team Lidarr",
   "system_component":0,
   "win64":false
  }

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    installer_files = glob.glob('Lidarr.*.windows-core-x86-installer.exe')
    if not installer_files:
        raise FileNotFoundError("No installer files found matching the pattern 'Lidarr.*.windows-core-x86-installer.exe'")
    
    bin_name = installer_files[0]
    
    # Extracting version from the filename using regex
    match = re.search(r'Lidarr\.[\w.]+\.(\d+\.\d+\.\d+\.\d+)\.windows-core-x86-installer\.exe', bin_name)
    if not match:
        raise ValueError(f"Filename {bin_name} does not match expected pattern for extracting version")
    
    version = match.group(1)
    
    # Logging the extracted version for debugging purposes
    print(f"Extracted version from filename: {version}")
    
    # Installing the software
    install_exe_if_needed(
        bin_name,
        silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-',
        key='{56C1065D-3523-4025-B76D-6F73F67F7F93}_is1',
        min_version=control.get_software_version(),
        get_version=lambda _: version,  # Lambda function that returns the extracted version
        timeout=600,
    )

# Function to set the version in the registry after installation
def get_version(app_registry_dict):
    # Return the default version if not found to force installation
    return app_registry_dict.get("version", "0.0.0.0")

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    dict_arch = {
        "x64" :".windows-core-x64-installer.exe",
        "x86"  : ".windows-core-x86-installer.exe"

    }
    
    git_repo = "Lidarr/Lidarr"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith(".exe") and dict_arch[control.architecture] in download["browser_download_url"] :
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v","")
            filename = download["name"]
            break

    if not isfile(filename):
        package_updated = True
        wget(url_dl,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.exe'):
        if f != filename:
            remove_file(f)
    
    control.set_software_version(version)
    control.save_control_to_wapt()

774e10ab61c92270b12b309197ea6600fd9a61cf08044206ce34b29c300c1ce6 : Lidarr.master.2.12.4.4658.windows-core-x86-installer.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
eaf9877faa51c48f0a89f6d68c03fc20e91ffa2b5cd213a542cd1ae3044abc86 : WAPT/control
ca7542d6deb531d9e0c8af93a76d8ea295666a52fa3fe1f8cb919c3cd02357f3 : WAPT/icon.png
1ab425dd440edc182fdcb5adef1c5908c61cf3f77d874ecd6d6fa7c1d66925e9 : luti.json
0caa3d922e5e5d430c372fd01626666fb5ed501abc4a898e9bc20cb1252964b6 : setup.py
b8e5104acdfb5a1df7bf47c828f251637e04128966bdb38a90c26149dd09f1a3 : update_package.py