News for hackers. Stuff that matters.
Re:Youtube-dlc – Download videos from YouTube or other video... by outadoc on Saturday September 12, 2020 @04:29AM (#24450889)
Isn’t youtube-dl already updated all the time to keep up with scraping changes? I don’t understand why this would claim to be more maintained?
Re:Youtube-dlc – Download videos from YouTube or other video... by capableweb on Saturday September 12, 2020 @04:35AM (#24450906)
Seems to have been originally spawned from this discussion: "Youtube-dl is dying?" https://github.com/ytdl-org/youtube-dl/issues/26462 citing many PRs are not getting merged.

Anecdote: youtube-dl still works for all the sites I'm using it for.

Re:Youtube-dlc – Download videos from YouTube or other video... by Arcorann on Saturday September 12, 2020 @04:50AM (#24450974)
I use youtube-dl to download from Nico Nico Douga, which means having to restart the download every few minutes because the program doesn't send heartbeat requests. There's been a PR to fix this for a couple of years now [1], and a more recent updated PR to add encrypted video support [2], both of which are still open. Meanwhile, the corresponding PR on youtube-dlc [3] is actively being looked at.

[1] https://github.com/ytdl-org/youtube-dl/pull/18230

[2] https://github.com/ytdl-org/youtube-dl/pull/23824

[3] https://github.com/blackjack4494/youtube-dlc/pull/55

Re:Youtube-dlc – Download videos from YouTube or other video... by raziel2p on Saturday September 12, 2020 @07:31AM (#24451677)
It makes sense that it's easier to give <100 PRs attention than 25k+. If the DLC project grows, you can't know if the same won't happen again.

Not saying forks should never happen - streamlink and KeepassXC are examples of great forks off the top of my mind - but you can't judge just on anecdotal stale PRs.

Re:Youtube-dlc – Download videos from YouTube or other video... by masklinn on Saturday September 12, 2020 @09:59AM (#24452451)
> It makes sense that it's easier to give <100 PRs attention than 25k+.

ydl has 700 open PRs, not 25k+. ydl hasn't had 25k+ PRs in its lifetime either, it's had 4k: GH issues and PRs are the same object, so the sequence is shared.

Re:Youtube-dlc – Download videos from YouTube or other video... by hombre_fatal on Saturday September 12, 2020 @01:00PM (#24453788)
Doesn't change the point. All of the fork's 55 PRs except 2 and most of the issues were made by the forker himself as well.

It's not like the forker inherited all the open issues/PRs, they just dropped them all.

Getting popular and having the masses leave a bunch of issues/PRs is hard. Reviewing code is hard and takes more expertise than writing it. A lot harder than reviewing your own PRs on a motivated (for now) fork.

Re:Youtube-dlc – Download videos from YouTube or other video... by yorwba on Saturday September 12, 2020 @01:45PM (#24454100)
> It's not like the forker inherited all the open issues/PRs, they just dropped them all.

That's wrong, most of the recent commits in the fork are merging branches from a lot of other repos. GitHub doesn't have a mechanism for inheriting a project's pull requests when you fork, but that doesn't mean they're automatically "dropped", since you can still merge the corresponding branch.

https://github.com/blackjack4494/youtube-dlc/commits/master

Re:Youtube-dlc – Download videos from YouTube or other video... by theidel on Saturday September 12, 2020 @07:55PM (#24456963)
Actually I merged quite some PRs that were open or even closed. However I tested and reviewed all I can but those geoblocked ones. But most of these were verified already or I could use some simple self hosted vpn. But do note that my reviews are not really in line with the strict coding conventions originating from the main project. As long as it works and isn't totally gibberish it will be approved by me. I rather want functionality and somewhat stability quite fast.

Although totally agree reviewing can be such a pain..

Re:Youtube-dlc – Download videos from YouTube or other video... by BiteCode_dev on Saturday September 12, 2020 @04:41AM (#24450933)
I maintain several open source projects. Sometimes PR are not merged for years.

I'm not payed for this, I'm not even thanked for this most of the time, so I'm certainly not going to set any deadline.

But forking might be a solution, if you can give the necessary horse power for the long run.

Most can't.

Re:Youtube-dlc – Download videos from YouTube or other video... by claudeganon on Saturday September 12, 2020 @10:30AM (#24452730)
It’s odd to me how nontechnical people have migrated to GitHub to make bug reports on software they use.

The other day, I was trying to use a Python library to scrape some stuff. It kept breaking. I looked on the issues page and there were many, essentially useless bug reports asking them to fix the issue. I opened up the script and changed about 7 lines and it worked fine.

Re:Youtube-dlc – Download videos from YouTube or other video... by chucky on Saturday September 12, 2020 @01:00PM (#24453791)
There are two factors at play here I think. The first is that Github has become quite popular. The second is that Github has worked a lot on usability - it's now very easy for users who are not very technical to create an account and report issues.

At times I imagine there could be some kind of "I know how to report bugs"-certification that people could somehow earn. Projects could then use this as a barrier to prevent getting too many useless issue reports.

The problem really goes both ways - as a software dev I'm disincentivized to report detailed bugs to projects, because there's a high risk it will get drowned out in the noise.

Some projects have quite specific templates for reporting issues. This helps a bit, but you still need someone to go in and remove issues that don't match the template, and few people want to volunteer for that work.

Re:Youtube-dlc – Download videos from YouTube or other video... by claudeganon on Saturday September 12, 2020 @02:01PM (#24454196)
Yeah, I guess it’s just an entirely different kind of engagement.

I mostly use GitHub to find off the shelf solutions to whatever problem I’m having or to avoid doing the work myself. If I run into any problems I have with something from there, I either try and fix it by tweaking the repository, using another, or just building the thing myself. I think the last time I reported an issue on an external repository was because of something I was made to use at work.

Re:Youtube-dlc – Download videos from YouTube or other video... by BiteCode_dev on Saturday September 12, 2020 @10:58AM (#24452969)
Well, they look for a channel to communicate their frustration. Most are closed. This one is open. The water follows the path of least resistance.
Re:Youtube-dlc – Download videos from YouTube or other video... by OzzyB on Saturday September 12, 2020 @02:25PM (#24454339)
I've noticed this trend too -- but I've also noticed people starting GitHub Repos for websites/apps just for the Issues.

No code, no PRs, just a way for the public to create Issues.

Not sure what this means for the "culture of code" other than things are blurring...

Re:Youtube-dlc – Download videos from YouTube or other video... by theidel on Saturday September 12, 2020 @08:00PM (#24456992)
At least there is a feature called 'discussions' coming soon to github. That should hopefully minimize the abuse of issues. But that is also due to the fact of current github. Not everyone is displaying their email and there is no other communication channel.
Re:Youtube-dlc – Download videos from YouTube or other video... by claudeganon on Saturday September 12, 2020 @02:47PM (#24454493)
I think a lot of it is maybe bleed over from gaming communities, especially emulators, maybe rom hacks too? I’ve noticed barrages of useless bug reports on those repositories. But I’ve been surprised to find them on far afield stuff as well.
Re:Youtube-dlc – Download videos from YouTube or other video... by nonbirithm on Saturday September 12, 2020 @01:23PM (#24453931)
There is an issue preventing the download of Watch Later playlists that has been open for over a year. The core maintainer, dstftw, closes all reports related to it with "duplicate" while never giving a reason or the original issue. See this issue I filed for an example.

https://github.com/ytdl-org/youtube-dl/issues/23860

He closed it without even addressing the issue of him closing the related issues that I explicitly brought up. There are scores of issues describing the same issue, but all of them are closed, and more of them are still being submitted. This has been going on since April of last year.

It's making me realize that sometimes a fork really is the only way to get around the problem that you're not in control of the project and there are bugs that many people need to be fixed.

Re:Youtube-dlc – Download videos from YouTube or other video... by tardyp on Saturday September 12, 2020 @02:00PM (#24454189)
Closing duplicated issues looks okay to me. The author not interested in fixing this issue himself looks okay to me. Is he refusing fix proposals about it?
Re:Youtube-dlc – Download videos from YouTube or other video... by dmd on Saturday September 12, 2020 @02:27PM (#24454358)
Yes; there are now several hundred pending PRs for both fixes and new extractors, all ignored.
Re:Youtube-dlc – Download videos from YouTube or other video... by josteink on Saturday September 12, 2020 @06:34AM (#24451434)
> Seems to have been originally spawned from this discussion: "Youtube-dl is dying?" https://github.com/ytdl-org/youtube-dl/issues/26462 citing many PRs are not getting merged.

As someone who has tried to contribute to YouTube-dl in the past, the absolute disinterest I received and complete lack of follow up on simple bug-fixes caused me to completely dismiss YouTube-dl as a FOSS project worthy of my time.

And I say that as someone who sends PRs to projects I’ve visited once, over tiny things like typos or lack of installation/build instructions in the readme.

Some of my PRs received a crazy all-or-nothing treatment, asking me to fix huge, long-standing bugs nobody had fixed for years, instead of accepting a 2-line diff which did a provider-specific workaround which solved a real bug, but seemingly not in the “right” way.

Completely toxic and hostile.

That someone has started a community-fork with a more welcoming and pragmatic approach does not surprise me in the least.

Re:Youtube-dlc – Download videos from YouTube or other video... by pwdisswordfish4 on Saturday September 12, 2020 @07:15AM (#24451604)
I had basically the same experience. I even got requests for functionality that was already there, as if the maintainers didn't even read or test the patch. There are a number of pull requests of mine that have been waiting open for years, ready to be merged.

Maybe I'll have more luck with this fork.

Re:Youtube-dlc – Download videos from YouTube or other video... by theon144 on Saturday September 12, 2020 @04:46AM (#24450958)
Counter-anecdote: Even YouTube support is somewhat flaky (age-restricted videos, private (as in, locked behind auth) videos, random failures), and several sites I use are broken and require additional options (cookies) for even basic functionality.
Re:Youtube-dlc – Download videos from YouTube or other video... by uquaiH9c on Saturday September 12, 2020 @05:10AM (#24451056)
Which sounds perfectly normal for a webscrapper.

Are those issues you describe fixed in not merged PRs in youtube-dl and fixed in merged PR in youtube-dlc?

Re:Youtube-dlc – Download videos from YouTube or other video... by dependenttypes on Saturday September 12, 2020 @04:43AM (#24450944)
I find it gross that dstftw (the core youtubedl maintainer) censored the part about youtube-dlc from that issue.
Re:Youtube-dlc – Download videos from YouTube or other video... by theon144 on Saturday September 12, 2020 @04:45AM (#24450953)
CTRL+F'ing `youtube-dlc` comes up with several hits - was there more that is missing now?
Re:Youtube-dlc – Download videos from YouTube or other video... by zo1 on Saturday September 12, 2020 @04:49AM (#24450973)
You can look at the edit history of that comment. You'll see that dstftw edited it to remove references to the youtube_dlc repo.

https://github.com/ytdl-org/youtube-dl/issues/26462#issue-68...

Unfortunately, can't find a way to link to the edit in question directly. You'll have to click once there to see the diff.

Re:Youtube-dlc – Download videos from YouTube or other video... by saagarjha on Saturday September 12, 2020 @05:53AM (#24451234)
Being able to edit people’s comments on GitHub is nice as a maintainer but removing information and completely changing people’s comments is really nasty. Any such effort should be clearly justified, preferably with a visual “edit message” that goes along with the smaller “edited” text.
Re:Youtube-dlc – Download videos from YouTube or other video... by u801e on Saturday September 12, 2020 @10:26AM (#24452700)
I don't think that editing comments that you didn't make should ever be a feature. This is something that could easily be abused to make it appear that someone else said something they didn't actually way.
Re:Youtube-dlc – Download videos from YouTube or other video... by pfranz on Saturday September 12, 2020 @04:36PM (#24455415)
I can see what you're saying in principle, but what if a bug is opened with "this stopped working for me" but evolves into a very specific issue? Should the maintainer open a new bug, link to it and close the old one?

In practice, I find it really useful to tidy up the top message of a bug report (but /really/ like seeing history of it). I also see cases where users spam raw logs into updates and tidying it up (perhaps making the log portion an attachment or changing formatting) makes it much clearer for future-you and other collaborators.

Re:Youtube-dlc – Download videos from YouTube or other video... by yencabulator on Sunday September 13, 2020 @11:01PM (#24466327)
Then there should be a "non-message" textfield up top, that doesn't pretend it's the original report, or forge its author.
Re:Youtube-dlc – Download videos from YouTube or other video... by dependenttypes on Saturday September 12, 2020 @04:47AM (#24450966)
Check the edit history of the first post.
Re:Youtube-dlc – Download videos from YouTube or other video... by danielheath on Saturday September 12, 2020 @05:16AM (#24451082)
Getting a fix merged to youtube-dl is quite an endeavour. No criticism to the fantastic maintainers - I encourage them to run their excellent project however suits them best - but I’m not going to try again in future.
Re:Youtube-dlc – Download videos from YouTube or other video... by dylan604 on Saturday September 12, 2020 @01:32PM (#24454005)
Are PR visible to other users where they could make the same change to their local version even if the maintainer does not accept the PR in a timely manner? I know it is no where near the same, but just wondering.
Re:Youtube-dlc – Download videos from YouTube or other video... by InvaderFizz on Saturday September 12, 2020 @01:53PM (#24454145)
Yes, on any PR you can click the source branch and see it. This is useful if a project is straightforward to build. You can just git clone the PR branch and build with that fix.
Re:Youtube-dlc – Download videos from YouTube or other video... by jccalhoun on Saturday September 12, 2020 @10:10AM (#24452557)
Re:Youtube-dlc – Download videos from YouTube or other video... by DarthGhandi on Saturday September 12, 2020 @04:36AM (#24450911)
To nitpick: It's not scraping, the youtube.com undocumented api changes all the time, in my tinfoil view probably to mess with things like youtube-dl and 3rd party apps.
Re:Youtube-dlc – Download videos from YouTube or other video... by lozenge on Saturday September 12, 2020 @06:30AM (#24451412)
YouTube supports Smart TVs, games consoles and other platforms where updating is slow or nearly impossible. Its API is stable for that reason.
Re:Youtube-dlc – Download videos from YouTube or other video... by nogabebop23 on Saturday September 12, 2020 @09:50AM (#24452405)
these platforms don't support youtube via a programmatic interface like this (and other libraries). They basically embed videos so the "API" is an http request for the traget url.

YT constantly changes how it masks access to the underlying resources with JS updates that break these libraries. The most frequent updates are to fix this.

Re:Youtube-dlc – Download videos from YouTube or other video... by DarthGhandi on Saturday September 12, 2020 @07:58AM (#24451786)
Why do third party apps that utilize it constantly break then?

Please explain.

Re:Youtube-dlc – Download videos from YouTube or other video... by gruez on Saturday September 12, 2020 @09:24AM (#24452223)
pure speculation: youtube app on those platforms is just an embedded webview (or otherwise allows arbitrary code execution).
Re:Youtube-dlc – Download videos from YouTube or other video... by nogabebop23 on Saturday September 12, 2020 @09:52AM (#24452412)
yes - they don't generally access the underlying meta & media directly; they use the well established, stable and YT-prefered method of embeding a video. This doesn't work if you want direct file access to a specific resolution, or format, or audio only for example.
Re:Youtube-dlc – Download videos from YouTube or other video... by dewey on Saturday September 12, 2020 @04:39AM (#24450920)
youtube-dl works for thousands of sites, most of them with web scraping. What are you nitpicking about?
Re:Youtube-dlc – Download videos from YouTube or other video... by DarthGhandi on Saturday September 12, 2020 @08:00AM (#24451800)
> What are you nitpicking about?

Verbatim from my comment: "the youtube.com undocumented api"

Thanks for reading.

Re:Youtube-dlc – Download videos from YouTube or other video... by dewey on Saturday September 12, 2020 @08:10AM (#24451836)
The top level comment you are replying to and nitpicked the "scraping" verb doesn't say anything about YouTube or the YouTube API.
Re:Youtube-dlc – Download videos from YouTube or other video... by outadoc on Saturday September 12, 2020 @09:12AM (#24452165)
Yes, thanks, I was using "scraping" in a more generic way, since I'm sure it does actually use scraping for most video providers.

In fact I'm pretty sure I've seen youtube-dl mention downloading the HTML page when using it with YouTube, so maybe it does even scrape YouTube.

Re:Youtube-dlc – Download videos from YouTube or other video... by malikNF on Saturday September 12, 2020 @04:45AM (#24450950)
Especially considering the last release to youtube-dl was just 6 days ago. Guess OP picked a bad time to post the fork.
Re:Youtube-dlc – Download videos from YouTube or other video... by theon144 on Saturday September 12, 2020 @04:47AM (#24450963)
Still sitting at 725 unmerged and/or unrejected PRs though.
Re:Youtube-dlc – Download videos from YouTube or other video... by xorcist on Saturday September 12, 2020 @07:08AM (#24451569)
Let's hope the fork merges those 700 PRs and see which project is maintained in five years.

Keeping software well maintained involves a lot of saying no, unfortunately.

Re:Youtube-dlc – Download videos from YouTube or other video... by chrisseaton on Saturday September 12, 2020 @09:22AM (#24452215)
> Keeping software well maintained involves a lot of saying no, unfortunately.

Right... and the youtube-dl maintainers aren't doing that.

Re:Youtube-dlc – Download videos from YouTube or other video... by slenk on Saturday September 12, 2020 @11:11AM (#24453073)
Wouldn't not merging a PR be the same as saying no
Re:Youtube-dlc – Download videos from YouTube or other video... by chrisseaton on Saturday September 12, 2020 @11:12AM (#24453080)
Saying 'no thanks' and closing is saying 'no'. Leaving it unacknowledged isn't saying yes or no.
Re:Youtube-dlc – Download videos from YouTube or other video... by slenk on Saturday September 12, 2020 @12:25PM (#24453560)
Good point.
Re:Youtube-dlc – Download videos from YouTube or other video... by joshvm on Saturday September 12, 2020 @08:12AM (#24451855)
Worth mentioning that youtubedl works with a lot of sites, not just YouTube. Most of those PRs are for other supported websites or requesting support for new sites.
Re:Youtube-dlc – Download videos from YouTube or other video... by ekianjo on Saturday September 12, 2020 @05:05AM (#24451036)
Is there anything bad about that number? Something which is very popular is bound to get a lot of PRs, and reviewing them takes time.
Re:Youtube-dlc – Download videos from YouTube or other video... by kzrdude on Saturday September 12, 2020 @06:10AM (#24451325)
The job of a maintainer is to reject PRs. So yeah, they are falling behind in saying no, maybe they just don't want to say no, so they let them sit. Happens everywhere.
Re:Youtube-dlc – Download videos from YouTube or other video... by iforgotpassword on Saturday September 12, 2020 @07:20AM (#24451627)
This seems indeed a confusing post/fork. youtube-dl is already very successful and popular. I use it almost every day.

So what is it about youtube-dlc that makes it special compared to the other 12k forks? You scroll down to the readme and it's the exact same, just that someone replaced -dl with -dlc.