-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve logging, file operations and Widevine CDM detection #310
Conversation
Why do you use those magic constants with the log function? I very much prefer the real python logging interface where you can just use _LOGGER.debug() etc (like I did in viervijfzes), I'm clearly missing the point here :) |
To make sure add-on reviewers don't notice that we are logging to a forbidden log level. Silently breaking add-on rules to set a precedent. |
Nice and honest :) |
I think hardlink should rather be in utils instead of kodiutils. Other than that, looks good to me. |
Okay, I moved the hardlink. |
Thank, I will rebase #240 |
BTW I am not so fond of moving hardlink out of kodiutils as we want kodiutils to become a body of work that can be reused by other projects, and the hardlink functionality, while not related directly to kodi is something we think may be useful for other add-on projects as well. It is not inputstreamhelper specific. But that said, we will fix this when kodiutils has become a separate module that is reused by different projects. |
Okay. |
Until now, kodiutils was a place to abstract kodi specific functions. hardlink is in no way related to kodi (neither directly nor indirectly). If I would search for a function creating hardlinks, with copy as fallback, I wouldn't look for it in a project called "kodiutils". |
I agree with @horstle. IMO kodiutils should only contain functions for kodi. Another example is caching. These functions are useful, but don't belong in kodiutils. |
@michaelarnauts That is a strange thing to say when we discussed moving routing in the future kodiutils project. Same for the proxy-handling code. The general idea was to have one body of work to assist writing add-ons,. If we go and fragment kodiutils now between every add-on using it, there's no point in sharing one codebase. Caching may be something different as this may be harder to abstract. It may be very close to how a VOD provider stores it metadata. |
Potato, potahto. Can't we just name this future project |
@mediaminister That's the general idea. We postponed this for a few reasons:
|
This pull request takes improvements from #240 that are ready to be merged: