gort818 / qtwebflix

A qt webengine program for netflix
GNU General Public License v3.0
245 stars 29 forks source link

Allow the user to specify which provider to open on the command line #30

Closed bdutro closed 5 years ago

bdutro commented 6 years ago

It would be nice if I could specify which provider I want to open on the command line. Something like:

qtwebflix --provider=netflix

I'm looking at using this with Kodi for Netflix/Amazon/etc. playback and this would allow me to make separate shortcuts for each provider.

gort818 commented 6 years ago

I went about this a little different

Also supports adding other streaming services go to ~/.config/Qtwebflix/Providers.conf and add your service ex. netflix=https://netflix.com To use these other services right clicking will bring up a context menu with all available options.

A right click on the screen and you easily navigate to other sites you have set in your Providers.conf Does that work for you?

How would you use this with Kodi? never thougth about it

bdutro commented 6 years ago

I'm aware of the context menu, it would just be nice to skip the extra step of navigating to a different provider if I know I want to go to a particular one (especially since right now it will open up the last page I visited). Right now, my flow would have to go something like this:

  1. I watch Netflix, then close qtwebflix when I'm done.
  2. I want to watch Amazon Prime Video, so I launch qtwebflix.
  3. qtwebflix goes back to Netflix.
  4. I have to manually navigate to Amazon Prime Video with the context menu.

It would be easier if I could instead:

  1. I watch Netflix with qtwebflix --provider=netflix and close it when I'm done.
  2. I want to watch Amazon Prime Video, so I run qtwebflix --provider=amazon and it goes directly to Amazon.

How would you use this with Kodi? never thougth about it

Kodi has a Docker addon, so I'm putting together a Docker image with qtwebflix. Then I could use something like the Advanced Emulator Launcher addon to create shortcuts to my preferred streaming sites. I'm using a third-party LibreELEC build that includes Chrome for all of this at the moment, but it would be nice to be able to use an official build with something a little more light weight.

gort818 commented 6 years ago

Ok I see your point I might work on something this week, we can have command line options and context menu

gort818 commented 5 years ago

@bdutro I just updated a test branch adding command line options

Options:
  -h, --help                   Displays this help.
  -v, --version                Displays version information.
  -p, --provider <provider>    Set content provider eg. netflix.com
  -u, --useragent <useragent>  change useragent eg. "Mozilla/5.0 (Windows NT
                               10.0; WOW64) AppleWebKit/537.36 (KHTML, like
                               Gecko) Chrome/67.0.2526.73 Safari/537.36"

https://github.com/gort818/qtwebflix/tree/commandline

gort818 commented 5 years ago

This has been merged into master give it a try!

gort818 commented 5 years ago

closed with 735fbd278230dad0f1ade9cfae96a9f8a4c83aab