-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Facebook live videos cannot be played using www.facebookcorewwwi.onion
domain
#2164
Comments
In theory it should be easy to support, I assume you are using the diff --git a/src/streamlink/plugins/facebook.py b/src/streamlink/plugins/facebook.py
index 537b4a5a..7dedad51 100644
--- a/src/streamlink/plugins/facebook.py
+++ b/src/streamlink/plugins/facebook.py
@@ -7,7 +7,7 @@ from streamlink.utils import parse_json
class Facebook(Plugin):
- _url_re = re.compile(r"https?://(?:www\.)?facebook\.com/[^/]+/(posts|videos)")
+ _url_re = re.compile(r"https?://(?:www\.)?facebook(?:\.com|corewwwi\.onion)/[^/]+/(posts|videos)")
_src_re = re.compile(r'''(sd|hd)_src["']?\s*:\s*(?P<quote>["'])(?P<url>.+?)(?P=quote)''')
_playlist_re = re.compile(r'''video:\[({url:".+?}\])''')
_plurl_re = re.compile(r'''url:"(.*?)"''') |
As listed in the OP. The fix you suggest works. Perhaps it should be noted that these are also valid domains:
in case you would like to extend the regex to support these too. The |
Actually it seems possible to see there is a live video on
and below it there is a big thumbnail with the red "Live" icon and a round Play button. Refreshing the page refreshes next frames from the video. Looking at the HTML code reveals that the Play button is an anchor with href:
Clicking that suggest an xdg-open (on Linux) but there is no program associated with that:
That of course may be filed in a separate issue but I thought I should mention it. It would be good if |
…eamlink#2286) Immediate playback for DASH streams with separate audio and video streams will not be supported until proper SegmentBase handling is implemented. closes streamlink#2133 closes streamlink#2164 closes streamlink#2324 WIP for streamlink#2168
…eamlink#2286) Immediate playback for DASH streams with separate audio and video streams will not be supported until proper SegmentBase handling is implemented. closes streamlink#2133 closes streamlink#2164 closes streamlink#2324 WIP for streamlink#2168
…eamlink#2286) Immediate playback for DASH streams with separate audio and video streams will not be supported until proper SegmentBase handling is implemented. closes streamlink#2133 closes streamlink#2164 closes streamlink#2324 WIP for streamlink#2168
Facebook live videos cannot be played if they use the
www.facebookcorewwwi.onion
domain, e.g.https://www.facebookcorewwwi.onion/somepage/videos/video_id
which is a valid URI playing fine in browser (using Tor proxy).Reproduction steps / Explicit stream URLs to test
streamlink --player=mpv --http-proxy socks5h://127.0.0.1:9050/ --https-proxy socks5h://127.0.0.1:9050/ --rtmp-proxy socks5h://127.0.0.1:9050/ https://www.facebookcorewwwi.onion/somepage/videos/video_id best
Log output
Additional comments, screenshots, etc.
Replacing
facebookcorewwwi.onion
withfacebook.com
makes the above command line work fine (through Tor).The text was updated successfully, but these errors were encountered: