-
Notifications
You must be signed in to change notification settings - Fork 368
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
[Vlive] Fix extrator for handling playlist #223
Conversation
I'm just wondering where you found I tested the example you wrote and it seems to work with any values like |
From what I can tell the I also don't think this code accounts for video posts connected to a playlist, eg Edit: I also want to add that as I noted in #101, I don't think it is possible to detect whether a video or video post is connected to a playlist from the text of the url alone. Edit 2: I think the best way forward would be to check for the |
@SeonjaeHyeon I found When the program goes through entries in a channel, it checks However, for some entries, the link points to an invalid address. I found that for entries with invalid addresses, I assumed that only |
@exwm This is true. I have compared webpage data from
As you have mentioned, adding I found that if Some workarounds might include modifying VLiveIE code to also handle a playlist.
If this flag redirects the program to
|
I don't think it should redirect to the playlist extractor when a user provides the url for a single video. Since playlists don't seem to have a dedicated url, It does seem like merging |
As @kyuyeunk said, it seems that the plugin cannot redirect to
I agree with @exwm . Like I said above, we may get some problems if we separate them and add redirection way. |
I agree with comments of @exwm and @SeonjaeHyeon that One of the problem I encountered during implementation is that there is no way to tell if a url is intended for video only or a playlist. Specifically, I tried modifying To solve the issue, I implemented Meanwhile, The only concern is the possibility of However, order of I have tested the commit using both types of url (i.e., https://www.vlive.tv/video/111110 and https://www.vlive.tv/post/1-18363798) and verified that it works correctly. Also, flags such as --no-playlist works correctly. |
It seems like the method i used in commit 9b539c3 doesnt pass the following test
Therefore, a different method should be used. |
It is better to ignore comment #223 (comment) and only read this to avoid confusion. The latest commit merges If I have tested the commit using both types of url (i.e., https://www.vlive.tv/video/111110 and https://www.vlive.tv/post/1-18363798) and verified that it works correctly. |
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.
Ignore this comment.
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.
I think the suppertedsites.md
(https://github.com/blackjack4494/yt-dlc/blob/master/docs/supportedsites.md) should be regenerated/updated since the explicit playlist extractor is removed. Playlists are still supported in their new form though and I'm not sure where/how that should be documented.
Looking through other entries in |
Everything looks fine, but it seems that the plugin doesn't collect all videos of playlist. That's because there is not all the video information in JSON Data. The front part of the playlist was omitted. (maybe due to length limit or some reasons) |
I've looked into Comment from previous thread (#101 (comment)) mentioned that Also, I'm not certain if Using |
Ohh.. I forgot to mention Now, it looks perfect for me. Downloading playlist works correctly. 👍 |
@blackjack4494 The pull request has been modified to resolve conflicts. And I have verified that it's working as intended. Also, VLiveChannelIE has been be modified, as it caused unintended behavior when VLiveIE was modified to support playlists. |
closes blackjack4494#223 Authored by: nao20010128nao Modified from: https://github.com/nao20010128nao/ytdl-patched/blob/9e4a0e061a558cdb05a618e27f47ca0ac56ece94/youtube_dl/extractor/whowatch.py
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 addresses the issue #221 .
Although substantional work has been done to modify code for the revamped website, code regarding playlists has not seen an update.
This fixe uses similar code as recently modified VLiveIE to parse playlist info and download it.
Also, this fix modifies _TESTS to contain valid examples as the previous examples no longer belongs to a playlist.
I assume this is related to the website being revamped and giving lower focus to the playlist feature.