Comments (4)
Thank you for letting me know. The error is rather strange, as open() with "w+" should create the file if it is missing. This work with my LibreELEC installation. Which environment are you using?
Do you have the /home/osmc/.kodi/userdata/addon_data/plugin.video.invidious/search-history.json file or the
/home/osmc/.kodi/userdata/addon_data/plugin.video.invidious/ directory? Is it working if you create the directory?
from kodi-invidious-plugin.
I'm using osmc on the vero 4k (https://osmc.tv/vero/).
/home/osmc/.kodi/userdata/addon_data/plugin.video.invidious/
did not exists. After creating this directory the search works! Thanks!
from kodi-invidious-plugin.
from kodi-invidious-plugin.
Very good. As LibreELEC create this directory, while osmc apparently do not, could it be a problem with osmc, not this add-on? I do not know the inner workings of Kodi enough to know who is responsible for creating the directory.
I'm sorry, but I can't help. I don't know how Kodi-plugins works and I also only know Perl not Python.
But my suggestion would be to check for the existens of the directory before you open the file. If it doesn't exist, then create the directory first. The only disadvantage is a little bit longer code (afaik).
from kodi-invidious-plugin.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kodi-invidious-plugin.