-
Notifications
You must be signed in to change notification settings - Fork 130
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
[BUG] YouTube video link with playlist parameter is mistaken as playlist link #601
Comments
Hello 👋! Thank you very much for raising an issue 🙌! The maintainers will get back to you soon for discussion over the issue! 🚀Meanwhile you can also discuss about the project in our Discord Server 😀 |
I want to work on this issue. Is anyone working on this? |
@Tarunkumarkanakam Thank you for your interest in the issue. This issue is still looking for contributors. I am assigning this issue to you.
Only the video (identified from the
Yeah, you are right. The YouTube url provided must either have |
Well, I am a Windows user. To run in a docker environment I need to execute If yes can you give steps to do that? |
@SaptarshiSarkar12 EDIT: |
@Tarunkumarkanakam I think yes. I don't have a windows machine and I tried multiple times to install wsl in my Windows VM but it failed each time and finally destructed the whole VM, so, I had to delete the whole setup 😢. |
Yeah, sometimes YouTube might block successive requests but not as harshly as Instagram does 😞. |
😄 Well I'm a Windows, Mac and a Linux user. LoL XD |
How? So, you might have a mac with both windows and linux VM? |
Nah I use my macbook as my daily driver, I have a Windows machine in our office (internship) and in my home which I mostly use for development. |
@Tarunkumarkanakam Can you try running the officially released docker images in wsl if it opens up the window? |
I see. Great 👍 |
Can you guide me |
@Tarunkumarkanakam Yeah, sure. Follow the below steps. Ensure you have docker installed in wsl.
|
@SaptarshiSarkar12 As per the issue description, using CLI the filename isn't getting fetched and the application is prompting the user to exit. Well, In my case the file name was found and the video got downloaded too without any changes in the code. Please check the attached image. Let me know if I'm missing anything |
@Tarunkumarkanakam The filename is the name of the playlist and not of the video. So, sometimes it shows filename detection failed if yt-dlp reported error else it uses playlist name if available. Hence, it is better to use |
Interesting. It used to work some months back and without even a small change, it stopped working now 😢. How inconsistent can these systems be 🙃! |
Tell me what |
@Tarunkumarkanakam Please reply |
I'm extremely sorry for not responding, I caught up in placement work at university. The weather in our region is very worse though. |
I'll try this today and let you know about the output. |
Yes its WSL 2 |
It's okay 🙃.
I see. @Tarunkumarkanakam Where do you live? |
Great 👍 |
@Tarunkumarkanakam Do you have IntelliJ installed on your machine? If not, which IDE are you using for development? |
yes, its intellij |
Vijayawada, Andhra Pradesh |
It's a great IDE 😄 👍 |
I see. Awesome place ❤️. |
Awesome 👏.
So, here's what you need to finish 👇
|
The current changes (the code I sent in previous messages) are in Drifty_CLI.java Moreover, the Drifty CLI identifies |
@Tarunkumarkanakam If done, no need to update then. Where have you kept the
The most important step of URL validation is actually pinging the URL and it fails in this case. So, it is reported as
Interesting 💡. Can you show me a screenshot?
Yeah, but the outputs are counter-intuitive, right? You won't process a link which is invalid 😆.
Leave this task then. I also don't think people would go too crazy to add leading |
This is the updated code in Drifty_CLI.java I'm preparing screenshots and short videos, I'll send once done |
@Tarunkumarkanakam Looks good for YouTube videos.
Can it also handle playlists? Or you will be implementing it later? |
I'm implementing it. Except that I guess everything works as expected. |
Great 👍. Would love to see your work on this ❤️.
Yeah, it should I suppose. @Tarunkumarkanakam Can you share any of your socials (linkedIn preferably or twitter)? I would like to discuss something with you. |
We can connect through LinkedIn, https://www.linkedin.com/in/tarun-kanakam |
Invitation sent. |
Describe the bug
A person clicked on a video from a YouTube playlist and when the link to the video is pasted in Drifty,
Steps To Reproduce
watch?v=
andlist=
parameters), for example, this link - https://www.youtube.com/watch?v=uy_PEGgUF4U&list=PL0lo9MOBetEFGPccyxyfex8BYF_PQUQWn&index=1Expected Behavior
Drifty must recognize that the URL is of a YouTube video and not of any playlists.
Screenshots
Drifty CLI
Drifty GUI
File.Name.detection.going.on.for.indefinite.time.mp4
Additional information
A regex match to identify if the provided link is a YouTube playlist or a specific YouTube video link, must be added.
Yt-dlp fails to identify if a specific video is asked rather than the full playlist as seen when this code fragment is executed.
Drifty/GUI/src/main/java/ui/GetFilename.java
Lines 172 to 192 in 3fff0e5
A possible and reliable soluyion is to truncate the url upto the specific video id (the resultant url will be of the form
https://www.youtube.com/watch?v=uy_PEGgUF4U
).If anyone wants to work on this issue, please comment below.
The text was updated successfully, but these errors were encountered: