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
[QingTing] Add new extractor #31021
base: master
Are you sure you want to change the base?
[QingTing] Add new extractor #31021
Conversation
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.
Thanks for your work.
I'm not sure how this extraction is meant to work.
- I can play a link from the site like https://www.qingting.fm/channels/214008/programs/7016167/ in the UK but the
.../vchannels/...
links just give a page whose source isOK
, with no actual HTML, JS or whatever. - The
/channels/
page tries for a URL with .mp3 that got 504 Gateway Timeout; the actual audio played seems to be m4a. - Where would a user find a link like the test URL? I only see
/channels/
links on the site, and surely those need to be handled? If there is a simple correspondence you can have an IE class for each one and direct from one to the other usingurl_result()
.
Assuming something might work somehow I've commented on the existing code anyway.
Co-authored-by: dirkf <fieldhouse@gmx.net>
Co-authored-by: dirkf <fieldhouse@gmx.net>
_html_search_regex() has default fatal=True: add a default to fall back to _og_search_title() allow line break in .* Co-authored-by: dirkf <fieldhouse@gmx.net>
Co-authored-by: dirkf <fieldhouse@gmx.net>
There are two types of URLs, desktop url and mobile url. The corresponding mobile url of desktop url https://www.qingting.fm/channels/214008/programs/7016167/ is https://m.qtfm.cn/vchannels/214008/programs/7016167/. A new extractor is added for desktop url, which will extract the |
This PR currently contains the following errors (thanks Dirkf for enabling the tests):
there might be more errors in this log, but I don't think so |
Thanks a lot! These errors have been fixed. |
This is my first pull request on GitHub, please help me further refine my code and merge it into master. Thanks a lot! |
This is such an ugly website that we would only harm youtube-dl with it... |
The rules for site support don't cover aesthetics of design or content! |
I really appreciate your patience and kindness in this PR, which is invaluable for a novice in the filed of open-source |
It is your repository and therefore your responsibility. I don't know anyone who has such an ugly website and the people who look at |
If there is test metadata that you think people might find unpleasant, by all means propose it to be changed to |
The golden rule: never look at a random website from extractors.py, as it will most likely be NSFW! |
We humans are extremely curious creatures by nature. If someone stops us from doing something, we will keep trying until we fall out of experience. I think it sucks that people accept pull requests like this. Getting more people into that strain by watching this content out of curiosity. The one who accepted the pull request made me angry because he can't think that far, but he always helped me with help, so I tend to keep my mouth shut, but I don't think it's good! |
Like, I thought that's common sense when you work on/with an app that downloads from websites ? Well, any app whose source code contains any links, really, and being NSFW is pretty much irrelevant to the "don't click on random links if you dunno what you're doing" point. |
Where is the cuckoo reaction emoji when you need it. |
@UnixCro Out of interest, what is on the website (I didn't open it for obvious reasons)? I had assumed that you meant that you just didn't like that website, but if there is something actually bad on that website then I take back what I said (although obviously it's not my call because I'm not a maintainer) |
The same pull request (yt-dlp/yt-dlp#5329) has already been merge in yt-dlp, which is a youtube-dl fork with additional features and fixes. @dirkf |
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])Before submitting a pull request make sure you have:
In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:
What is the purpose of your pull request?
Description of your pull request and other information
This pull request adds qingting.fm, probably the largest podcast website in China.