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
[ie/afreecatv] Fix extractor #9566
Conversation
still is problem : ERROR: [afreecatv] 109615861: 109615861: Failed to parse XML (caused by ParseError |
Are you sure you used the suggested changes? There shouldn't be anything to parse XML left. |
I deployed yt_dlp using Is it because the latest package was not downloaded? Thank you. |
I think you should get yt-dlp from Tomoka1's branch first (because it's not in main branch yet) While the aim of the PR is not to extract XML file, i think it nice if we could extract the |
What should be done, thank you |
new probelm ERROR: [afreecatv] 109615861: 109615861: HTTP Error 502: Bad Gateway (caused by <HTTPError 502: Bad Gateway>) |
HobbyistDev wrote:
I am not sure what you're referring to. [~]$ python -m yt_dlp https://vod.afreecatv.com/player/109615861 --print "%(upload_date)s %(title)s"
20231116 [클립]생)사랑스런 민영이 오늘은 시스루~ 검스 ㅎ ㅏㅏㅏ ㅀ zyz-1998 wrote:
Not replicable on my side. I assume you're sitting in some geolocked region. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial review
We don't need the for _ in range(2):
loop at all anymore, right? IIRC it was used to re-fetch adult content by updating the query for the XML request. But we don't do that anymore.
Can you also update the tests and add an adult content test, since the current one is dead?
I removed all the dead code and simplified/modernized what was left. Please test my changes and let me know what you think. My previous review is no longer applicable except for this part:
I've added an |
@bashonly Oh, i just wrote up-to-date tests myself before seeing the merge. Sorry i didn't have too much time this week. Thanks for your hard work! |
Closes yt-dlp#4592, Closes yt-dlp#8862, Closes yt-dlp#9544 Authored by: bashonly, Tomoka1 Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information
As in a somewhat reversal of #6283 this uses fully JSON again as some necessary information are not provided in XML any more.
This code will not keep XML part for backward compatibility.
The code is tested with login and without, on adult and regular.
Closes #4592, Closes #8862, Closes #9544
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:
What is the purpose of your pull request?