Repository: yt-dlp/yt-dlp

Issue:
vk.com: Unable to login, incorrect username and/or password
### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2021.10.22**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/ytdl-org/youtube-dl#video-url-contains-an-ampersand-and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

_No response_

### Description

Starting today yt-dlp is unable to login to vk.com with valid credentials. Related youtube-dl issue - https://github.com/ytdl-org/youtube-dl/issues/30163

### Verbose log

```shell
$ yt-dlp -Uv -u PRIVATE -p PRIVATE https://vk.com/video143790756_162105035
[debug] Command-line config: ['-Uv', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://vk.com/video143790756_162105035']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8[debug] yt-dlp version 2021.10.22 (zip)
[debug] Python version 3.8.10 (CPython 64bit) - Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4
[debug] Optional libraries: keyring, sqlite
[debug] Proxy map: {}
yt-dlp is up to date (2021.10.22)
[vk] Downloading login page
[vk] Logging in
ERROR: [vk] Unable to login, incorrect username and/or password
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 591, in extract
    self.initialize()
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 499, in initialize
    self._real_initialize()
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/vk.py", line 63, in _real_initialize
    self._login()
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/vk.py", line 59, in _login
    raise ExtractorError(
yt_dlp.utils.ExtractorError: Unable to login, incorrect username and/or password
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 591, in extract
    self.initialize()
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 499, in initialize
    self._real_initialize()
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/vk.py", line 63, in _real_initialize
    self._login()
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/vk.py", line 59, in _login
    raise ExtractorError(
yt_dlp.utils.ExtractorError: Unable to login, incorrect username and/or password

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1280, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1305, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 609, in extract
    raise ExtractorError(
yt_dlp.utils.ExtractorError: [vk] Unable to login, incorrect username and/or password
```



Discussion:

Resolving patch:
diff --git a/yt_dlp/extractor/vk.py b/yt_dlp/extractor/vk.py
--- a/yt_dlp/extractor/vk.py
+++ b/yt_dlp/extractor/vk.py
@@ -51,7 +51,7 @@ def _login(self):
         self._apply_first_set_cookie_header(url_handle, 'remixlhk')
 
         login_page = self._download_webpage(
-            'https://login.vk.com/?act=login', None,
+            'https://vk.com/login', None,
             note='Logging in',
             data=urlencode_postdata(login_form))
 


Test patch: