notsatan / kodi-strm Goto Github PK
View Code? Open in Web Editor NEWA python script to batch generate strm files to be able to stream videos in Kodi directly from Google Drive.
License: MIT License
A python script to batch generate strm files to be able to stream videos in Kodi directly from Google Drive.
License: MIT License
Too many prior setups/configurations needed to run before you can fully use the addon. Unlike the existing addon, the only thing you have to do is to is login your account and you're good to go, the addon does the setups by itself!
Not user-friendly if I may say.
Describe the bug
Scripts breaks if there are some folder name with \ or ending with a space character
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
script handles the spaces and backslashs and do no break
Please fill the following information:
Packages Installed:
packages.txt
Additional context
(strm) ➜ kodi-strm git:(master) ✗ ./strm-generator.py
Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=tcvsobb1j1i0rpk3.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A53371%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.readonly&state=FUjhTbM4cRWYUTlOndV54f9eY0LK2c&access_type=offline
Traceback (most recent call last):
File "/Users/bob/Downloads/strm/kodi-strm/./strm-generator.py", line 419, in
main()
File "/Users/bob/Downloads/strm/kodi-strm/./strm-generator.py", line 320, in main
service = authenticate()
File "/Users/bob/Downloads/strm/kodi-strm/./strm-generator.py", line 57, in authenticate
creds = flow.run_local_server(port=0)
File "/Users/bob/Downloads/strm/lib/python3.9/site-packages/google_auth_oauthlib/flow.py", line 458, in run_local_server
authorization_response = wsgi_app.last_request_uri.replace(
AttributeError: 'NoneType' object has no attribute 'replace'
Error 403: access_denied
The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If you think you should have access, contact the developer
Is your feature request related to a problem? Please describe.
If new files are added to a folder I have already scanned, the scrips asks confirmation for wipe. I would like it do add .strm for the new files keeping the .strm already in the folder.
Example:
if I have this directory structure
/tv_show_(2010)/
/S01/
/E01.strm
Eventually S02 will be added to the google drive folder. If I ran the scrit again it will show:
Destination directory `/tv_show_(2010)` already exists
Proceed by wiping the existing directory?
Describe the solution you'd like
An option to just add new strm files wihtout wiping
Describe alternatives you've considered
Currently, dependabot
creates new pull requests to update project dependencies when needed. Each PR aims to update an individual package to the latest version available on pip — with no regards to other dependencies.
Many libraries rely on a particular version of a specific library. In such a case, updating the one library can potentially break the project if some other library does not support this updated version of the former library. Meaning that I need to perform updates locally to ensure such issues do not occur, and only then go ahead with the merge.
The aim with this feature request is to add a simple pipeline that will attempt to setup the project from scratch (installing dependencies, etc) for every PR raised by dependabot
. If an update to a particular library is incompatible with some other library being used, the pipeline would simply fail.
In contrast, as long as the pipeline build passes, I can simply approve and merge any PRs raised by dependabot
I installed successfuly I hope
I did download credentials.json to same as folder strm-generator.py inclued
I authenticated, logged in, and allowed according to the URL in the terminal, but I am redirected to localhost and can't do anything
How can I solve it?
This is something else i know ,
I did ask before the Dev of PKC addon to support strm exports so it can work with others addons and not miss with KODI DB !
but there no interest !
so i am here to ask if you can do it ?
, while scanning large library if there are two folders with same name it stops, it there an custom arguments to skip folder if already exist.
Describe the bug
A clear and concise description of what the bug is. Assume that you're explaining the problem to a kid. Explain in detail.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Play the video
Screenshots
If applicable, add screenshots to help explain your problem.
Please fill the following information:
Packages Installed:
Run pip freeze > packages.txt
this will create a file called packages.txt
in the working directory. Copy and paste the contents of the file in this section.
Note: If you are using a virtual environment, remember to activate it before firing the pip freeze command.
packages.txt
Additional context
I have no team drive. All files are in my personal drive. The strm files are generated for all files in all subfolders
I had this issue since the early versions, but proceeds to use the Kodi addon instead. Now I did a clean install there and generating .strm is still super slow, then I remembered this script.
Just created a GitHub account to report this! 😁
Is your feature request related to a problem? Please describe
If the output directory already exists, the script will currently wipe out the existing directory to proceed with its working
Describe the solution you'd like
The script should ask for confirmation before wiping out entire directory trees - with the current implementation, there is a chance of irreversibly losing important files with a small mistake
Describe alternatives you've considered
N/A
If this is a question outside the scope of this script, feel free to delete / ignore this request, but I'm relatively new to Kodi and have had innumerable issues getting the Google Drive Add-on to reliably export .strm files for monitored folders. Can I run the script on a separate PC and share the .strm directory to the Xbox via SMB? Could the script run on something like a heroku app and share the .strm files from there as an https source?
Sorry for what are probably misguided questions, but some documentation on a way to use this script on devices that can't directly run it would be hugely valuable to me and many other kodi users. Thanks for your time :)
Is your feature request related to a problem? Please describe.
Not able to add lite speed server
Describe the solution you'd like
Please add option for external url too for generating strm file
Like xyz.com/2021/video/
Kodi has option for http open index directory but lite speed server is not supported ,with this strm files it will be possible to index and stream data
Additional context
Sorry if asking for too much
Is your feature request related to a problem? Please describe.
it would be nice if was added support to generate strm files for goindex
Describe the solution you'd like
goindex is simple and easy to use, it would be very good to use in kodi or other applications, but generating strm files manually is so bad, that's why I wish it had this function.
Describe alternatives you've considered
If it is not possible to implement this I would at least like you to help me in a way to generate the strm even if it is from a notepad with all direct links
Additional context
goindex https://github.com/alx-xlx/goindex
goindex exemples
https://goindex-classic.teamsdrives.workers.dev/
https://goindex.teamsdrives.workers.dev/0:/
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.