dertuxmalwieder / yaydl Goto Github PK
View Code? Open in Web Editor NEWyet another youtube down loader (Git mirror)
Home Page: https://code.rosaelefanten.org/yaydl
License: Other
yet another youtube down loader (Git mirror)
Home Page: https://code.rosaelefanten.org/yaydl
License: Other
Updating NetBSD package to 0.12.2 fails with:
Compiling yaydl v0.12.2 (/usr/pkgsrc/wip/yaydl/work/yaydl-ee8bc6c2c1)
error[E0423]: expected value, found crate `url`
--> src/handlers/youtube.rs:32:54
|
32 | if let Some(env_proxy) = env_proxy::for_url(&url).host_port() {
| ^^^ not a value
error[E0433]: failed to resolve: use of undeclared crate or module `agent`
--> src/handlers/youtube.rs:39:19
|
39 | let req = agent::post(&video_url).send_json(ureq::json!({
| ^^^^^ use of undeclared crate or module `agent`
|
help: you may have meant to call an instance method
|
39 | let req = agent.post(&video_url).send_json(ureq::json!({
| ~
Some errors have detailed explanations: E0423, E0433.
For more information about an error, try `rustc --explain E0423`.
error: could not compile `yaydl` due to 2 previous errors
*** Error code 101
Stop.
NetBSD-current
Rust-1.68.2
Should I create a pull request?
see the title
Rust's most important feature is memory safety and using unsafe removes this feature.
At my forked repo, I have pushed a branch that removed all unsafe code in spankbang.rs and can be used to remove all unsafe code in the project
yaydl https://youtu.be/gIqsBUo82-Q -v
Fetching from YouTube.
The requested video was found. Processing...
Title: Why is an 8-Track Tape Called an 8-Track Tape?
Starting the download.
Error: The filename, directory name, or volume label syntax is incorrect. (os error 123)
yaydl --version
yaydl 0.11.2
There is this msg which is same as youtube-dl
when a download from music.youtube.com
is finished :
'list' is not recognized as an internal or external command, operable program or batch file.
youtube-dl
keeps the file whereas yay-dl
doesn't (even though the download is successful).
Please keep it/ add a flag to allow keeping it :)
I have a simple fix for this error. Provide access to upstream and I can test direct upstream update as you have suggested?
Running `target\debug\yaydl.exe https://youtu.be/jNQXAC9IVRw`
Fetching from YouTube.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Syntax(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex parse error:
(?:v=|\.be\/)(.*?)(&.*)*$
^^
error: unrecognized escape sequence
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
)', src\handlers\youtube.rs:174:65
or fix it by deleting a char
let id_regex = Regex::new(r"(?:v=|\.be\/)(.*?)(&.*)*$").unwrap();
^--- fix: delete this backslash 1 char before e
Refer to title
No matter what YouTube link is used, the following error occurs.
The video could not be found. Invalid link?
I suspect this may have something to do with the API key as the same version (0.12.2) was working approximately a week or so ago.
hi,
i came across your project when i was looking for a command line tool for video download from voe.sx. i tried to download a voe.sx and youtube video, but unfortunately it doesn't seem to work:
./yaydl https://www.youtube.com/watch?v=dd-dZJYwz4E
Fetching from YouTube.
Error: https://r4---sn-4g5ednss.googlevideo.com/videoplayback?expire=1620331434&ei=SveTYP3ILdWBpATu8qmYBA&ip=5.146.60.98&id=o-AG6g819X4du50aR2CnKMZVNRXOXHFy72i8kg0_DNq4ED&itag=22&source=youtube&requiressl=yes&mh=e6&mm=31%2C26&mn=sn-4g5ednss%2Csn-5hne6nsz&ms=au%2Conr&mv=m&mvi=4&pl=22&initcwndbps=1472500&vprv=1&mime=video%2Fmp4&ns=1vURrODGNxa3BwdwimkfATMF&cnr=14&ratebypass=yes&dur=2316.260&lmt=1620244524736849&mt=1620309655&fvip=4&fexp=24001373%2C24007246&c=WEB&txp=6316222&n=L-CEZ-2WwCP4G5BvM&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAMyUVWpPMOlChPHKyjgbsy498jNyksonQD1IAu0F2J-7AiAUs1pwUyg7OgBtrrwloAkAgLxwTpDX2pmKRRF8wbTAXw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgdNrBNwDgmnVEjAakEClTSIzMso59awCNczx0YUC3b5ECIAD2FVwkQOoQOd7-MIbEBjnRHVwee-K9Gje74krBhk2q:
Dns Failed: failed to lookup address information: Name or service not known
./yaydl "https://voe.sx/5mqmzgck2jx3#tabs-482b6qc1r"
Fetching from Voe.
The video could not be found. Invalid link?
Here's a link I tried downloading:
https://www.youtube.com/watch?v=F8sZRBdmqc0&list=WL&index=10&t=1040s
yaydl can't parse this. It's a bit of a complicated link because it's part of a playlist and there's a timestamp attached. However, it can parse this link
https://www.youtube.com/watch?v=F8sZRBdmqc0
I think with a little bit of regex, the extractor could parse these links better. Probably in the future, it would be good to parse it and recognize it's part of a list and give the option to download the whole playlist, but an easy solution for now is to throw everything past the watch ID out and send it to the downloader. The timestamp can probably be thrown out in almost all cases.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.