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

AttributeError: 'str' object has no attribute 'get' for vk.vom #23056

Closed
MaxiFilippov opened this issue Nov 12, 2019 · 0 comments
Closed

AttributeError: 'str' object has no attribute 'get' for vk.vom #23056

MaxiFilippov opened this issue Nov 12, 2019 · 0 comments

Comments

@MaxiFilippov
Copy link

@MaxiFilippov MaxiFilippov commented Nov 12, 2019

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2019.11.05
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

I get video info in Python this way

import youtube_dl
from functools import partial
import asyncio
loop = asyncio.get_event_loop()
ydl = youtube_dl.YoutubeDL(
{'proxy': proxy, "username": "",
"password": ""})
with ydl:
extract = partial(ydl.extract_info, url, download=False)
meta = loop.run_in_executor(None, extract)

And when I set username and password I get error AttributeError: 'str' object has no attribute 'get'

Without username and password everything works properly.
Full stacktrace

Traceback (most recent call last):
File "/home/max/Telegram/avd/vkquality.py", line 30, in get_meta
meta = await self.loop.run_in_executor(None, extract)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/max/.local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info
ie_result = ie.extract(url)
File "/home/max/.local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "/home/max/.local/lib/python3.7/site-packages/youtube_dl/extractor/vk.py", line 320, in _real_extract
mv_data = opts.get('mvData') or {}
AttributeError: 'str' object has no attribute 'get'

I use the latest version of ydl, python3.7 and ubuntu 19.04
url to download https://vk.com/video-89926964_456240478?list=7454fac6ceebdcfe01

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.