Browse Source

Fixed HEVC downloading

master
Dmitry Nefedov 5 months ago
parent
commit
41ac867f0e
  1. 2
      README.md
  2. 2
      README_de-de.md
  3. 2
      README_uk-ua.md
  4. 6
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  5. 6
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

2
README.md

@ -148,7 +148,7 @@
* The <kbd>TAB</kbd> [autocompletion](#the-tab-autocomplete-read-more-here) for function and its' arguments by typing first letters;
* Disable Windows features displaying friendly packages names with pop-up form written in [WPF](#screenshots);
* Uninstall Windows capabilities displaying friendly packages names with pop-up form written in [WPF](#screenshots);
* Download and install the [HEVC Video Extensions from Device Manufacturer](https://www.microsoft.com/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq) to be able to open [HEVC](https://en.wikipedia.org/wiki/H.265) format;
* Download and install the [HEVC Video Extensions from Device Manufacturer](https://apps.microsoft.com/detail/9N4WGH0Z6VHQ) to be able to open [HEVC](https://en.wikipedia.org/wiki/H.265) format;
* Register app, calculate hash, and set as default for specific extension without the "How do you want to open this" pop-up using special [function](https://github.com/DanysysTeam/PS-SFTA);
* Export all Windows associations. Associations will be exported as Application_Associations.json file in script root folder;
* Import exported JSON file after a clean installation. You have to install all apps according to an exported JSON file to restore all associations;

2
README_de-de.md

@ -148,7 +148,7 @@
* Die <kbd>TAB</kbd> [Autovervollständigung](#the-tab-autocomplete-read-more-here) für Funktionen und ihre Argumente durch Eingabe der ersten Buchstaben;
* Deaktivieren Sie Windows-Funktionen, die Paketnamen mit einem in [WPF] geschriebenen Popup-Formular, in lokalisierter Sprache anzeigen (#screenshots);
* Deinstallieren Sie Windows-Funktionen, die Paketnamen mit einem in [WPF] geschriebenen Popup-Formular, in lokalisierter Sprache anzeigen (#screenshots);
* Laden Sie die [HEVC Video Extensions from Device Manufacturer](https://www.microsoft.com/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq) herunter und installieren Sie sie, um das Format [HEVC] (https://en.wikipedia.org/wiki/H.265) öffnen zu können;
* Laden Sie die [HEVC Video Extensions from Device Manufacturer](https://apps.microsoft.com/detail/9N4WGH0Z6VHQ) herunter und installieren Sie sie, um das Format [HEVC] (https://en.wikipedia.org/wiki/H.265) öffnen zu können;
* Registrieren Sie Anwendung, berechnen Sie den Hash und legen Sie ihn als Standard für eine bestimmte Erweiterung fest, ohne das Popup-Fenster "Wie möchten Sie dies öffnen?" sehen zu müssen. All das mit einer speziellen [Funktion] (https://github.com/DanysysTeam/PS-SFTA);
* Exportieren Sie alle Windows-Verknüpfungen in die Datei Application_Associations.json in den Skriptstammordner;
* Importieren Sie alle Windows-Zuordnungen aus einer JSON-Datei. Sie müssen alle Anwendungen gemäß einer exportierten JSON-Datei installieren, um alle Zuordnungen wiederherzustellen;

2
README_uk-ua.md

@ -148,7 +148,7 @@
* <kbd>TAB</kbd> [автодоповнення](#автодоповнення-tab-детальніше-тут) для функції та її аргументів шляхом введення перших літер;
* Вимкнення функцій Windows для відображення дружніх назв пакетів у спливаючій формі, написаній на [WPF](#скріншоти);
* Видалення можливостей Windows відображати дружні назви пакетів у спливаючій формі, написаній на [WPF](#скріншоти);
* Завантаження та встановлення [HEVC Video Extensions від виробника пристрою](https://www.microsoft.com/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq) для відкриття формата [HEVC](https://uk.wikipedia.org/wiki/H.265);
* Завантаження та встановлення [HEVC Video Extensions від виробника пристрою](https://apps.microsoft.com/detail/9N4WGH0Z6VHQ) для відкриття формата [HEVC](https://uk.wikipedia.org/wiki/H.265);
* Реєстрація програми, розрахунок хешу та встановлення за замовчуванням для певного розширення без спливаючого вікна "Як ви хочете відкрити це" за допомогою спеціальної [функції](https://github.com/DanysysTeam/PS-SFTA);
* Експортувати всі асоціації в Windows у корінь папки у вигляді файлу Application_Associations.json;
Імпортувати всі асоціації в Windows з файлу Application_Associations.json. Вам необхідно встановити всі програми згідно з експортованим файлом Application_Associations.json, щоб відновити всі асоціації;

6
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -12047,7 +12047,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
HEVC -Manually
.LINK
https://www.microsoft.com/store/productId/9n4wgh0z6vhq
https://apps.microsoft.com/detail/9N4WGH0Z6VHQ
.NOTES
The extension can be installed without Microsoft account
@ -12127,7 +12127,7 @@ function HEVC
$Body = @{
type = "url"
url = "https://www.microsoft.com/store/productId/9n4wgh0z6vhq"
url = "https://apps.microsoft.com/detail/9N4WGH0Z6VHQ"
ring = "Retail"
lang = "en-US"
}
@ -12142,7 +12142,7 @@ function HEVC
$Raw = Invoke-WebRequest @Parameters
# Parsing the page
$Raw | Select-String -Pattern '<tr style.*<a href=\"(?<url>.*)"\s.*>(?<text>.*)<\/a>' -AllMatches | ForEach-Object -Process {$_.Matches} | Where-Object -FilterScript {$_.Value -like "*x64*.appx*"} | ForEach-Object -Process {
$Raw | Select-String -Pattern '<tr style.*<a href=\"(?<url>.*)"\s.*>(?<text>.*)<\/a>' -AllMatches | ForEach-Object -Process {$_.Matches} | Where-Object -FilterScript {$_.Value -like "*HEVCVideoExtension*.appxbundle*"} | ForEach-Object -Process {
$TempURL = ($_.Groups | Select-Object -Index 1).Value
$HEVCPackageName = ($_.Groups | Select-Object -Index 2).Value.Split("_") | Select-Object -Index 1

6
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -12071,7 +12071,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
HEVC -Manually
.LINK
https://www.microsoft.com/store/productId/9n4wgh0z6vhq
https://apps.microsoft.com/detail/9N4WGH0Z6VHQ
.NOTES
The extension can be installed without Microsoft account
@ -12151,7 +12151,7 @@ function HEVC
$Body = @{
type = "url"
url = "https://www.microsoft.com/store/productId/9n4wgh0z6vhq"
url = "https://apps.microsoft.com/detail/9N4WGH0Z6VHQ"
ring = "Retail"
lang = "en-US"
}
@ -12166,7 +12166,7 @@ function HEVC
$Raw = Invoke-WebRequest @Parameters
# Parsing the page
$Raw | Select-String -Pattern '<tr style.*<a href=\"(?<url>.*)"\s.*>(?<text>.*)<\/a>' -AllMatches | ForEach-Object -Process {$_.Matches} | Where-Object -FilterScript {$_.Value -like "*x64*.appx*"} | ForEach-Object -Process {
$Raw | Select-String -Pattern '<tr style.*<a href=\"(?<url>.*)"\s.*>(?<text>.*)<\/a>' -AllMatches | ForEach-Object -Process {$_.Matches} | Where-Object -FilterScript {$_.Value -like "*HEVCVideoExtension*.appxbundle*"} | ForEach-Object -Process {
$TempURL = ($_.Groups | Select-Object -Index 1).Value
$HEVCPackageName = ($_.Groups | Select-Object -Index 2).Value.Split("_") | Select-Object -Index 1

Loading…
Cancel
Save