you-get
you-get copied to clipboard
- [+] add test_sohu()
test_sohu() failed
Hello @suntong, Thanks for the Pull Request. We :heart: 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.
祝您健康!
Code added based on the following debug output:
$ you-get --debug -i 'https://tv.sohu.com/v/cGwvOTQ0Nzk1Ni8xMDIxMTMwMjguc2h0bWw=.html'
It seems that your ffmpeg is a nightly build.
Please switch to the latest stable if merging failed.
[DEBUG] get_response: https://tv.sohu.com/v/cGwvOTQ0Nzk1Ni8xMDIxMTMwMjguc2h0bWw=.html
[DEBUG] get_response: http://hot.vrs.sohu.com/vrs_flash.action?vid=102113028
you-get: version 0.4.1099, a tiny downloader that scrapes the web.
you-get: Namespace(URL=['https://tv.sohu.com/v/cGwvOTQ0Nzk1Ni8xMDIxMTMwMjguc2h0bWw=.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, itag=None, json=False, no_caption=False, no_merge=False, no_proxy=False, output_dir='.', output_filename=None, password=None, player=None, playlist=False, socks_proxy=None, stream=None, timeout=600, url=False, version=False)
Traceback (most recent call last):
File "/usr/local/bin/you-get", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/you_get/__main__.py", line 92, in main
main(**kwargs)
File "/usr/local/lib/python3.6/dist-packages/you_get/common.py", line 1623, in main
script_main(any_download, any_download_playlist, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/you_get/common.py", line 1507, in script_main
**extra
File "/usr/local/lib/python3.6/dist-packages/you_get/common.py", line 1242, in download_main
download(url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/you_get/common.py", line 1614, in any_download
m.download(url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/you_get/extractors/sohu.py", line 36, in sohu_download
hqvid = info['data'][qtyp]
TypeError: 'NoneType' object is not subscriptable
Hence I guessed that there is a sohu_download()
function to use.
Here are all my python related package versions:
python_2.7.15~rc1-1
python-apt-common_1.6.0
python-crypto_2.6.1-8ubuntu2
python-ldb:amd64_2:1.2.3-1
python-minimal_2.7.15~rc1-1
python-pip-whl_9.0.1-2.3~ubuntu1
python-samba_2:4.7.6+dfsg~ubuntu-0ubuntu2
python-talloc_2.1.10-2ubuntu1
python-tdb_1.3.15-2
python2.7_2.7.15~rc1-1
python2.7-minimal_2.7.15~rc1-1
python3_3.6.5-3
python3-apport_2.20.9-0ubuntu7
python3-apt_1.6.0
python3-asn1crypto_0.24.0-1
python3-attr_17.4.0-2
python3-automat_0.6.0-1
python3-blinker_1.4+dfsg1-0.1
python3-cairo:amd64_1.16.2-1
python3-certifi_2018.1.18-2
python3-cffi-backend_1.11.5-1
python3-chardet_3.0.4-1
python3-click_6.7-3
python3-colorama_0.3.7-1
python3-commandnotfound_18.04.4
python3-configobj_5.0.6-2
python3-constantly_15.1.0-1
python3-cryptography_2.1.4-1ubuntu1.1
python3-dateutil_2.6.1-1
python3-dbus_1.2.6-1
python3-debconf_1.5.66
python3-debian_0.1.32
python3-distro-info_0.18
python3-distupgrade_1:18.04.17
python3-distutils_3.6.5-3
python3-gdbm:amd64_3.6.5-3
python3-gi_3.26.1-2
python3-gi-cairo_3.26.1-2
python3-gpg_1.10.0-1ubuntu1
python3-httplib2_0.9.2+dfsg-1
python3-hyperlink_17.3.1-2
python3-idna_2.6-1
python3-incremental_16.10.1-3
python3-jinja2_2.10-1
python3-json-pointer_1.10-1
python3-jsonpatch_1.19+really1.16-1fakesync1
python3-jsonschema_2.6.0-2
python3-jwt_1.5.3+ds1-1
python3-lib2to3_3.6.5-3
python3-markupsafe_1.0-1build1
python3-minimal_3.6.5-3
python3-newt:amd64_0.52.20-1ubuntu1
python3-oauthlib_2.0.6-1
python3-openssl_17.5.0-1ubuntu1
python3-pam_0.4.2-13.2ubuntu4
python3-pip_9.0.1-2.3~ubuntu1
python3-pkg-resources_39.0.1-2
python3-problem-report_2.20.9-0ubuntu7
python3-pyasn1_0.4.2-3
python3-pyasn1-modules_0.2.1-0.2
python3-pyinotify_0.9.6-1
python3-requests_2.18.4-2
python3-requests-unixsocket_0.1.5-3
python3-serial_3.4-2
python3-service-identity_16.0.0-2
python3-six_1.11.0-2
python3-software-properties_0.96.24.32.3
python3-systemd_234-1build1
python3-twisted_17.9.0-2
python3-twisted-bin:amd64_17.9.0-2
python3-update-manager_1:18.04.11
python3-urllib3_1.22-1
python3-yaml_3.12-1build2
python3-zope.interface_4.3.2-1build2
python3.6_3.6.5-3
python3.6-minimal_3.6.5-3
$ acpl python3
$ apt-cache policy python3
python3:
Installed: 3.6.5-3
Candidate: 3.6.5-3
Version table:
*** 3.6.5-3 500
500 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic