Code Monkey home page Code Monkey logo

kodi-strm's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar notsatan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kodi-strm's Issues

TLDR;

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.

Error with folders with \ or ending with a space character in windows

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:

  1. Create a folder in your Google Drive with a space in the end of the name and puth some files there. e.g. "series a ": series/series a /season1
  2. try to create strm files for that folder
  3. Error: `The system cannot find the specified path: 'C:\kodi-strm\users\user\series\series a \season1'

Expected behaviour
script handles the spaces and backslashs and do no break

Screenshots
image

Please fill the following information:

  • OS: Windows
  • Browser brave

Packages Installed:
packages.txt

Additional context

first run error

(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'

Authorisation error

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

Add option to update an existing folder

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

Pipeline: Create a pipeline to test dependabot updates

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 can't login to Google Drive from ssh terminal

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?

You could you do one for PKC addon ?

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 ?

skip files and folder with same name

, 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.

play() missing 1 required positional argument: 'driveid'

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:

  1. Generate strm files to a specific folder: py strm-generator.py --source=folder-id
  2. Add generated strm files to kodi
  3. Try to play a strm file
  4. See error 'play() missing 1 required positional argument: 'driveid''

Expected behaviour
Play the video

Screenshots
If applicable, add screenshots to help explain your problem.
image

Please fill the following information:

  • OS: Windows
  • Browser Brave

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

999 limit?

Actual total folder size and objects

image

Generated .strm to 999 items only

image

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! 😁

Ask for confirmation before wiping out directory-tree

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

Easiest way to implement with Kodi running on Xbox?

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 :)

External url

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

goindex strm generator suport

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:/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.