All Projects → ssnjr2002 → stremio-gdrive

ssnjr2002 / stremio-gdrive

Licence: other
Stremio addon for fetching videos from your google drive.

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects
javascript
184084 projects - #8 most used programming language
Procfile
174 projects

Projects that are alternatives of or similar to stremio-gdrive

GdriveSearcherBot
Google Drive Searcher Bot Written In Python Using Pyrogram.
Stars: ✭ 57 (-21.92%)
Mutual labels:  google-drive, drive, gdrive
Gcsf
a FUSE file system based on Google Drive
Stars: ✭ 2,251 (+2983.56%)
Mutual labels:  google-drive, drive, google-drive-api
libDrive
libDrive is a Google Drive media library manager and indexer, similar to Plex, that organizes Google Drive media to offer an intuitive and user-friendly experience.
Stars: ✭ 14 (-80.82%)
Mutual labels:  google-drive, drive, gdrive
TorrentLeechBot
A powerful telegram mirror bot..
Stars: ✭ 94 (+28.77%)
Mutual labels:  drive, gdrive
Torrent-To-Google-Drive-Downloader
Simple notebook to stream torrent files to Google Drive using Google Colab and python3.
Stars: ✭ 256 (+250.68%)
Mutual labels:  google-drive, drive
go-drive
A simple cloud drive mapping web app supports local, FTP/SFTP, S3, OneDrive, WebDAV, Google Drive.
Stars: ✭ 184 (+152.05%)
Mutual labels:  google-drive, drive
gdrive-index
An index server for Google Drive
Stars: ✭ 107 (+46.58%)
Mutual labels:  google-drive, drive
GoogleDriveBrowser
Goole Drive Download Library for iOS
Stars: ✭ 13 (-82.19%)
Mutual labels:  google-drive, google-drive-api
backuptogoogle
Backup to Google Drive use gdrive
Stars: ✭ 89 (+21.92%)
Mutual labels:  google-drive, gdrive
JFXGoogleDrive
A JavaFX Google Drive Client (For Demonstration Purposes Only).
Stars: ✭ 29 (-60.27%)
Mutual labels:  google-drive, google-drive-api
Plexguide.com
Welcome to https://PlexGuide.com ~ Rapidly deploy multiple-hasty Docker Containers through Ansible with local or Unlimited Google HD Space!
Stars: ✭ 1,631 (+2134.25%)
Mutual labels:  google-drive, gdrive
deflix-stremio
Deflix addon for Stremio
Stars: ✭ 31 (-57.53%)
Mutual labels:  addon, stremio
Cartographer
A GPU powered Terrain editor and renderer for Godot Engine
Stars: ✭ 216 (+195.89%)
Mutual labels:  addon
The lightmapper
Fast and easy baked GI Lightmaps for Blender and Cycles
Stars: ✭ 233 (+219.18%)
Mutual labels:  addon
Addon Smart Knobs
🧠 This Storybook plugin uses @storybook/addon-knobs but creates the knobs automatically based on PropTypes.
Stars: ✭ 215 (+194.52%)
Mutual labels:  addon
Addon Node Red
Node-RED - Home Assistant Community Add-ons
Stars: ✭ 210 (+187.67%)
Mutual labels:  addon
raposas
Diretório oficial do código do indexador Raposas.
Stars: ✭ 31 (-57.53%)
Mutual labels:  google-drive
Elvui
ElvUI for World of Warcraft - Wrath of the Lich King (3.3.5a)
Stars: ✭ 229 (+213.7%)
Mutual labels:  addon
Addon Jsx
This Storybook addon show you the JSX / template of the story
Stars: ✭ 209 (+186.3%)
Mutual labels:  addon
Addon Vscode
Visual Studio Code - Home Assistant Community Add-ons
Stars: ✭ 201 (+175.34%)
Mutual labels:  addon

stremio-gdrive

image image

Instructions:

There are two ways to go about:

  • Method 1 is hard and long but might give you better performance and you need to make your own google cloud project thingy.
  • Method 2 relies on rclones google cloud project saving you the burden of having to create your own project i.e. you can skip straight to step 18.

