Comments (8)
Nice! Thanks for doing this. You can give it a try, when you make some progress, please let me know
from lux.
In this case only problem I see is the opening the terminal part. Because the browser is running inside the secure sandbox it wont allow to communicate with os processes. But for Internet Explorer ActiveX object we can handle it.
What if the annie can expose a background service to make a grpc/http call from the browser extention locally to spawn annie download process.
from lux.
Thanks for pointing this out, I am not familiar with Chrome's API (or other browsers). This is just an idea at the time. I don't know how to implement it, or whether it is necessary to do it.
from lux.
Hi @iawia002 I did some further research and found out 2 ways that can communicate with native applications.
- NPAPI [Deprecated]
- Native Messaging API
The NPAPI was deprecated and, Native messaging API is working fine with current chrome browsers.
I would like to give try on this feature by developing the annie chrome extension.
from lux.
I implemented a chrome extension under feature-browser-ext branch :) Demo. And now I'm working on improvements (Pause, Resume, Stop, Delete, Open). I used intermediate host because currently I didn't wanted to mess up with the main.go app. Later we can avoid this intermediate host app and integrate with the main app.
- Note: downloads will goes to default ~/Downloads folder
from lux.
The demo looks fine!
However, I am a little worried about it. To use this, I need to install the host first, which may be a bit troublesome for the user.
So I have a suggestion, for all users, we show the constructed download parameters (with cookies, one more question here, I don't know if Chrome allows reading cookies?) which can be easily copied, for the user who installed host, we will show them a download button, they can download the video directly if they want.
from lux.
I agree, It's better to provide both solutions. yes chrome extension allows to use cookies.
As an example if a user want's to download a playlist do the extension needs
- Provide only the clipboard command and params to run the annie manually
- Provide a UI to tweak some parameters such as quality, selected videos
from lux.
The first version doesn't need to be too complicated, maybe just a clipboard and a download button.
And one more thing, choose the quality
may be a little tricky, you won't know what quality provided unless you run annie -i URL...
command in the terminal.
from lux.
Related Issues (20)
- How can I download the Youtube subtitle?
- Lux command not found HOT 2
- [download fail]: 抖音 HOT 13
- [下载超时]: 哔哩哔哩
- 怎么导出cookies.txt文件?我用Export Cookies扩展导出的为啥不能用啊?求大神指导! HOT 2
- [download fail]: haokan
- [new website require]: 微博移动版
- 不能下载Bilibili高分辨率(>=720p)视频 HOT 8
- [download fail]: 这里没有ipv6,它似乎非要走ipv6
- 最新版本在windows11上不能自动合并文件 HOT 3
- [download fail]: www.instagram.com Video HOT 2
- Youtube : the website name HOT 2
- [download fail]: bilibili url parse failed
- [download fail]: youku news queen HOT 1
- [download fail]: the website name
- 优酷怎么登陆VIP下载?
- [download fail]: bilibili HOT 1
- [download fail]: json: cannot unmarshal number 3.003 into Go struct field .aweme_detail.video.big_thumbs.interval of type int
- Youtube downloading is extremly slow HOT 1
- [download fail]: twitter.com
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lux.