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

mgtv videos download failed #2859

Closed
wants to merge 1 commit into from
Closed

mgtv videos download failed #2859

wants to merge 1 commit into from

Conversation

MC-dusk
Copy link

@MC-dusk MC-dusk commented Dec 23, 2020

芒果TV http://www.mgtv.com 视频下载失败

--debug信息位于

  • mgtv - debug1.txt
  • mgtv - debug2.txt

@soimort-bot
Copy link
Collaborator

Hello @MC-dusk,
Thanks for the Pull Request. We ❤️ our contributors!
Please wait for one of our human maintainers to review your patches. This may take a few days to weeks. Also, please understand that although your Pull Request may or may not be eventually merged, we value all contributions equally.

祝您健康!

@sinofool
Copy link
Contributor

sinofool commented Jan 9, 2021

试一下最新的更改。

@MC-dusk
Copy link
Author

MC-dusk commented Jan 10, 2021

I'm sorry, but it still doesn't work.
The debug info is almost the same, except the line number of code.

PS G:\> you-get -i 'https://www.mgtv.com/s/3819840.html' --debug
[DEBUG] get_content: http://pcweb.api.mgtv.com/player/video?video_id=None
you-get: version 0.4.1500, a tiny downloader that scrapes the web.
you-get: Namespace(URL=['https://www.mgtv.com/s/3819840.html'], auto_rename=False, cookies=None, debug=True, extractor_proxy=None, force=False, format=None, help=False, http_proxy=None, info=True, input_file=None, insecure=False, itag=None, json=False, no_caption=False, no_merge=False, no_proxy=False, output_dir='.', output_filename=None, password=None, player=None, playlist=False, skip_existing_file_size_check=False, socks_proxy=None, stream=None, timeout=600, url=False, version=False)
Traceback (most recent call last):
  File "c:\program files (x86)\python38-32\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\program files (x86)\python38-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files (x86)\Python38-32\Scripts\you-get.exe\__main__.py", line 7, in <module>
  File "C:\Users\SJHAO\AppData\Roaming\Python\Python38\site-packages\you_get\__main__.py", line 92, in main
    main(**kwargs)
  File "C:\Users\SJHAO\AppData\Roaming\Python\Python38\site-packages\you_get\common.py", line 1798, in main
    script_main(any_download, any_download_playlist, **kwargs)
  File "C:\Users\SJHAO\AppData\Roaming\Python\Python38\site-packages\you_get\common.py", line 1680, in script_main
    download_main(
  File "C:\Users\SJHAO\AppData\Roaming\Python\Python38\site-packages\you_get\common.py", line 1327, in download_main
    download(url, **kwargs)
  File "C:\Users\SJHAO\AppData\Roaming\Python\Python38\site-packages\you_get\common.py", line 1789, in any_download
    m.download(url, **kwargs)
  File "C:\Users\SJHAO\AppData\Roaming\Python\Python38\site-packages\you_get\extractor.py", line 48, in download_by_url
    self.prepare(**kwargs)
  File "C:\Users\SJHAO\AppData\Roaming\Python\Python38\site-packages\you_get\extractors\mgtv.py", line 68, in prepare
    self.title = content['data']['info']['title']
KeyError: 'info'

@HermanZzz
Copy link

doesn't work either

@HermanZzz
Copy link

you-get --json 'https://www.mgtv.com/b/52389/669722.html' --debug [DEBUG] get_content: http://pcweb.api.mgtv.com/player/video?video_id=669722 you-get: version 0.4.1500, a tiny downloader that scrapes the web. you-get: Namespace(URL=['https://www.mgtv.com/b/52389/669722.html'], auto_rename=False, cookies=None, debug=True, extractor_proxy=None, force=False, format=None, help=False, http_proxy=None, info=False, input_file=None, insecure=False, itag=None, json=True, no_caption=False, no_merge=False, no_proxy=False, output_dir='.', output_filename=None, password=None, player=None, playlist=False, skip_existing_file_size_check=False, socks_proxy=None, stream=None, timeout=600, url=False, version=False) Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/bin/you-get", line 8, in <module> sys.exit(main()) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/you_get/__main__.py", line 92, in main main(**kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/you_get/common.py", line 1798, in main script_main(any_download, any_download_playlist, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/you_get/common.py", line 1686, in script_main **extra File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/you_get/common.py", line 1327, in download_main download(url, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/you_get/common.py", line 1789, in any_download m.download(url, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/you_get/extractor.py", line 48, in download_by_url self.prepare(**kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/you_get/extractors/mgtv.py", line 68, in prepare self.title = content['data']['info']['title'] KeyError: 'info'

@sinofool
Copy link
Contributor

Created another PR #2863 trying to fix both cases.

@soimort soimort closed this Jan 15, 2021
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

Successfully merging this pull request may close these issues.

5 participants