Method 1 starts from here

  1. Go to https://console.cloud.google.com/projectcreate
  2. Name the project whatever you want and click create.
  3. Next to "Google Cloud Platform," click the Down arrow image and select your project.
  4. At the top-left corner, click the hamburger menu icon: image Click APIs & Services > Credentials.
  5. Click Configure Consent Screen. The "OAuth consent screen" screen appears.
  6. Set user type to external and click create.
  7. Fill in the required details, you can give your own email as dev and support email. Click save and continue.
  8. For the scopes page leave it as it is and click save and continue.
  9. Now add yourself (your email id) as the test user by pressing add users. Click save and continue.
  10. Now on your left, under API & Services, you will see Dashboard. Click on it and then click on Enable APIs and Services.
  11. Search for Google Drive and click on the result that says Google Drive API and then click on Enable.
  12. Now do step 4 again.
  13. Click Create Credentials > OAuth client ID.
  14. Choose application type as Desktop, name it whatever you want and click create.
  15. The newly created credential appears under "OAuth 2.0 Client IDs." Click the download button to the right of the newly-created OAuth 2.0 Client ID. We will get a client_secret.json file, we will need this for the next section.
  16. Now once again, at the top-left corner, click the hamburger menu icon: image Click APIs & Services > OAuth Consent Screen.
  17. Under Publishing Status you will see a button called PUBLISH APP, click on that and choose confrim.

Method 2 starts from here

  1. Use the colab notebook to easily obtain the token and the required code for the cloudflare proxy:

Open In Colab

  1. Run the cell of the respective method number you chose. Just press the circular play button beside the rectangular box.

  2. Login with your google account. Copy the js code and copy the token string for later when we deploy the heroku backend, the token should look something like this:

{"token": "jhgdfgdhgfh", "refresh_token": "1//sdhgbfdhghd", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "hsdgfjhgfsd.apps.googleusercontent.com", "client_secret": "gfsdfsdgf", "scopes": ["https://www.googleapis.com/auth/drive"]}

Skip to Deploying to heroku if you dont want to use a proxy.

  1. Go to https://dash.cloudflare.com/ log in or sign up.
  2. Open the Workers option.
  3. Create your sub-domain or continue if already done.
  4. Select the Free Plan. Click on Create a Worker. You can rename the workers at top of the page.
  5. In the Script{} box you will see some code, delete all that and paste the js code that you obtained in step 18 there.

Deploying to heroku:

Deploy to Heroku

  1. Hit the deploy button.
  2. Paste the token string in the token field.
  3. Copy your cloudflare worker url and paste it in the cf proxy url field. Leave it blank to use the addon without the proxy.
  4. Hit deploy.

Installing the addon to your Stremio account:

  1. Get the url of the heroku app you deployed. Add /manifest.json to the end. For example if my herokuapp url is https://your-stremiogdrive.herokuapp.com add /manifest.json to the end to get: https://your-stremiogdrive.herokuapp.com/manifest.json. Copy this url.
  2. Open stremio on desktop or android and go to addons section.
  3. In the search bar paste the manifest link (https://your-stremiogdrive.herokuapp.com/manifest.json) and press enter. Click install and you are done.

How the addon works

The addon uses the drive api to search for video files in your drive (both your teamdrives and mydrive) kinda like using the google drive web search bar.

So after setting up the addon go and search for something on stremio. When you open a search result, stremio will ask the addon if it has the video for the search result. The addon searches for the video in your google drive and if it gets any result it will give it to stremio and stremio will display the results.

For example if I want to watch a movie, say its called Pirates of the Goolag, then:

  • I will open stremio and search for Pirates of the Goolag. If its on imdb then it should appear on the stremio search results (stremio fetches search results from imdb).
  • Open the search result for Pirates of the Goolag and stremio will ask the addon if it has a video stream for Pirates of the Goolag.
  • The addon searches in your Google Drive for Pirates of the Goolag and if its anywhere on your google drive, doesnt matter where as long as the video file has the name and year of the movie (for eg: Pirates of the Goolag 2016.mkv or Pirates.of.the.Goolag.2016.UHD.BluRay.x265.mkv), the addon will return the search results for Pirates of the Goolag.
  • Stremio will then display it as a video stream and all you have to do is tap on it and enjoy.

The addon searches for:

  • Movies by searching for Videos with their filename as the name of the movie and when it was released. Eg video filename: Pirates of the Goolag 2016.mkv

  • Series episodes by searching for Videos with their filename as the name of the series and which episode it was by a specifier. Supported specifiers are:

    • S01 E01
    • S1 E1
    • Season 1 Episode 1
    • 1x01
    • 1x1

Issues / Limitations / Explanations

  • Apps hosted on heroku sleeps after 30 mins of inactivity. So after 30 mins of inactivity the addon needs about 30 secs to start back up and then some time to fetch the results. If you use something like Kaffeine you can overcome this as Kaffeine pings your app every 30 mins. Downside is that you will spend extra dyno hours. Free dynos have about 550 hours of runtime per month which is about 22 days.
  • Google api is not very fast so if you have a ton of results it might take 10 - 15 secs to load.
  • Cloudflare workers is used as a proxy to stream files from google drive since it is really fast.
  • I am an amateur and I did this to the best of my ability. If you find flaws feel free to post an issue.

For the sake of security please don't share your herokuapp url or your cloudflare workers proxy url. They can be used to get files from your drive.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].