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

please support BitChute (free speech first video hoster) #14052

Closed
ghost opened this issue Aug 28, 2017 · 1 comment
Closed

please support BitChute (free speech first video hoster) #14052

ghost opened this issue Aug 28, 2017 · 1 comment

Comments

@ghost
Copy link

@ghost ghost commented Aug 28, 2017

thanks in advance

youtube-dl -v https://www.bitchute.com/video/szoMrox2JEI/
[debug] System config: [u'--recode-video=mp4', u'-f', u'bestvideo+bestaudio/best']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.bitchute.com/video/szoMrox2JEI/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.08.27.1
[debug] Python version 2.7.10 - Darwin-16.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.3.3, ffprobe 3.3.3, rtmpdump 2.4
[debug] Proxy map: {'http': 'http://127.0.0.1:8118', 'https': 'http://127.0.0.1:8118'}
[generic] szoMrox2JEI: Requesting header
WARNING: Falling back on generic information extractor.
[generic] szoMrox2JEI: Downloading webpage
[generic] szoMrox2JEI: Extracting information
ERROR: Unsupported URL: https://www.bitchute.com/video/szoMrox2JEI/
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2116, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2539, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2528, in _XML
    parser.feed(text)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 58, column 31
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 776, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 434, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2989, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://www.bitchute.com/video/szoMrox2JEI/

https://www.bitchute.com/video/szoMrox2JEI/
Single video: https://www.bitchute.com/embed/lbb5G1hjPhw/
Single video: https://www.bitchute.com/embed/msVA0ajknjA/
Playlist: https://www.bitchute.com/channel/stefanmolyneux/
Playlist: https://www.bitchute.com/feeds/rss/channel/corbettreport/

@Tatsh
Copy link
Contributor

@Tatsh Tatsh commented Aug 29, 2017

@tv21 If that's the case demand removal of all the porn site extractors. Far more damaging long-term, scientifically proven (see brain studies on porn addicts). youtube-dl is neutral except on sites that are dedicated to copyright infringement.

Support for this is going to require some extra work compared to others. Two ways to achieve this:

  • Download direct via the HTTP URI, which is extremely slow from what I can tell. The MP4 URI expires eventually so I do not know how reliable this is anyway. You can try downloading in Firefox. Easy but probably not reliable.
  • Use the torrent file, making a lightweight torrent client in downloaders (no this is not as hard as it sounds). The torrent client must ignore wss: URLs. On any video page, there is this line:
<script>
    var torrentId = "https://www.bitchute.com/torrent/2637/VoJn2bZ7i0Cd.torrent"
// ...
</script>

If this line isn't found for some reason, fall back on the meta tag and replace .jpg with .torrent: <meta name="twitter:image:src" content="https://www.bitchute.com/torrent/1565/CdQwcvtdRVyE.jpg">

Most certainly it will be faster than the direct HTTP method, especially since unlike their site, the normal torrent client can do out of order downloading. As far as I can tell, there is only one format they use so there is no need to be concerned about the user's preferences on this.

@ytdl-org ytdl-org locked and limited conversation to collaborators Aug 29, 2017
@ytdl-org ytdl-org deleted a comment from tv21 Aug 29, 2017
@ytdl-org ytdl-org deleted a comment from klopsi Aug 29, 2017
@ytdl-org ytdl-org deleted a comment from tv21 Aug 29, 2017
@ytdl-org ytdl-org deleted a comment from klopsi Aug 29, 2017
@ytdl-org ytdl-org deleted a comment from Tatsh Aug 29, 2017
@dstftw dstftw closed this in b65e3b0 Aug 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.