Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updater: download of latest weekly channel mpv build fails. #501

Closed
mrplumber opened this issue Nov 6, 2023 · 1 comment
Closed

updater: download of latest weekly channel mpv build fails. #501

mrplumber opened this issue Nov 6, 2023 · 1 comment

Comments

@mrplumber
Copy link

My settings.xml:

<settings>
  <channel>weekly</channel>
  <arch>x86_64</arch>
  <autodelete>false</autodelete>
  <getffmpeg>true</getffmpeg>
</settings>

updater.bat output:

Running script without administrator privileges
Checking Windows PowerShell version -- 7
Fetching RSS feed for mpv
Newer mpv build available
Downloading mpv-x86_64-20231105-git-7480efa.7z
7z already exist. Skipped download
Extracting mpv-x86_64-20231105-git-7480efa.7z

7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20

Scanning the drive for archives:
1 file, 116262 bytes (114 KiB)

Extracting archive: mpv-x86_64-20231105-git-7480efa.7z
ERROR: mpv-x86_64-20231105-git-7480efa.7z
mpv-x86_64-20231105-git-7480efa.7z
Open ERROR: Cannot open the file as [7z] archive


ERRORS:
Is not archive

Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0

Updater script downloads HTML webpage instead of file.
As a workaround I changed user agent in updater.ps function Download-Archive:

Invoke-WebRequest -Uri $link -UserAgent "Wget" -OutFile $filename

This works OK now.

@mrplumber mrplumber changed the title updater: download of latest weakly channel mpv build fails. updater: download of latest weekly channel mpv build fails. Nov 6, 2023
@Pentaphon
Copy link

Pentaphon commented Nov 12, 2023

@shinchiro I also get this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants