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

[Bigo] Fix json extraction #8893

Merged
merged 1 commit into from Dec 31, 2023
Merged

[Bigo] Fix json extraction #8893

merged 1 commit into from Dec 31, 2023

Conversation

DmitryScaletta
Copy link
Contributor

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Fixes Bigo extractor.

For some reason getInternalStudioInfo endpoint now returns xml in python by default

Response
<OfficialCommonResult>
	<code>0</code>
	<data>
		<sid>2622124741</sid>
		<siteId>805516745</siteId>
		<uid>582287518</uid>
		<avatar>http://esx.bigo.sg/na_live/3a3/1dB9jT.jpg</avatar>
		<nick_name>Chaise</nick_name>
		<country_code>US</country_code>
		<gameTitle></gameTitle>
		<gameId>0</gameId>
		<roomTopic> Back in the hospital </roomTopic>
		<snapshot>http://esx.bigo.sg/na_live/3a3/1DljJQ.jpg</snapshot>
		<alive>1</alive>
		<roomId>7049898423382340293</roomId>
		<roomStatus>0</roomStatus>
		<covers/>
		<client_ip>152.32.180.207</client_ip>
		<hls_src>https://86488B67.cubetecn.com:1444/list_3453011328_2622124741_0.m3u8</hls_src>
		<cdn_src/>
		<passRoom>false</passRoom>
		<reserver>4108</reserver>
		<clientBigoId>805516745</clientBigoId>
		<roomType>0</roomType>
	</data>
	<msg>success</msg>
	<flag/>
</OfficialCommonResult>

I added 'Accept': 'application/json' header and now it works fine.

$ ./yt-dlp.cmd https://www.bigo.tv/805516745 -F
[Bigo] Extracting URL: https://www.bigo.tv/805516745 
[Bigo] 805516745: Downloading JSON metadata 
[Bigo] 805516745: Downloading m3u8 information 
[info] Available formats for 7049898423382340293: 
ID EXT RESOLUTION │ PROTO │ VCODEC  ACODEC 
───────────────────────────────────────────
0  mp4 unknown    │ m3u8F │ unknown unknown

Fixes #8852

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

@bashonly bashonly merged commit 85a2d07 into yt-dlp:master Dec 31, 2023
6 checks passed
@bashonly bashonly added the site-bug Issue with a specific website label Dec 31, 2023
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bigo.tv Site Broken
3 participants