notflix
notflix copied to clipboard
Mac OSX: "grep: invalid option -- P" error
When testing on Mac 12.1 getting the following error:
grep: invalid option -- P
After some research it appears that the version of grep on OSX does not supprt the -P
method but does accept the -E
flag for using regex. The comment that pointed me in the right direction.
I noticed in your code that you actually use -E
on line 4 but then use -P
on line 5 to do the same thing. If you update line 5 to use -E
it should work with both linux and mac.
I created a fork of your project, notflix-osx, with the above change as well as a few other updates.
- Use YTS instead of 1337x. I found that the results were better and more relevant.
- Updated scraping logic to work with YTS and to default to 1080p
- Default to use VLC
- Default 500 connections
Thanks for putting together the original script. I had a similar idea the other day while using peerflix and found your project in my research.