Lurker News
Back to discussion

Comment by arvindamirtaa

arvindamirtaa2 replies#
A unit test is an example of how the program is intended to run. It's the intention.
Valmar#
No, it's not.

A unit test is there to allow the developers to test whether the program is producing expected output from certain inputs.
It doesn't demonstrate that it's intended for circumventing copyright.
They just picked examples to use for in test cases.

salawat2 replies#
The hell it isn't. A unit test is a bench test for one particular functional unit. It's a check function. If you accept that tests as carrying intent, then I demand every weapons researcher or biologist to be arrested this instant. Clearly they are only out to murder people. That is patently ludicrous.
ldarby1 reply#
One of the tests in question extracts the m4a audio file of a Taylor Swift song [0] that has nearly 3 billion views and shows me 2 ads before playing. That's a lot of revenue for UMG, who I guess are a bit unhappy with this mechanism that youtube-dl provides of listening to it without having to watch the ads.

[0] https://www.youtube.com/watch?v=nfWlot6h_JM

xdrosenheim13 replies#
So it's only a problem if the video has a lot of views and ads? If that's the case, we should ban all Pi-holes, too, as they _can_ be used to block ads. What if I have YouTube Premium, then I don't see ads, so am I allowed to download via youtube-dl?

Continue this thread — 13 replies

542354234235#
> If you accept that tests as carrying intent, then I demand every weapons researcher or biologist to be arrested this instant. Clearly they are only out to murder people.

Well, what do you think weapons are for? I’m not saying arrest them but that isn’t really a great example, considering the sole purpose of weapons is to kill or destroy. Using weapons for anything other than killing or destroying is basically a secondary usage.