-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Enhanced download functionality for yt-dlp unsupported links #363
Conversation
] | ||
): | ||
return False | ||
if "www.instagram.com" in domain: |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization High
www.instagram.com
return False | ||
if "www.instagram.com" in domain: | ||
return instagram(url, tempdir) | ||
elif "pixeldrain.com" in domain: |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization High
pixeldrain.com
return xasiat(url, tempdir) | ||
|
||
|
||
def sp_ytdl_download(url: str, tempdir: str): |
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.
the code in this function appears to be much duplicated comparing with the one in downloader.py
. Anyway we can avoid those duplicates?
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.
Yes, It's the same function striped some parts. It would be great if we can call the function in downloader.py
but I can't think of a way without it looping itself because some URLs(even tho it's direct URL) include domain parts used in handling function(sp_dl).
Sorry for the long delay. Generally speaking it seems okay, I will merge it to master in a day or two |
No worries at all; I completely understand that we're all busy with our lives. It's been my pleasure to contribute, even in a small way, to the development of a software that I use and enjoy every day. Thank you for considering my contribution. By the way, I still haven't been able to figure out that weird Instagram link bug. If possible, could you please take a look into it before merging? Your expertise might help resolve the issue. |
Moved
download_instagram
function to new file calledsp_downloader.py
that now on handle all links that yt-dlp doesn’t support.Added pixeldrain.com as the first step.
yt-dlp version bump to new release 2024.03.10